Uses of Interface
com.github.javaparser.printer.lexicalpreservation.TextElementMatcher
-
Packages that use TextElementMatcher Package Description com.github.javaparser.printer.lexicalpreservation -
-
Uses of TextElementMatcher in com.github.javaparser.printer.lexicalpreservation
Classes in com.github.javaparser.printer.lexicalpreservation that implement TextElementMatcher Modifier and Type Class Description classChildTextElementRepresent the position of a child node in the NodeText of its parent.classTextElementclassTokenTextElementMethods in com.github.javaparser.printer.lexicalpreservation that return TextElementMatcher Modifier and Type Method Description default 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 TextElementMatcherTextElementMatchers. byNode(Node node)(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 TextElementMatcher Modifier and Type Method Description default 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)
-