java.lang.Object
com.maroontress.intexpr.syntaxtree.IntConstantNode
- All Implemented Interfaces:
SyntaxNode
The syntax node representing an operand and an integer constant.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IntConstantNode
public IntConstantNode(int value) Creates a new instance.- Parameters:
value
- The immediate value.
-
-
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.
-