|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Expression
An Expression
describes a rule to obtain a value that may be derived from the properties of an object.
Note that the objects returned by evaluate(Object, XPathEvaluator)
is an TypedObjectNode[]
, as
an expression may evaluate to multiple values, e.g. a ValueReference
that targets a multi property of a
feature. Values in the returned array may also be null
.
Nested Class Summary | |
---|---|
static class |
Expression.Type
Convenience enum type for discriminating the different expression types. |
Method Summary | ||
---|---|---|
|
evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
Determines the values of the expression for the given context object. |
|
Expression[] |
getParams()
Returns the expression's paramters. |
|
Expression.Type |
getType()
Returns the type of expression. |
|
String |
toString(String indent)
|
Method Detail |
---|
Expression.Type getType()
Expression
.
<T> TypedObjectNode[] evaluate(T obj, XPathEvaluator<T> xpathEvaluator) throws FilterEvaluationException
Note that this returns an TypedObjectNode[]
, as an expression may evaluate to multiple values, e.g.
a ValueReference
that targets a multi property of a feature.
T
- type of the context objectobj
- object that the expression is evaluated upon, must not be null
xpathEvaluator
- used for evaluation of XPath expressions, must not be null
null
values), but never
null
FilterEvaluationException
Expression[] getParams()
String toString(String indent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |