jd.xml.xpath.expr
Class VariableExpression

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.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.


Field Summary
 
Fields inherited from interface jd.xml.xpath.expr.Expression
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN
 
Constructor Summary
VariableExpression()
           
 
Method Summary
 int getResultType()
          Return XObject.TYPE_VARIABLE.
 boolean toBooleanValue(XPathContext context)
          Evaluate the Expression to a boolean.
 double toNumberValue(XPathContext context)
          Evaluate the Expression to a number.
 String toStringValue(XPathContext context)
          Evaluate the Expression to a String.
 
Methods inherited from class jd.xml.xpath.expr.ExpressionImpl
hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jd.xml.xpath.expr.Expression
accept, getContextDependencies, toXObject
 

Constructor Detail

VariableExpression

public VariableExpression()
Method Detail

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