Class Constant
java.lang.Object
org.apache.commons.jxpath.ri.compiler.Expression
org.apache.commons.jxpath.ri.compiler.Constant
A compile tree element containing a constant number or string.
- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Dmitri Plotnikov
-
Nested Class Summary
Nested classes/interfaces inherited from class Expression
Expression.PointerIterator, Expression.ValueIterator -
Field Summary
FieldsFields inherited from class Expression
NOT_A_NUMBER, ONE, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompute(EvalContext context) Evaluates the expression.booleanReturns falsecomputeValue(EvalContext context) Evaluates the expression.booleanReturns falsetoString()Methods inherited from class Expression
iterate, iteratePointers
-
Field Details
-
value
-
-
Constructor Details
-
Constant
-
Constant
-
-
Method Details
-
compute
Description copied from class:ExpressionEvaluates the expression. If the result is a node set, returns the first element of the node set.- Specified by:
computein classExpression- Parameters:
context- evaluation context- Returns:
- Object
-
computeValue
Description copied from class:ExpressionEvaluates the expression. If the result is a node set, returns the first element of the node set.- Specified by:
computeValuein classExpression- Parameters:
context- evaluation context- Returns:
- Object
-
isContextDependent
public boolean isContextDependent()Returns false- Overrides:
isContextDependentin classExpression- Returns:
- false
-
computeContextDependent
public boolean computeContextDependent()Returns false- Specified by:
computeContextDependentin classExpression- Returns:
- false
-
toString
-