@PublicApi public class AstPrinter extends Object
Modifier and Type | Method and Description |
---|---|
static String |
printAst(Node node)
This will pretty print the AST node in graphql language format
|
static void |
printAst(Writer writer,
Node node)
This will pretty print the AST node in graphql language format
|
static String |
printAstCompact(Node node)
This will print the Ast node in graphql language format in a compact manner, with no new lines
and comments stripped out of the text.
|
public static String printAst(Node node)
node
- the AST node to printpublic static void printAst(Writer writer, Node node)
writer
- the place to put the outputnode
- the AST node to printpublic static String printAstCompact(Node node)
node
- the AST node to printCopyright © 2019. All rights reserved.