Interface IParsedExpression

All Known Implementing Classes:
ArgumentsNode, ArrayNode, BooleanNode, CastNode, CollectionNode, CompareNode, ConditionalNode, ConstantNode, ExpressionNode, MathNode, ParameterNode, ReflectNode, SelectionNode, SelectNode, TypeNode

public interface IParsedExpression
An expression, that can be evaluated in a given state.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the expression text.
    Get the parameters used in the expression.
    Get the static type.
    getValue(jadex.common.IValueFetcher fetcher)
    Evaluate the expression in the given state with respect to given parameters.
  • Method Details

    • getExpressionText

      String getExpressionText()
      Get the expression text.
      Returns:
      The expression text.
    • getValue

      Object getValue(jadex.common.IValueFetcher fetcher)
      Evaluate the expression in the given state with respect to given parameters.
      Parameters:
      params - The parameters (string, value pairs), if any.
      Returns:
      The value of the term.
    • getStaticType

      Class<?> getStaticType()
      Get the static type. If no information about the return type of an expression is available (e.g. because it depends on the evaluation context), the static type is null.
      Returns:
      The static type.
    • getParameters

      Set<String> getParameters()
      Get the parameters used in the expression.