Package com.powsybl.dsl.ast
Class ExpressionHelper
java.lang.Object
com.powsybl.dsl.ast.ExpressionHelper
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArithmeticBinaryOperatorNode
newArithmeticBinaryOperator
(ExpressionNode left, ExpressionNode right, ArithmeticBinaryOperator operator) static BigDecimalLiteralNode
newBigDecimalLiteral
(BigDecimal value) static BooleanLiteralNode
newBooleanLiteral
(boolean value) static ComparisonOperatorNode
newComparisonOperator
(ExpressionNode left, ExpressionNode right, ComparisonOperator operator) static DoubleLiteralNode
newDoubleLiteral
(double value) static FloatLiteralNode
newFloatLiteral
(float value) static IntegerLiteralNode
newIntegerLiteral
(int value) static LogicalBinaryOperatorNode
newLogicalBinaryOperator
(ExpressionNode left, ExpressionNode right, LogicalBinaryOperator operator) static LogicalNotOperator
static ExpressionNode
newStringLiteral
(String value)
-
Method Details
-
newComparisonOperator
public static ComparisonOperatorNode newComparisonOperator(ExpressionNode left, ExpressionNode right, ComparisonOperator operator) -
newLogicalBinaryOperator
public static LogicalBinaryOperatorNode newLogicalBinaryOperator(ExpressionNode left, ExpressionNode right, LogicalBinaryOperator operator) -
newArithmeticBinaryOperator
public static ArithmeticBinaryOperatorNode newArithmeticBinaryOperator(ExpressionNode left, ExpressionNode right, ArithmeticBinaryOperator operator) -
newLogicalNotOperator
-
newFloatLiteral
-
newDoubleLiteral
-
newBigDecimalLiteral
-
newIntegerLiteral
-
newBooleanLiteral
-
newStringLiteral
-