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(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, evaluateRecurse
public 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 © 2014 Apache Software Foundation. All rights reserved.