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 (package private) class
ChildTextElement
Represent the position of a child node in the NodeText of its parent.class
TextElement
(package private) class
TokenTextElement
Methods in com.github.javaparser.printer.lexicalpreservation that return TextElementMatcher Modifier and Type Method Description default TextElementMatcher
TextElementMatcher. 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
TextElementMatchers. byNode(Node node)
(package private) static TextElementMatcher
TextElementMatchers. byTokenType(int tokenType)
(package private) TextElementMatcher
TextElement. matchByRange()
Creates aTextElementMatcher
that 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 TextElementMatcher
TextElementMatcher. and(TextElementMatcher textElementMatcher)
This allows the combination of different TextElementMatcher instances.
If combined, all of the TextElementMatchers have to return true.(package private) int
NodeText. findElement(TextElementMatcher matcher)
(package private) int
NodeText. findElement(TextElementMatcher matcher, int from)
(package private) void
NodeText. remove(TextElementMatcher matcher)
void
NodeText. remove(TextElementMatcher matcher, boolean potentiallyFollowingWhitespace)
(package private) void
NodeText. replace(TextElementMatcher position, TextElement newElement)
(package private) int
NodeText. tryToFindElement(TextElementMatcher matcher, int from)
-