Package com.powsybl.dsl.ast
Class ExpressionHelper
- java.lang.Object
-
- com.powsybl.dsl.ast.ExpressionHelper
-
public final class ExpressionHelper extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
newLogicalNotOperator(ExpressionNode child)
static ExpressionNode
newStringLiteral(String value)
-
-
-
Method Detail
-
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
public static LogicalNotOperator newLogicalNotOperator(ExpressionNode child)
-
newFloatLiteral
public static FloatLiteralNode newFloatLiteral(float value)
-
newDoubleLiteral
public static DoubleLiteralNode newDoubleLiteral(double value)
-
newBigDecimalLiteral
public static BigDecimalLiteralNode newBigDecimalLiteral(BigDecimal value)
-
newIntegerLiteral
public static IntegerLiteralNode newIntegerLiteral(int value)
-
newBooleanLiteral
public static BooleanLiteralNode newBooleanLiteral(boolean value)
-
newStringLiteral
public static ExpressionNode newStringLiteral(String value)
-
-