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 voidAnyCpdLexer. 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 TextDocument Modifier and Type Method Description protected TokenManager<AntlrToken>AntlrCpdLexer. makeLexerImpl(TextDocument doc)protected abstract TokenManager<T>CpdLexerBase. makeLexerImpl(TextDocument doc)voidCpdLexerBase. 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 TextDocumentAstInfo. getTextDocument()Returns the text document that was parsed.default @NonNull TextDocumentNode. getTextDocument()Returns the text document from which this tree was parsed.TextDocumentParser.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.ParserTaskParser.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 TextDocumentTokenDocument. 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 anAntlrTokenManagerAntlrTokenManager(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 TextDocumentJavaccTokenDocument.TokenDocumentBehavior. translate(TextDocument text)Translate the escapes of the source document.TextDocumentEscapeTranslator. 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 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.TextDocumentJavaccTokenDocument.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 TextDocumentFragmentedDocBuilder. build()static TextDocumentTextDocument. create(TextFile textFile)Create 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 TextDocument Modifier and Type Method Description static 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 Constructor Description FragmentedDocBuilder(TextDocument original)
-