Class TemplateExpression

java.lang.Object
com.aquima.interactions.expressions.optimizer.nodes.TemplateExpression
All Implemented Interfaces:
IExpressionNode, Serializable

public class TemplateExpression extends Object implements IExpressionNode
The template expression is used to include a predefined expression (template) into the current expression.
Since:
6.4
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • TemplateExpression

      public TemplateExpression(IExpr expression)
      Constructs the template expression with the implementation of the expression that should be included.
      Parameters:
      expression - The expression that should be included into the current expression.
  • Method Details

    • evaluate

      public IValue evaluate(IValueEnvironment environment)
      Description copied from interface: IExpressionNode
      This method evaluates the node using the environment passed as argument and returns the result as a value or null if the result is unknown.
      Specified by:
      evaluate in interface IExpressionNode
      Parameters:
      environment - The environment that should be used when evaluating the node.
      Returns:
      The result of the evaluation, or null if the result is unknown.
    • toString

      public String toString()
      Overrides:
      toString in class Object