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 TextRegionPlainTextLanguage.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 TextRegionGenericToken. getRegion()Returns a text region with the coordinates of this token.TextRegionNode. getTextRegion()Returns a region of text delimiting the node in the underlying text document.TextRegionTextAvailableNode. 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 TextRegionAntlrToken. getRegion()Returns a text region with the coordinates of this token.TextRegionBaseAntlrNode. 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 TextRegionJavaccToken. getRegion()TextRegionAbstractJjtreeNode. 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 TextRegionTextRegion. caretAt(int startOffset)Builds a new region with zero length and placed at the given offset.TextRegionTextDocument. createLineRange(int startLineInclusive, int endLineInclusive)Returns a region that spans the text of all the given lines.static TextRegionTextRegion. fromBothOffsets(int startOffset, int endOffset)Builds a new region from start and end offset.static TextRegionTextRegion. fromOffsetLength(int startOffset, int length)Builds a new region from offset and length.default TextRegionTextDocument. getEntireRegion()Returns a text region that corresponds to the entire document, in the coordinate system of this document.@Nullable TextRegionFileLocation. getRegionInFile()Returns the region in the file, or null if this was not available.TextRegionTextRegion. growLeft(int delta)Returns a region that ends at the same point, but starts 'delta' characters before this region.TextRegionTextRegion. growRight(int delta)Returns a region that starts at the same point, but ends 'delta' characters after this region.static @Nullable TextRegionTextRegion. intersect(TextRegion r1, TextRegion r2)Computes the intersection of this region with the other.static TextRegionTextRegion. 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 intTextRegion. compareTo(@NonNull TextRegion o)Compares the start offset, then the length of a region.booleanTextRegion. contains(TextRegion other)Returns true if this region contains the entirety of the other region.static @Nullable TextRegionTextRegion. intersect(TextRegion r1, TextRegion r2)Computes the intersection of this region with the other.booleanTextRegion. overlaps(TextRegion other)Returns true if this region overlaps the other region by at least one character.CharsChars. slice(TextRegion region)Slice a region of text.CharsTextDocument. sliceOriginalText(TextRegion region)Returns a slice of the original text.default CharsTextDocument. sliceTranslatedText(TextRegion region)Returns a slice of the source text.FileLocationTextDocument. toLocation(TextRegion region)Turn a text region into aFileLocation.static TextRegionTextRegion. union(TextRegion r1, TextRegion r2)Computes the union of this region with the other.
-