|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.expression.ExpressionSupport
org.apache.commons.jelly.expression.ConstantExpression
ConstantExpression
represents a constant expression.
In other words, evaluate(org.apache.commons.jelly.JellyContext)
returns a value independent of the context.
Field Summary | |
private java.lang.Object |
value
The value of this expression |
Fields inherited from class org.apache.commons.jelly.expression.ExpressionSupport |
EMPTY_ITERATOR |
Constructor Summary | |
ConstantExpression()
Base constructor |
|
ConstantExpression(java.lang.Object value)
Convenience constructor sets value property. |
Method Summary | |
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()
|
Methods inherited from class org.apache.commons.jelly.expression.ExpressionSupport |
evaluateAsBoolean, evaluateAsIterator, evaluateAsString, evaluateRecurse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.Object value
Constructor Detail |
public ConstantExpression()
public ConstantExpression(java.lang.Object value)
value
property.
Method Detail |
public java.lang.String toString()
public java.lang.String getExpressionText()
public java.lang.Object evaluate(JellyContext context)
context
- evaluate expression against this context
value
propertypublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |