Uses of Class
com.github.javaparser.printer.lexicalpreservation.NodeText
Packages that use NodeText
-
Uses of NodeText in com.github.javaparser.printer.lexicalpreservation
Fields in com.github.javaparser.printer.lexicalpreservation declared as NodeTextFields in com.github.javaparser.printer.lexicalpreservation with type parameters of type NodeTextModifier and TypeFieldDescriptionLexicalPreservingPrinter.NODE_TEXT_DATA
The nodetext for a node is stored in the node's data field.Methods in com.github.javaparser.printer.lexicalpreservation that return NodeTextModifier and TypeMethodDescription(package private) NodeText
ChildTextElement.getNodeTextForWrappedNode()
(package private) static NodeText
LexicalPreservingPrinter.getOrCreateNodeText
(Node node) private static NodeText
LexicalPreservingPrinter.interpret
(Node node, CsmElement csm, NodeText nodeText) TODO: Process CsmIndent and CsmUnindent before reaching this pointMethods in com.github.javaparser.printer.lexicalpreservation with parameters of type NodeTextModifier and TypeMethodDescriptionprivate int
Difference.adjustIndentation
(List<TokenTextElement> indentation, NodeText nodeText, int nodeTextIndex, boolean followedByUnindent) (package private) void
LexicalDifferenceCalculator.calculatePropertyChange
(NodeText nodeText, Node observedNode, ObservableProperty property, Object oldValue, Object newValue) private int
Difference.considerEnforcingIndentation
(NodeText nodeText, int nodeTextIndex) If we are at the beginning of a line, with just spaces or tabs before us we should force the space to be the same as the indentation.private static void
DifferenceElementCalculator.considerRemoval
(NodeText nodeTextForChild, List<DifferenceElement> elements) private List<ChildTextElement>
LexicalPreservingPrinter.Observer.findChildTextElementForComment
(Comment oldValue, NodeText nodeText) Difference.findIndexOfCorrespondingNodeTextElement
(List<CsmElement> elements, NodeText nodeText, int startIndex, Node node) private List<TokenTextElement>
LexicalPreservingPrinter.Observer.findTokenTextElementForComment
(Comment oldValue, NodeText nodeText) private void
LexicalPreservingPrinter.Observer.fixIndentOfMovedNode
(NodeText nodeText, int index) This method inserts new space tokens at the givenindex
.private int
LexicalPreservingPrinter.Observer.getIndexOfComment
(Comment oldValue, NodeText nodeText) private static NodeText
LexicalPreservingPrinter.interpret
(Node node, CsmElement csm, NodeText nodeText) TODO: Process CsmIndent and CsmUnindent before reaching this pointprivate boolean
Difference.isAfterLBrace
(NodeText nodeText, int nodeTextIndex) static Iterator<TokenTextElement>
TextElementIteratorsFactory.partialReverseIterator
(NodeText nodeText, int fromIndex) private static void
LexicalPreservingPrinter.prettyPrintingTextNode
(Node node, NodeText nodeText) static Iterator<TokenTextElement>
TextElementIteratorsFactory.reverseIterator
(NodeText nodeText) private static Iterator<TokenTextElement>
TextElementIteratorsFactory.reverseIterator
(NodeText nodeText, int index) Constructors in com.github.javaparser.printer.lexicalpreservation with parameters of type NodeTextModifierConstructorDescription(package private)
Difference
(List<DifferenceElement> diffElements, NodeText nodeText, Node node)