Uses of Class
net.sourceforge.pmd.lang.document.TextRegion
-
Packages that use TextRegion Package Description net.sourceforge.pmd.lang net.sourceforge.pmd.lang.ast net.sourceforge.pmd.lang.ast.impl.antlr4 net.sourceforge.pmd.lang.ast.impl.javacc Support classes for language implementations based on JavaCC.net.sourceforge.pmd.lang.document Contains types to model text files and handle operations on text. -
-
Uses of TextRegion in net.sourceforge.pmd.lang
Methods in net.sourceforge.pmd.lang that return TextRegion Modifier and Type Method Description TextRegion
PlainTextLanguage.PlainTextFile. getTextRegion()
-
Uses of TextRegion in net.sourceforge.pmd.lang.ast
Methods in net.sourceforge.pmd.lang.ast that return TextRegion Modifier and Type Method Description TextRegion
GenericToken. getRegion()
Returns a text region with the coordinates of this token.TextRegion
Node. getTextRegion()
Returns a region of text delimiting the node in the underlying text document.TextRegion
TextAvailableNode. getTextRegion()
Returns the exact region of text delimiting the node in the underlying text document. -
Uses of TextRegion in net.sourceforge.pmd.lang.ast.impl.antlr4
Methods in net.sourceforge.pmd.lang.ast.impl.antlr4 that return TextRegion Modifier and Type Method Description TextRegion
AntlrToken. getRegion()
Returns a text region with the coordinates of this token.TextRegion
BaseAntlrNode. getTextRegion()
-
Uses of TextRegion in net.sourceforge.pmd.lang.ast.impl.javacc
Methods in net.sourceforge.pmd.lang.ast.impl.javacc that return TextRegion Modifier and Type Method Description TextRegion
JavaccToken. getRegion()
TextRegion
AbstractJjtreeNode. getTextRegion()
-
Uses of TextRegion in net.sourceforge.pmd.lang.document
Methods in net.sourceforge.pmd.lang.document that return TextRegion Modifier and Type Method Description static TextRegion
TextRegion. caretAt(int startOffset)
Builds a new region with zero length and placed at the given offset.TextRegion
TextDocument. createLineRange(int startLineInclusive, int endLineInclusive)
Returns a region that spans the text of all the given lines.static TextRegion
TextRegion. fromBothOffsets(int startOffset, int endOffset)
Builds a new region from start and end offset.static TextRegion
TextRegion. fromOffsetLength(int startOffset, int length)
Builds a new region from offset and length.default TextRegion
TextDocument. getEntireRegion()
Returns a text region that corresponds to the entire document, in the coordinate system of this document.@Nullable TextRegion
FileLocation. getRegionInFile()
Returns the region in the file, or null if this was not available.TextRegion
TextRegion. growLeft(int delta)
Returns a region that ends at the same point, but starts 'delta' characters before this region.TextRegion
TextRegion. growRight(int delta)
Returns a region that starts at the same point, but ends 'delta' characters after this region.static @Nullable TextRegion
TextRegion. intersect(TextRegion r1, TextRegion r2)
Computes the intersection of this region with the other.static TextRegion
TextRegion. union(TextRegion r1, TextRegion r2)
Computes the union of this region with the other.Methods in net.sourceforge.pmd.lang.document with parameters of type TextRegion Modifier and Type Method Description int
TextRegion. compareTo(@NonNull TextRegion o)
Compares the start offset, then the length of a region.boolean
TextRegion. contains(TextRegion other)
Returns true if this region contains the entirety of the other region.static @Nullable TextRegion
TextRegion. intersect(TextRegion r1, TextRegion r2)
Computes the intersection of this region with the other.boolean
TextRegion. overlaps(TextRegion other)
Returns true if this region overlaps the other region by at least one character.Chars
Chars. slice(TextRegion region)
Slice a region of text.Chars
TextDocument. sliceOriginalText(TextRegion region)
Returns a slice of the original text.default Chars
TextDocument. sliceTranslatedText(TextRegion region)
Returns a slice of the source text.FileLocation
TextDocument. toLocation(TextRegion region)
Turn a text region into aFileLocation
.static TextRegion
TextRegion. union(TextRegion r1, TextRegion r2)
Computes the union of this region with the other.
-