java.lang.Object
com.maroontress.intexpr.syntaxtree.UnaryOperatorNode
- All Implemented Interfaces:
SyntaxNode
The syntax node representing a unary operator.
-
Constructor Summary
ConstructorsConstructorDescriptionUnaryOperatorNode(Opcode opcode, SyntaxNode operand) Creates a new instance. -
Method Summary
-
Constructor Details
-
UnaryOperatorNode
Creates a new instance.- Parameters:
opcode- The opcode.operand- The operand.
-
-
Method Details
-
toString
Returns the string visualizing the syntax tree.- Specified by:
toStringin 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.
-