jd.xml.xpath.expr
Class VariableExpression
java.lang.Object
jd.xml.xpath.expr.ExpressionImpl
jd.xml.xpath.expr.VariableExpression
- All Implemented Interfaces:
- Expression
- Direct Known Subclasses:
- Constant, ExtensionFunctionCall, InvalidExpression, VariableFunction, VariableReference
- public abstract class VariableExpression
- extends ExpressionImpl
VariableExpression is an expression which can evaluate to objects with
different types.
VariableExpression
public VariableExpression()
getResultType
public int getResultType()
- Return XObject.TYPE_VARIABLE.
toStringValue
public String toStringValue(XPathContext context)
- Evaluate the Expression to a String.
- Parameters:
context
- the evaluation context
toNumberValue
public double toNumberValue(XPathContext context)
- Evaluate the Expression to a number.
- Parameters:
context
- the evaluation context
toBooleanValue
public boolean toBooleanValue(XPathContext context)
- Description copied from interface:
Expression
- Evaluate the Expression to a boolean.
- Parameters:
context
- the evaluation context