Package com.luciad.datamodel.expression
Class ALcdDataObjectExpressionLanguage
java.lang.Object
com.luciad.datamodel.expression.ALcdDataObjectExpressionLanguage
- Direct Known Subclasses:
TLcdDataObjectExpressionLanguage
Abstract definition of an expression language that enables the definition and
evaluation of expressions over
ILcdDataObject
instances.- Since:
- 10.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ILcdDataObjectExpression
Compiles the expression to an intermediate representation.createContext
(ILcdDataObject aRootObject) Creates a context for the given root object for evaluating expressions.evaluate
(String aExpression, TLcdDataObjectExpressionContext aContext) Returns the result of evaluating the given expression with the given context.evaluate
(String aExpression, ILcdDataObject aRoot) Returns the result of evaluating the given expression for the given root object.
-
Constructor Details
-
ALcdDataObjectExpressionLanguage
public ALcdDataObjectExpressionLanguage()
-
-
Method Details
-
createContext
Creates a context for the given root object for evaluating expressions.- Parameters:
aRootObject
- the root object- Returns:
- a context that can be used to evaluate expressions
-
evaluate
Returns the result of evaluating the given expression with the given context.- Parameters:
aExpression
- the expression to evaluateaContext
- the context object- Returns:
- the value of the expression evaluation
-
evaluate
Returns the result of evaluating the given expression for the given root object.- Parameters:
aExpression
- the expression to evaluateaRoot
- the root object- Returns:
- the value of the expression evaluation
-
compile
Compiles the expression to an intermediate representation. This can be used to improve performance when the same expression needs to be evaluated in different contexts.- Parameters:
aExpression
- the expression to compile- Returns:
- a compiled expression
-