public abstract class ALcdDataObjectExpressionLanguage extends Object
ILcdDataObject
instances.TLcdDataObjectExpressionLanguage
Constructor and Description |
---|
ALcdDataObjectExpressionLanguage() |
Modifier and Type | Method and Description |
---|---|
abstract ILcdDataObjectExpression |
compile(String aExpression)
Compiles the expression to an intermediate representation.
|
TLcdDataObjectExpressionContext |
createContext(ILcdDataObject aRootObject)
Creates a context for the given root object for evaluating expressions.
|
Object |
evaluate(String aExpression,
ILcdDataObject aRoot)
Returns the result of evaluating the given expression for the given root object.
|
Object |
evaluate(String aExpression,
TLcdDataObjectExpressionContext aContext)
Returns the result of evaluating the given expression with the given context.
|
public TLcdDataObjectExpressionContext createContext(ILcdDataObject aRootObject)
aRootObject
- the root objectpublic Object evaluate(String aExpression, TLcdDataObjectExpressionContext aContext)
aExpression
- the expression to evaluateaContext
- the context objectpublic Object evaluate(String aExpression, ILcdDataObject aRoot)
aExpression
- the expression to evaluateaRoot
- the root objectpublic abstract ILcdDataObjectExpression compile(String aExpression)
aExpression
- the expression to compile