public class LexicalPreservingPrinter extends Object
Modifier and Type | Field and Description |
---|---|
static DataKey<com.github.javaparser.printer.lexicalpreservation.NodeText> |
NODE_TEXT_DATA
The nodetext for a node is stored in the node's data field.
|
Constructor and Description |
---|
LexicalPreservingPrinter() |
Modifier and Type | Method and Description |
---|---|
static String |
print(Node node)
Print a Node into a String, preserving the lexical information.
|
static void |
print(Node node,
Writer writer)
Print a Node into a Writer, preserving the lexical information.
|
static <N extends Node> |
setup(N node)
Prepares the node so it can be used in the print methods.
|
public static final DataKey<com.github.javaparser.printer.lexicalpreservation.NodeText> NODE_TEXT_DATA
public static <N extends Node> N setup(N node)
public static String print(Node node)
public static void print(Node node, Writer writer) throws IOException
IOException
Copyright © 2007–2019. All rights reserved.