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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateExpression(IExpr expression)
Constructs the template expression with the implementation of the expression that should be included.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IValue
evaluate(IValueEnvironment environment)
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.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
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 interfaceIExpressionNode
- 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.
-
-