|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.fieldvalue.ExpressionEvaluator
public abstract class ExpressionEvaluator
Abstraction of a factory class for creating Expression
s.
Constructor Summary | |
---|---|
ExpressionEvaluator()
|
Method Summary | |
---|---|
abstract Expression |
compile(java.lang.String stringRepresentation)
Creates, compiles and returns a new Expression based
off the supplied stringRepresentation . |
java.lang.Object |
evaluate(java.lang.String expression,
java.lang.Object object)
Evaluate the given expression against the specified object. |
java.lang.Object |
evaluate(java.lang.String expression,
java.lang.Object object,
FieldValue fieldvalue)
Evaluate the given expression against the specified object. |
java.util.Collection |
getFieldPaths(java.lang.String expression)
Given an expression, return the field paths. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionEvaluator()
Method Detail |
---|
public abstract Expression compile(java.lang.String stringRepresentation) throws ExpressionException
Expression
based
off the supplied stringRepresentation
.
ExpressionException
public final java.util.Collection getFieldPaths(java.lang.String expression) throws ExpressionException
expression
- the specified expression, must not be null
ExpressionEvaluatorException
ExpressionException
public final java.lang.Object evaluate(java.lang.String expression, java.lang.Object object, FieldValue fieldvalue) throws ExpressionException
expression
- the expression to evaluate, must not be null
object
- the specified object to apply the expression to,
must not be null
fieldvalue
- an optional field value insance that can be used to
evaluate the given expression. Can be null
condition,
false
otherwise
ExpressionEvaluatorException
ExpressionException
public final java.lang.Object evaluate(java.lang.String expression, java.lang.Object object) throws ExpressionEvaluatorException
expression
- the expression to evaluate, must not be null
object
- the specified object to apply the expression to,
must not be null
ExpressionEvaluatorException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |