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 TextPos2dFileLocation. getEndPos()Returns the end position.TextPos2dTextRange2d. getEndPos()TextPos2dFileLocation. getStartPos()Returns the start position.TextPos2dTextRange2d. getStartPos()default TextPos2dTextDocument. lineColumnAtOffset(int offset)Returns the line and column at the given offset (inclusive).TextPos2dTextDocument. lineColumnAtOffset(int offset, boolean inclusive)Returns the line and column at the given offset.static TextPos2dTextPos2d. 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 intTextPos2d. compareTo(@NonNull TextPos2d that)Compares the start offset, then the length of a region.booleanTextRange2d. contains(TextPos2d pos)intTextDocument. offsetAtLineColumn(TextPos2d position)Calculates the offset from a given line/column.static TextRange2dTextRange2d. range2d(TextPos2d start, TextPos2d end)
-