Contains types to model text files and handle operations on text. Parser implementations build upon this framework. This package is built around the type
TextFile, which represents a source file and allows reading and writing. The class
TextDocumentmodels an in-memory snapshot of the state of a TextFile, and exposes information like line/offset mapping.
Interface Summary Interface Description TextDocumentRepresents a textual document, providing methods to edit it incrementally and address regions of text. TextFileRepresents some location containing character data.
Class Summary Class Description CharsView on a string which doesn't copy the array for subsequence operations. CpdCompat Deprecated. FileCollectorCollects files to analyse before a PMD run. FileLocationRepresents the coordinates of a text region, used for reporting. FragmentedDocBuilder TextFileBuilderA builder for a new text file. TextFileContentContents of a text file. TextPos2dA place in a text document, represented as line/column information. TextRange2dA place in a text document, represented as line/column information. TextRegionA contiguous range of text in a
Exception Summary Exception Description ReadOnlyFileExceptionThrown when an attempt to write through a
TextFilefails because the file is read-only.