@PublicApi public class AstPrinter extends java.lang.Object
Constructor and Description |
---|
AstPrinter() |
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.
|
public static java.lang.String printAst(Node node)
node
- the AST node to printpublic static java.lang.String printAstCompact(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 print