|
|||||||||
| 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 Expressions.
| Constructor Summary | |
|---|---|
ExpressionEvaluator()
|
|
| Method Summary | |
|---|---|
abstract Expression |
compile(String stringRepresentation)
Creates, compiles and returns a new Expression based
off the supplied stringRepresentation. |
Object |
evaluate(String expression,
Object object)
Evaluate the given expression against the specified object. |
Object |
evaluate(String expression,
Object object,
FieldValue fieldvalue)
Evaluate the given expression against the specified object. |
Collection |
getFieldPaths(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(String stringRepresentation)
throws ExpressionException
Expression based
off the supplied stringRepresentation.
ExpressionException
public final Collection getFieldPaths(String expression)
throws ExpressionException
expression - the specified expression, must not be null
ExpressionEvaluatorException
ExpressionException
public final Object evaluate(String expression,
Object object,
FieldValue fieldvalue)
throws ExpressionException
expression - the expression to evaluate, must not be nullobject - the specified object to apply the expression to,
must not be nullfieldvalue - an optional field value insance that can be used to
evaluate the given expression. Can be null condition,
false otherwise
ExpressionEvaluatorException
ExpressionException
public final Object evaluate(String expression,
Object object)
throws ExpressionEvaluatorException
expression - the expression to evaluate, must not be nullobject - 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 | ||||||||