Uses of Interface
com.github.javaparser.printer.lexicalpreservation.TextElementMatcher
Packages that use TextElementMatcher
-
Uses of TextElementMatcher in com.github.javaparser.printer.lexicalpreservation
Classes in com.github.javaparser.printer.lexicalpreservation that implement TextElementMatcherModifier and TypeClassDescriptionclassRepresent the position of a child node in the NodeText of its parent.classclassMethods in com.github.javaparser.printer.lexicalpreservation that return TextElementMatcherModifier and TypeMethodDescriptiondefault TextElementMatcherTextElementMatcher.and(TextElementMatcher textElementMatcher) This allows the combination of different TextElementMatcher instances.
If combined, all of the TextElementMatchers have to return true.(package private) static TextElementMatcher(package private) static TextElementMatcherTextElementMatchers.byTokenType(int tokenType) (package private) TextElementMatcherTextElement.matchByRange()Creates aTextElementMatcherthat matches any TextElement with the same range as this TextElement.
This can be used to curry another TextElementMatcher.
e.g.Methods in com.github.javaparser.printer.lexicalpreservation with parameters of type TextElementMatcherModifier and TypeMethodDescriptiondefault TextElementMatcherTextElementMatcher.and(TextElementMatcher textElementMatcher) This allows the combination of different TextElementMatcher instances.
If combined, all of the TextElementMatchers have to return true.(package private) intNodeText.findElement(TextElementMatcher matcher) (package private) intNodeText.findElement(TextElementMatcher matcher, int from) voidNodeText.remove(TextElementMatcher matcher, boolean potentiallyFollowingWhitespace) (package private) voidNodeText.replace(TextElementMatcher position, TextElement newElement) (package private) intNodeText.tryToFindElement(TextElementMatcher matcher, int from)