Class TokenDocument<T extends GenericToken<T>>
java.lang.Object
net.sourceforge.pmd.lang.ast.impl.TokenDocument<T>
- Direct Known Subclasses:
JavaccTokenDocument
Token layer of a parsed file.
This object is used to store state global to all tokens of a single file,
e.g. the text document. Not all languages currently have an implementation
of a token document.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TReturns the first token of the token chain.Returns the original text of the file (without escaping).
-
Constructor Details
-
TokenDocument
-
-
Method Details
-
getFullText
Returns the original text of the file (without escaping). -
getTextDocument
-
getFirstToken
Returns the first token of the token chain.- Throws:
IllegalStateException- If the document has not been parsed yet
-