Class Optimizer
java.lang.Object
com.aquima.interactions.expressions.optimizer.Optimizer
The optimizer is responsible for converting nodes from the semantic tree to nodes that can be evaluated. The
implementation of this class should attempt to create evaluation nodes that are optimal in both memory consumption
(no unnecessary members) and evaluation time.
- Since:
- 6.4
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionOptimizer
(MessageReporter reporter) Constructs the optimizer with the reporter that should be used to add any errors or warnings to. -
Method Summary
Modifier and TypeMethodDescriptionoptimize
(ISemanticNode node) This method converts the semantic node to an optimal expression node that can be evaluated.
-
Constructor Details
-
Optimizer
Constructs the optimizer with the reporter that should be used to add any errors or warnings to.- Parameters:
reporter
- the reporter that should be used to add any errors or warnings to.
-
-
Method Details
-
optimize
This method converts the semantic node to an optimal expression node that can be evaluated.- Parameters:
node
- The semantic node that should be converted.- Returns:
- The expression node for the specified semantic node.
-