| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final LexicalDifferenceCalculator | |
| public static final DataKey | NODE_TEXT_DATA
The nodetext for a node is stored in the node's data field. |
| private static AstObserver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static AstObserver | |
| pack-priv static List | |
| private static Node | |
| private static ObservableProperty | |
| pack-priv static NodeText | |
| private static NodeText | interpret(Node node, CsmElement csm, NodeText nodeText)
Todo Process CsmIndent and CsmUnindent before reaching this point |
| private static boolean | |
| private static void | |
| public static String | |
| public static void | |
| public static <N extends Node> N | Returns: the node passed as a parameter for your convenience.Prepares the node so it can be used in the print methods. |
| private static void | |
| private static void | |
| private static Iterator |
| LEXICAL_DIFFERENCE_CALCULATOR | back to summary |
|---|---|
| private static final LexicalDifferenceCalculator LEXICAL_DIFFERENCE_CALCULATOR | |
| NODE_TEXT_DATA | back to summary |
|---|---|
| public static final DataKey<NodeText> NODE_TEXT_DATA The nodetext for a node is stored in the node's data field. This is the key to set and retrieve it. | |
| observer | back to summary |
|---|---|
| private static AstObserver observer | |
| LexicalPreservingPrinter | back to summary |
|---|---|
| public LexicalPreservingPrinter() | |
| createObserver | back to summary |
|---|---|
| private static AstObserver createObserver() | |
| findIndentation | back to summary |
|---|---|
| pack-priv static List | |
| findNodeForToken | back to summary |
|---|---|
| private static Node findNodeForToken(Node node, Range tokenRange) | |
| findNodeListName | back to summary |
|---|---|
| private static ObservableProperty findNodeListName(NodeList<N extends Node> nodeList) | |
| getOrCreateNodeText | back to summary |
|---|---|
| pack-priv static NodeText getOrCreateNodeText(Node node) | |
| interpret | back to summary |
|---|---|
| private static NodeText interpret(Node node, CsmElement csm, NodeText nodeText) Todo Process CsmIndent and CsmUnindent before reaching this point | |
| isReturningOptionalNodeList | back to summary |
|---|---|
| private static boolean isReturningOptionalNodeList(Method m) | |
| prettyPrintingTextNode | back to summary |
|---|---|
| private static void prettyPrintingTextNode(Node node, NodeText nodeText) | |
| back to summary | |
|---|---|
| public static String print(Node node) Print a Node into a String, preserving the lexical information. | |
| back to summary | |
|---|---|
| public static void print(Node node, Writer writer) throws IOException Print a Node into a Writer, preserving the lexical information. | |
| setup | back to summary |
|---|---|
| public static <N extends Node> N setup(N node) Prepares the node so it can be used in the print methods. The correct order is:
| |
| storeInitialText | back to summary |
|---|---|
| private static void storeInitialText(Node root) | |
| storeInitialTextForOneNode | back to summary |
|---|---|
| private static void storeInitialTextForOneNode(Node node, List<JavaToken> nodeTokens) | |
| tokensPreceeding | back to summary |
|---|---|
| private static Iterator | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | concreteListChange(NodeList<N extends Node> changedList, AstObserver.
Overrides com. |
| public void | concreteListReplacement(NodeList<N extends Node> changedList, int index, Node oldValue, Node newValue)
Overrides com. |
| public void | concretePropertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)
Overrides com. |
| private List | |
| private List | |
| private int | |
| private boolean |
| Observer | back to summary |
|---|---|
| private Observer() | |
| concreteListChange | back to summary |
|---|---|
| public void concreteListChange(NodeList<N extends Node> changedList, AstObserver. Overrides com.
| |
| concreteListReplacement | back to summary |
|---|---|
| public void concreteListReplacement(NodeList<N extends Node> changedList, int index, Node oldValue, Node newValue) Overrides com.
| |
| concretePropertyChange | back to summary |
|---|---|
| public void concretePropertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue) Overrides com.
| |
| findChildTextElementForComment | back to summary |
|---|---|
| private List | |
| findTokenTextElementForComment | back to summary |
|---|---|
| private List | |
| getIndexOfComment | back to summary |
|---|---|
| private int getIndexOfComment(Comment oldValue, NodeText nodeText) | |
| isEqualRange | back to summary |
|---|---|
| private boolean isEqualRange(Optional<Range> range1, Optional<Range> range2) | |