Class ConstantExpression
java.lang.Object
org.apache.commons.jelly.expression.ExpressionSupport
org.apache.commons.jelly.expression.ConstantExpression
- All Implemented Interfaces:
Expression
ConstantExpression represents a constant expression.
In other words, evaluate(org.apache.commons.jelly.JellyContext) returns a value independent of the context.
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Field Summary
Fields inherited from class org.apache.commons.jelly.expression.ExpressionSupport
EMPTY_ITERATORFields inherited from interface org.apache.commons.jelly.expression.Expression
NULL -
Constructor Summary
ConstructorsConstructorDescriptionBase constructorConstantExpression(Object value) Convenience constructor setsvalueproperty. -
Method Summary
Methods inherited from class org.apache.commons.jelly.expression.ExpressionSupport
evaluateAsBoolean, evaluateAsIterator, evaluateAsString, evaluateRecurse
-
Constructor Details
-
ConstantExpression
public ConstantExpression()Base constructor -
ConstantExpression
Convenience constructor setsvalueproperty.
-
-
Method Details
-
toString
-
getExpressionText
- Returns:
- the textual representation of this expression
-
evaluate
Evaluate expression against given context.- Parameters:
context- evaluate expression against this context- Returns:
- current value of
valueproperty
-
getValue
Gets the constant value of this expression -
setValue
Sets the constant value of this expression
-