Class ALcdDataObjectExpressionLanguage

java.lang.Object
com.luciad.datamodel.expression.ALcdDataObjectExpressionLanguage
Direct Known Subclasses:
TLcdDataObjectExpressionLanguage

public abstract class ALcdDataObjectExpressionLanguage extends Object
Abstract definition of an expression language that enables the definition and evaluation of expressions over ILcdDataObject instances.
Since:
10.1
See Also:
  • Constructor Details

    • ALcdDataObjectExpressionLanguage

      public ALcdDataObjectExpressionLanguage()
  • Method Details

    • createContext

      public TLcdDataObjectExpressionContext createContext(ILcdDataObject aRootObject)
      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

      public Object evaluate(String aExpression, TLcdDataObjectExpressionContext aContext)
      Returns the result of evaluating the given expression with the given context.
      Parameters:
      aExpression - the expression to evaluate
      aContext - the context object
      Returns:
      the value of the expression evaluation
    • evaluate

      public Object evaluate(String aExpression, ILcdDataObject aRoot)
      Returns the result of evaluating the given expression for the given root object.
      Parameters:
      aExpression - the expression to evaluate
      aRoot - the root object
      Returns:
      the value of the expression evaluation
    • compile

      public abstract ILcdDataObjectExpression compile(String aExpression)
      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