Package com.powsybl.dsl.ast
Class ExpressionEvaluator
- All Implemented Interfaces:
ExpressionVisitor<Object,
Void>
- Direct Known Subclasses:
ActionExpressionEvaluator
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
evaluate
(ExpressionNode node) visitComparisonOperator
(ComparisonOperatorNode node, Void arg) visitLiteral
(AbstractLiteralNode node, Void arg) visitLogicalOperator
(LogicalBinaryOperatorNode node, Void arg) visitNotOperator
(LogicalNotOperator node, Void arg)
-
Constructor Details
-
ExpressionEvaluator
public ExpressionEvaluator()
-
-
Method Details
-
evaluate
-
visitLiteral
- Specified by:
visitLiteral
in interfaceExpressionVisitor<Object,
Void> - Overrides:
visitLiteral
in classDefaultExpressionVisitor<Object,
Void>
-
visitComparisonOperator
- Specified by:
visitComparisonOperator
in interfaceExpressionVisitor<Object,
Void> - Overrides:
visitComparisonOperator
in classDefaultExpressionVisitor<Object,
Void>
-
visitNotOperator
- Specified by:
visitNotOperator
in interfaceExpressionVisitor<Object,
Void> - Overrides:
visitNotOperator
in classDefaultExpressionVisitor<Object,
Void>
-
visitLogicalOperator
- Specified by:
visitLogicalOperator
in interfaceExpressionVisitor<Object,
Void> - Overrides:
visitLogicalOperator
in classDefaultExpressionVisitor<Object,
Void>
-
visitArithmeticOperator
- Specified by:
visitArithmeticOperator
in interfaceExpressionVisitor<Object,
Void> - Overrides:
visitArithmeticOperator
in classDefaultExpressionVisitor<Object,
Void>
-