Uses of Interface
net.sourceforge.pmd.lang.document.TextDocument
-
Packages that use TextDocument Package Description net.sourceforge.pmd.cache The violation caching system.net.sourceforge.pmd.cpd Token-based copy-paste detection.net.sourceforge.pmd.cpd.impl Utilities to implement a CPDTokenizer
.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.cache
Methods in net.sourceforge.pmd.cache with parameters of type TextDocument Modifier and Type Method Description void
AbstractAnalysisCache. analysisFailed(TextDocument sourceFile)
Deprecated.void
AnalysisCache. analysisFailed(TextDocument sourceFile)
Deprecated.Notifies the cache that analysis of the given file has failed and should not be cached.void
NoopAnalysisCache. analysisFailed(TextDocument sourceFile)
Deprecated.List<RuleViolation>
AbstractAnalysisCache. getCachedViolations(TextDocument sourceFile)
Deprecated.List<RuleViolation>
AnalysisCache. getCachedViolations(TextDocument sourceFile)
Deprecated.Retrieves cached violations for the given file.List<RuleViolation>
NoopAnalysisCache. getCachedViolations(TextDocument sourceFile)
Deprecated.boolean
AbstractAnalysisCache. isUpToDate(TextDocument document)
Deprecated.boolean
AnalysisCache. isUpToDate(TextDocument document)
Deprecated.Checks if a given file is up to date in the cache and can be skipped from analysis.boolean
NoopAnalysisCache. isUpToDate(TextDocument document)
Deprecated.FileAnalysisListener
AbstractAnalysisCache. startFileAnalysis(TextDocument file)
Deprecated.FileAnalysisListener
AnalysisCache. startFileAnalysis(TextDocument file)
Deprecated.Returns a listener that will be used like inGlobalAnalysisListener.startFileAnalysis(TextFile)
.FileAnalysisListener
NoopAnalysisCache. startFileAnalysis(TextDocument filename)
Deprecated. -
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
AnyTokenizer. tokenize(TextDocument document, TokenFactory tokens)
static void
Tokenizer. tokenize(Tokenizer tokenizer, TextDocument textDocument, Tokens tokens)
Wraps a call toTokenizer.tokenize(TextDocument, TokenFactory)
to properly create and close the token factory.void
Tokenizer. 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>
AntlrTokenizer. makeLexerImpl(TextDocument doc)
protected abstract TokenManager<T>
TokenizerBase. makeLexerImpl(TextDocument doc)
void
TokenizerBase. 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)
ConstructorAntlrTokenManager(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 String filename, @NonNull LanguageVersion lv)
Deprecated.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)
-