Package graphql.language
Class PrettyAstPrinter
java.lang.Object
graphql.language.AstPrinter
graphql.language.PrettyAstPrinter
A printer that acts as a code formatter.
This printer will preserve pretty much all elements from the source text, even those that are not part of the AST
(and are thus discarded by the
AstPrinter
), like comments.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Contains options that modify how a document is printed. -
Constructor Summary
ConstructorsConstructorDescriptionPrettyAstPrinter
(NodeToRuleCapturingParser.ParserContext parserContext) PrettyAstPrinter
(NodeToRuleCapturingParser.ParserContext parserContext, PrettyAstPrinter.PrettyPrinterOptions options) -
Method Summary
Methods inherited from class graphql.language.AstPrinter
printAst, printAst, printAstCompact, printAstTo
-
Constructor Details
-
PrettyAstPrinter
-
PrettyAstPrinter
public PrettyAstPrinter(NodeToRuleCapturingParser.ParserContext parserContext, PrettyAstPrinter.PrettyPrinterOptions options)
-
-
Method Details
-
print
-
print
-