@PublicApi public class AstPrinter extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
printAst(Node node)
This will pretty print the AST node in graphql language format
|
static void |
printAst(java.io.Writer writer,
Node node)
This will pretty print the AST node in graphql language format
|
static java.lang.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 java.lang.String printAst(Node node)
node
- the AST node to printpublic static void printAst(java.io.Writer writer, Node node)
writer
- the place to put the outputnode
- the AST node to printpublic static java.lang.String printAstCompact(Node node)
node
- the AST node to print