Class TemplateExpression
java.lang.Object
com.aquima.interactions.expressions.optimizer.nodes.TemplateExpression
- All Implemented Interfaces:
IExpressionNode
,Serializable
The template expression is used to include a predefined expression (template) into the current expression.
- Since:
- 6.4
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateExpression
(IExpr expression) Constructs the template expression with the implementation of the expression that should be included. -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(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.toString()
-
Constructor Details
-
TemplateExpression
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
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.
-
toString
-