|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.expression.ExpressionSupport
public abstract class ExpressionSupport
ExpressionSupport
an abstract base class for Expression implementations
which provides default implementations of some of the
typesafe evaluation methods.
| Field Summary | |
|---|---|
protected static java.util.Iterator |
EMPTY_ITERATOR
|
| Constructor Summary | |
|---|---|
ExpressionSupport()
|
|
| Method Summary | |
|---|---|
boolean |
evaluateAsBoolean(JellyContext context)
Evaluates the expression with the given context coercing the result to be a boolean. |
java.util.Iterator |
evaluateAsIterator(JellyContext context)
Evaluates the expression with the given context coercing the result to be an Iterator. |
java.lang.String |
evaluateAsString(JellyContext context)
Evaluates the expression with the given context coercing the result to be a String. |
java.lang.Object |
evaluateRecurse(JellyContext context)
This method evaluates the expression until a value (a non-Expression) object is returned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.jelly.expression.Expression |
|---|
evaluate, getExpressionText |
| Field Detail |
|---|
protected static final java.util.Iterator EMPTY_ITERATOR
| Constructor Detail |
|---|
public ExpressionSupport()
| Method Detail |
|---|
public java.lang.String evaluateAsString(JellyContext context)
Expression
evaluateAsString in interface Expressionpublic java.lang.Object evaluateRecurse(JellyContext context)
ExpressionSometimes when Jelly is used inside Maven the value of an expression can actually be another expression. For example if a properties file is read, the values of variables can actually be expressions themselves.
e.g. ${foo.bar} can lookup "foo.bar" in a Maven context which could actually be another expression.
So using this method, nested expressions can be evaluated to the actual underlying value object.
evaluateRecurse in interface Expressionpublic boolean evaluateAsBoolean(JellyContext context)
Expression
evaluateAsBoolean in interface Expressionpublic java.util.Iterator evaluateAsIterator(JellyContext context)
Expression
evaluateAsIterator in interface Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||