Uses of Class
net.sourceforge.pmd.lang.document.TextPos2d
-
Packages that use TextPos2d Package Description net.sourceforge.pmd.lang.document Contains types to model text files and handle operations on text. -
-
Uses of TextPos2d in net.sourceforge.pmd.lang.document
Methods in net.sourceforge.pmd.lang.document that return TextPos2d Modifier and Type Method Description TextPos2d
FileLocation. getEndPos()
Returns the end position.TextPos2d
TextRange2d. getEndPos()
TextPos2d
FileLocation. getStartPos()
Returns the start position.TextPos2d
TextRange2d. getStartPos()
default TextPos2d
TextDocument. lineColumnAtOffset(int offset)
Returns the line and column at the given offset (inclusive).TextPos2d
TextDocument. lineColumnAtOffset(int offset, boolean inclusive)
Returns the line and column at the given offset.static TextPos2d
TextPos2d. pos2d(int line, int column)
Builds a new region from offset and length.Methods in net.sourceforge.pmd.lang.document with parameters of type TextPos2d Modifier and Type Method Description int
TextPos2d. compareTo(@NonNull TextPos2d that)
Compares the start offset, then the length of a region.boolean
TextRange2d. contains(TextPos2d pos)
int
TextDocument. offsetAtLineColumn(TextPos2d position)
Calculates the offset from a given line/column.static TextRange2d
TextRange2d. range2d(TextPos2d start, TextPos2d end)
-