@ExperimentalApi public class PrettyAstPrinter extends AstPrinter
AstPrinter
), like comments.AstPrinter
Modifier and Type | Class and Description |
---|---|
static class |
PrettyAstPrinter.PrettyPrinterOptions
Contains options that modify how a document is printed.
|
Constructor and Description |
---|
PrettyAstPrinter(NodeToRuleCapturingParser.ParserContext parserContext) |
PrettyAstPrinter(NodeToRuleCapturingParser.ParserContext parserContext,
PrettyAstPrinter.PrettyPrinterOptions options) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
print(Node node) |
static java.lang.String |
print(java.lang.String schemaDefinition,
PrettyAstPrinter.PrettyPrinterOptions options) |
printAst, printAst, printAstCompact
public PrettyAstPrinter(NodeToRuleCapturingParser.ParserContext parserContext)
public PrettyAstPrinter(NodeToRuleCapturingParser.ParserContext parserContext, PrettyAstPrinter.PrettyPrinterOptions options)
public java.lang.String print(Node node)
public static java.lang.String print(java.lang.String schemaDefinition, PrettyAstPrinter.PrettyPrinterOptions options)