Uses of Interface
net.sourceforge.pmd.lang.document.TextDocument
-
Packages that use TextDocument Package Description net.sourceforge.pmd.cpd Token-based copy-paste detection.net.sourceforge.pmd.cpd.impl Utilities to implement a CPDCpdLexer
.net.sourceforge.pmd.lang.ast net.sourceforge.pmd.lang.ast.impl net.sourceforge.pmd.lang.ast.impl.antlr4 net.sourceforge.pmd.lang.ast.impl.javacc Support classes for language implementations based on JavaCC.net.sourceforge.pmd.lang.document Contains types to model text files and handle operations on text. -
-
Uses of TextDocument in net.sourceforge.pmd.cpd
Methods in net.sourceforge.pmd.cpd with parameters of type TextDocument Modifier and Type Method Description void
AnyCpdLexer. tokenize(TextDocument document, TokenFactory tokens)
static Tokens
CpdLexer. tokenize(CpdLexer cpdLexer, TextDocument textDocument)
static void
CpdLexer. tokenize(CpdLexer cpdLexer, TextDocument textDocument, Tokens tokens)
Wraps a call toCpdLexer.tokenize(TextDocument, TokenFactory)
to properly create and close the token factory.void
CpdLexer. tokenize(TextDocument document, TokenFactory tokens)
Tokenize the source code and record tokens using the provided token factory. -
Uses of TextDocument in net.sourceforge.pmd.cpd.impl
Methods in net.sourceforge.pmd.cpd.impl with parameters of type TextDocument Modifier and Type Method Description protected TokenManager<AntlrToken>
AntlrCpdLexer. makeLexerImpl(TextDocument doc)
protected abstract TokenManager<T>
CpdLexerBase. makeLexerImpl(TextDocument doc)
void
CpdLexerBase. tokenize(TextDocument document, TokenFactory tokens)
-
Uses of TextDocument in net.sourceforge.pmd.lang.ast
Methods in net.sourceforge.pmd.lang.ast that return TextDocument Modifier and Type Method Description @NonNull TextDocument
AstInfo. getTextDocument()
Returns the text document that was parsed.default @NonNull TextDocument
Node. getTextDocument()
Returns the text document from which this tree was parsed.TextDocument
Parser.ParserTask. getTextDocument()
The text document to parse.Methods in net.sourceforge.pmd.lang.ast with parameters of type TextDocument Modifier and Type Method Description Parser.ParserTask
Parser.ParserTask. withTextDocument(TextDocument textDocument)
Constructors in net.sourceforge.pmd.lang.ast with parameters of type TextDocument Constructor Description ParserTask(TextDocument textDoc, SemanticErrorReporter reporter, LanguageProcessorRegistry lpRegistry)
-
Uses of TextDocument in net.sourceforge.pmd.lang.ast.impl
Methods in net.sourceforge.pmd.lang.ast.impl that return TextDocument Modifier and Type Method Description TextDocument
TokenDocument. getTextDocument()
Constructors in net.sourceforge.pmd.lang.ast.impl with parameters of type TextDocument Constructor Description TokenDocument(TextDocument textDocument)
-
Uses of TextDocument in net.sourceforge.pmd.lang.ast.impl.antlr4
Constructors in net.sourceforge.pmd.lang.ast.impl.antlr4 with parameters of type TextDocument Constructor Description AntlrToken(org.antlr.v4.runtime.Token token, AntlrToken previousComment, TextDocument textDoc)
Deprecated.Don't create antlr tokens directly, use anAntlrTokenManager
AntlrTokenManager(org.antlr.v4.runtime.Lexer lexer, TextDocument textDocument)
-
Uses of TextDocument in net.sourceforge.pmd.lang.ast.impl.javacc
Methods in net.sourceforge.pmd.lang.ast.impl.javacc that return TextDocument Modifier and Type Method Description TextDocument
JavaccTokenDocument.TokenDocumentBehavior. translate(TextDocument text)
Translate the escapes of the source document.TextDocument
EscapeTranslator. translateDocument()
Translate all the input in the buffer.Methods in net.sourceforge.pmd.lang.ast.impl.javacc with parameters of type TextDocument Modifier and Type Method Description static CharStream
CharStream. create(TextDocument doc)
Create a new char stream for the given document with the default token document behavior.static CharStream
CharStream. create(TextDocument doc, JavaccTokenDocument.TokenDocumentBehavior behavior)
Create a new char stream for the given document.TextDocument
JavaccTokenDocument.TokenDocumentBehavior. translate(TextDocument text)
Translate the escapes of the source document.Constructors in net.sourceforge.pmd.lang.ast.impl.javacc with parameters of type TextDocument Constructor Description BackslashEscapeTranslator(TextDocument builder)
EscapeTranslator(TextDocument original)
Create a translator that will read from the given document.JavaccTokenDocument(TextDocument textDocument, JavaccTokenDocument.TokenDocumentBehavior behavior)
JavaEscapeTranslator(TextDocument input)
-
Uses of TextDocument in net.sourceforge.pmd.lang.document
Methods in net.sourceforge.pmd.lang.document that return TextDocument Modifier and Type Method Description TextDocument
FragmentedDocBuilder. build()
static TextDocument
TextDocument. create(TextFile textFile)
Create a new text document for the given text file.static TextDocument
TextDocument. readOnlyString(@NonNull CharSequence source, @NonNull FileId filename, @NonNull LanguageVersion lv)
Returns a read-only document for the given text.static TextDocument
TextDocument. readOnlyString(CharSequence source, LanguageVersion lv)
Returns a read-only document for the given text.Methods in net.sourceforge.pmd.lang.document with parameters of type TextDocument Modifier and Type Method Description static boolean
TextRegion. isValidRegion(int startOffset, int endOffset, TextDocument doc)
Checks that the parameters are a valid region, this is provided to debug, will be a noop unless assertions are enabled.Constructors in net.sourceforge.pmd.lang.document with parameters of type TextDocument Constructor Description FragmentedDocBuilder(TextDocument original)
-