Returns the name of this node type for printing.
Returns the name of this node type for printing.
By default, this is the class name of the node. For some nodes, such as ASTIdentifier, this should be something else; those nodes can override this method.
a String containing the name of this node type for printing
Returns a String representation of this node and it's leaves suitable for pretty-printing at the desired indentation level.
Returns a String representation of this node and it's leaves suitable for pretty-printing at the desired indentation level.
This is distinct from toString() because it takes arguments for the indentation level and the label, because to properly pretty-print the tree, we need information to be passed from other nodes. Therefore, this method is for internal use only; if you want a string representation of a node, call its' toString() method instead.
the level to indent the node's name
an optional label to attach to the node
a String containing the pretty-print representation of the node
Returns pretty-printable String representations of this node's children at the desired indent level, or epsilon if this node has no children.
Returns pretty-printable String representations of this node's children at the desired indent level, or epsilon if this node has no children.
This method is for internal use only; if you want a string representation of a node, call its' toString() method instead.
the level to indent the children of this node; this should be the indentlevel of this node + 1
pretty-printable String representations of this node's children
Returns a String representation of the tree with this node as the root node.
Returns a String representation of the tree with this node as the root node.
a String representation of the the with this node as the root node.