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