java.lang.Object
com.maroontress.intexpr.syntaxtree.BinaryOperatorNode
- All Implemented Interfaces:
SyntaxNode
The syntax node representing a binary operator.
-
Constructor Summary
ConstructorDescriptionBinaryOperatorNode
(Opcode opcode, SyntaxNode leftOperand, SyntaxNode rightOperand) Creates a new instance. -
Method Summary
-
Constructor Details
-
BinaryOperatorNode
Creates a new instance.- Parameters:
opcode
- The opcode.leftOperand
- The left operand.rightOperand
- The right operand.
-
-
Method Details
-
toString
Returns the string visualizing the syntax tree.- Specified by:
toString
in interfaceSyntaxNode
- Parameters:
firstIndent
- The string to indent the first line.indent
- The string to indent the second and subsequent lines.- Returns:
- The string visualizing the syntax tree.
-