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_DATAThe 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) NodeTextChildTextElement.getNodeTextForWrappedNode()(package private) static NodeTextLexicalPreservingPrinter.getOrCreateNodeText(Node node) private static NodeTextLexicalPreservingPrinter.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 intDifference.adjustIndentation(List<TokenTextElement> indentation, NodeText nodeText, int nodeTextIndex, boolean followedByUnindent) (package private) voidLexicalDifferenceCalculator.calculatePropertyChange(NodeText nodeText, Node observedNode, ObservableProperty property, Object oldValue, Object newValue) private intDifference.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 voidDifferenceElementCalculator.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 voidLexicalPreservingPrinter.Observer.fixIndentOfMovedNode(NodeText nodeText, int index) This method inserts new space tokens at the givenindex.private intLexicalPreservingPrinter.Observer.getIndexOfComment(Comment oldValue, NodeText nodeText) private static NodeTextLexicalPreservingPrinter.interpret(Node node, CsmElement csm, NodeText nodeText) TODO: Process CsmIndent and CsmUnindent before reaching this pointprivate booleanDifference.isAfterLBrace(NodeText nodeText, int nodeTextIndex) static Iterator<TokenTextElement>TextElementIteratorsFactory.partialReverseIterator(NodeText nodeText, int fromIndex) private static voidLexicalPreservingPrinter.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)