Package com.helix.core.parser.ast
Class BinaryExpressionNode
java.lang.Object
com.helix.core.parser.ast.BinaryOpNode
com.helix.core.parser.ast.BinaryExpressionNode
- All Implemented Interfaces:
ExpressionNode
AST node representing general binary expressions (arithmetic and logical operations).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.helix.core.parser.ast.BinaryOpNode
BinaryOpNode.Operator -
Constructor Summary
ConstructorsConstructorDescriptionBinaryExpressionNode(BinaryOpNode.Operator operator, ExpressionNode left, ExpressionNode right) -
Method Summary
Methods inherited from class com.helix.core.parser.ast.BinaryOpNode
equals, getLeft, getOperator, getRight, hashCode, toString
-
Constructor Details
-
BinaryExpressionNode
public BinaryExpressionNode(BinaryOpNode.Operator operator, ExpressionNode left, ExpressionNode right)
-
-
Method Details
-
accept
Description copied from interface:ExpressionNodeAccepts an AST visitor.- Specified by:
acceptin interfaceExpressionNode- Overrides:
acceptin classBinaryOpNode- Type Parameters:
R- return type- Parameters:
visitor- the visitor- Returns:
- result from visitor
-