Uses of Interface
net.sourceforge.pmd.lang.document.TextDocument
Packages that use TextDocument
Package
Description
Token-based copy-paste detection.
Utilities to implement a CPD
CpdLexer.Support classes for language implementations based on JavaCC.
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 TextDocumentModifier and TypeMethodDescriptionvoidAnyCpdLexer.tokenize(TextDocument document, TokenFactory tokens) static TokensCpdLexer.tokenize(CpdLexer cpdLexer, TextDocument textDocument) static voidCpdLexer.tokenize(CpdLexer cpdLexer, TextDocument textDocument, Tokens tokens) Wraps a call toCpdLexer.tokenize(TextDocument, TokenFactory)to properly create and close the token factory.voidCpdLexer.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 TextDocumentModifier and TypeMethodDescriptionprotected final TokenManager<AntlrToken> AntlrCpdLexer.makeLexerImpl(TextDocument doc) protected abstract TokenManager<T> CpdLexerBase.makeLexerImpl(TextDocument doc) final voidCpdLexerBase.tokenize(TextDocument document, TokenFactory tokens) -
Uses of TextDocument in net.sourceforge.pmd.lang.ast
Methods in net.sourceforge.pmd.lang.ast that return TextDocumentModifier and TypeMethodDescription@NonNull TextDocumentAstInfo.getTextDocument()Returns the text document that was parsed.default @NonNull TextDocumentNode.getTextDocument()Returns the text document from which this tree was parsed.Parser.ParserTask.getTextDocument()The text document to parse.Methods in net.sourceforge.pmd.lang.ast with parameters of type TextDocumentConstructors in net.sourceforge.pmd.lang.ast with parameters of type TextDocumentModifierConstructorDescriptionParserTask(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 TextDocumentConstructors in net.sourceforge.pmd.lang.ast.impl with parameters of type 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 TextDocumentModifierConstructorDescriptionAntlrToken(org.antlr.v4.runtime.Token token, AntlrToken previousComment, TextDocument textDoc) Deprecated.Since 7.3.0.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 TextDocumentModifier and TypeMethodDescriptionJavaccTokenDocument.TokenDocumentBehavior.translate(TextDocument text) Translate the escapes of the source document.EscapeTranslator.translateDocument()Translate all the input in the buffer.Methods in net.sourceforge.pmd.lang.ast.impl.javacc with parameters of type TextDocumentModifier and TypeMethodDescriptionstatic CharStreamCharStream.create(TextDocument doc) Create a new char stream for the given document with the default token document behavior.static CharStreamCharStream.create(TextDocument doc, JavaccTokenDocument.TokenDocumentBehavior behavior) Create a new char stream for the given document.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 TextDocumentModifierConstructorDescriptionBackslashEscapeTranslator(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 TextDocumentModifier and TypeMethodDescriptionFragmentedDocBuilder.build()static TextDocumentCreate a new text document for the given text file.static TextDocumentTextDocument.readOnlyString(@NonNull CharSequence source, @NonNull FileId filename, @NonNull LanguageVersion lv) Returns a read-only document for the given text.static TextDocumentTextDocument.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 TextDocumentModifier and TypeMethodDescriptionstatic booleanTextRegion.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