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_ITERATORNULL| Constructor and Description |
|---|
ConstantExpression()
Base constructor
|
ConstantExpression(Object value)
Convenience constructor sets
value property. |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(JellyContext context)
Evaluate expression against given context.
|
String |
getExpressionText() |
Object |
getValue()
Gets the constant value of this expression
|
void |
setValue(Object value)
Sets the constant value of this expression
|
String |
toString() |
evaluateAsBoolean, evaluateAsIterator, evaluateAsString, evaluateRecursepublic ConstantExpression()
public ConstantExpression(Object value)
value property.public String getExpressionText()
public Object evaluate(JellyContext context)
context - evaluate expression against this contextvalue propertypublic Object getValue()
public void setValue(Object value)
Copyright © 2012 Apache Software Foundation. All Rights Reserved.