public class ConstantExpression extends ExpressionSupport
ConstantExpression
represents a constant expression.
In other words, evaluate(org.apache.commons.jelly.JellyContext)
returns a value independent of the context.
EMPTY_ITERATOR
NULL
Constructor and Description |
---|
ConstantExpression()
Base constructor
|
ConstantExpression(java.lang.Object value)
Convenience constructor sets
value property. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(JellyContext context)
Evaluate expression against given context.
|
java.lang.String |
getExpressionText() |
java.lang.Object |
getValue()
Gets the constant value of this expression
|
void |
setValue(java.lang.Object value)
Sets the constant value of this expression
|
java.lang.String |
toString() |
evaluateAsBoolean, evaluateAsIterator, evaluateAsString, evaluateRecurse
public ConstantExpression()
public ConstantExpression(java.lang.Object value)
value
property.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getExpressionText()
public java.lang.Object evaluate(JellyContext context)
context
- evaluate expression against this contextvalue
propertypublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
Copyright © 2012. All Rights Reserved.