Uses of Class
net.sourceforge.pmd.lang.document.TextPos2d
Packages that use TextPos2d
Package
Description
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 TextPos2dModifier and TypeMethodDescriptionFileLocation.getEndPos()Returns the end position.TextRange2d.getEndPos()FileLocation.getStartPos()Returns the start position.TextRange2d.getStartPos()default TextPos2dTextDocument.lineColumnAtOffset(int offset) Returns the line and column at the given offset (inclusive).TextDocument.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 TextPos2dModifier and TypeMethodDescriptionintCompares the start offset, then the length of a region.booleanintTextDocument.offsetAtLineColumn(TextPos2d position) Calculates the offset from a given line/column.static TextRange2d