public class NodeUtils
extends java.lang.Object
Constructor and Description |
---|
NodeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
fixIndentation(SimpleNode parent,
java.lang.String parentIndentation)
Fix children indentation in structured space gobbling mode.
|
static java.lang.StringBuilder |
getSpecialText(Parser parser,
Token t)
Collect all the <SPECIAL_TOKEN>s that
are carried along with a token.
|
static java.lang.String |
tokenLiteral(Parser parser,
Token t)
complete node literal
|
public static java.lang.StringBuilder getSpecialText(Parser parser, Token t)
t
- the Tokenpublic static java.lang.String tokenLiteral(Parser parser, Token t)
t
- public static void fixIndentation(SimpleNode parent, java.lang.String parentIndentation)
parent
- parentIndentation
-