org.eclipse.tptp.platform.provisional.fastxpath.compiler
Class CompiledExpressionEvaluator
java.lang.Object
org.eclipse.tptp.platform.provisional.fastxpath.compiler.CompiledExpressionEvaluator
- public abstract class CompiledExpressionEvaluator
- extends java.lang.Object
Super class for all compiled expression evaluators. It includes a set of
"toBool" functions for runtime evaluation of the expression
|
Method Summary |
abstract java.lang.Object |
eval(java.lang.Object object,
IFastXPathEngine fastXPathEngine)
|
java.lang.StringBuffer |
getBodyJavaCode()
|
void |
setBodyJavaCode(java.lang.StringBuffer bodyJavaCode)
|
static boolean |
toBool()
|
static boolean |
toBool(java.math.BigDecimal bd)
|
static boolean |
toBool(java.math.BigInteger bi)
|
static boolean |
toBool(boolean b)
|
static boolean |
toBool(java.lang.Boolean bool)
|
static boolean |
toBool(byte b)
|
static boolean |
toBool(java.lang.Byte b)
|
static boolean |
toBool(byte[] bArr)
|
static boolean |
toBool(char c)
|
static boolean |
toBool(char[] cArr)
|
static boolean |
toBool(java.lang.Character c)
|
static boolean |
toBool(double d)
|
static boolean |
toBool(java.lang.Double d)
|
static boolean |
toBool(float f)
|
static boolean |
toBool(java.lang.Float f)
|
static boolean |
toBool(int i)
|
static boolean |
toBool(java.lang.Integer i)
|
static boolean |
toBool(java.util.List list)
|
static boolean |
toBool(long l)
|
static boolean |
toBool(java.lang.Long l)
|
static boolean |
toBool(java.lang.Object obj)
|
static boolean |
toBool(short s)
|
static boolean |
toBool(java.lang.Short s)
|
static boolean |
toBool(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompiledExpressionEvaluator
public CompiledExpressionEvaluator()
eval
public abstract java.lang.Object eval(java.lang.Object object,
IFastXPathEngine fastXPathEngine)
throws java.lang.NullPointerException
- Parameters:
object - fastXPathEngine -
- Returns:
-
- Throws:
NullPointerException - The code for the evaluator is compiled regardless of the
object that will be evaluated, hence, a
NullPointerException might be thrown.
getBodyJavaCode
public java.lang.StringBuffer getBodyJavaCode()
setBodyJavaCode
public void setBodyJavaCode(java.lang.StringBuffer bodyJavaCode)
toBool
public static final boolean toBool()
toBool
public static final boolean toBool(java.lang.Object obj)
toBool
public static final boolean toBool(java.util.List list)
toBool
public static final boolean toBool(java.lang.String str)
toBool
public static final boolean toBool(java.lang.Boolean bool)
toBool
public static final boolean toBool(java.lang.Byte b)
toBool
public static final boolean toBool(java.lang.Character c)
toBool
public static final boolean toBool(java.lang.Double d)
toBool
public static final boolean toBool(java.lang.Float f)
toBool
public static final boolean toBool(java.lang.Integer i)
toBool
public static final boolean toBool(java.lang.Long l)
toBool
public static final boolean toBool(java.lang.Short s)
toBool
public static final boolean toBool(java.math.BigDecimal bd)
toBool
public static final boolean toBool(java.math.BigInteger bi)
toBool
public static final boolean toBool(int i)
toBool
public static final boolean toBool(short s)
toBool
public static final boolean toBool(long l)
toBool
public static final boolean toBool(double d)
toBool
public static final boolean toBool(float f)
toBool
public static final boolean toBool(byte b)
toBool
public static final boolean toBool(char c)
toBool
public static final boolean toBool(boolean b)
toBool
public static final boolean toBool(char[] cArr)
toBool
public static final boolean toBool(byte[] bArr)