|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.fieldvalue.Expression
public abstract class Expression
Abstract representation of an expression in an unspecified expression language.
Constructor Summary | |
---|---|
Expression()
|
Method Summary | |
---|---|
java.lang.Object |
evaluate(java.lang.Object object)
Calls evaluate(Object,FieldValue) with a null
FieldValue . |
abstract java.lang.Object |
evaluate(java.lang.Object object,
FieldValue fieldValueProtocol)
Evaluates this against object using the
supplied fieldValueProtocol to object field values
from object during the evaluation. |
abstract java.util.Collection |
getFieldPaths()
Returns the collection of fields paths referenced in this expression. |
abstract java.lang.String |
toString()
Returns the String representation of this . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Expression()
Method Detail |
---|
public abstract java.lang.Object evaluate(java.lang.Object object, FieldValue fieldValueProtocol) throws ExpressionEvaluatorException
this
against object
using the
supplied fieldValueProtocol
to object field values
from object
during the evaluation. (Expressions may
refer to fields of the objects against which they are evaluated.)
object
- the object against which to evaluate this
;
may be null
but in this case cannot have any fields
dereferenced against itfieldValueProtocol
- the protocol to use to obtain field values from
object
during the evaulation; may be null
in which case the default field value protocol for the class
of object
is used (see FieldValue.get(Object)
)
ExpressionEvaluatorException
public abstract java.util.Collection getFieldPaths()
public final java.lang.Object evaluate(java.lang.Object object) throws ExpressionEvaluatorException
evaluate(Object,FieldValue)
with a null
FieldValue
.
ExpressionEvaluatorException
public abstract java.lang.String toString()
String
representation of this
.
The returned string should be the String
that was
used when this
was ExpressionEvaluator.compile(java.lang.String)
(ideally) or at least the string should be equivalent in the
sense that it would result in the creation of an identically behaving
expression.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |