Uses of Interface
net.sourceforge.pmd.lang.document.TextFile
-
Packages that use TextFile Package Description net.sourceforge.pmd This is the PMD programming mistake detector.net.sourceforge.pmd.cache The violation caching system.net.sourceforge.pmd.lang net.sourceforge.pmd.lang.document Contains types to model text files and handle operations on text.net.sourceforge.pmd.renderers net.sourceforge.pmd.reporting Logic about reporting: violations, suppression etc. -
-
Uses of TextFile in net.sourceforge.pmd
Methods in net.sourceforge.pmd with parameters of type TextFile Modifier and Type Method Description boolean
RuleSets. applies(TextFile file)
Deprecated.Check if a given source file should be checked by rules in this RuleSets.FileAnalysisListener
Report.GlobalReportBuilderListener. startFileAnalysis(TextFile file)
-
Uses of TextFile in net.sourceforge.pmd.cache
Methods in net.sourceforge.pmd.cache with parameters of type TextFile Modifier and Type Method Description FileAnalysisListener
AnalysisCacheListener. startFileAnalysis(TextFile file)
Deprecated.Method parameters in net.sourceforge.pmd.cache with type arguments of type TextFile Modifier and Type Method Description void
AbstractAnalysisCache. checkValidity(RuleSets ruleSets, ClassLoader auxclassPathClassLoader, Collection<? extends TextFile> files)
Deprecated.void
AnalysisCache. checkValidity(RuleSets ruleSets, ClassLoader auxclassPathClassLoader, Collection<? extends TextFile> files)
Deprecated.Checks if the cache is valid for the configured rulesets and class loader.void
FileAnalysisCache. checkValidity(RuleSets ruleSets, ClassLoader auxclassPathClassLoader, Collection<? extends TextFile> files)
Deprecated.void
NoopAnalysisCache. checkValidity(RuleSets ruleSets, ClassLoader auxclassPathClassLoader, Collection<? extends TextFile> files)
Deprecated.Constructor parameters in net.sourceforge.pmd.cache with type arguments of type TextFile Constructor Description AnalysisCacheListener(AnalysisCache cache, RuleSets ruleSets, ClassLoader classLoader, Collection<? extends TextFile> textFiles)
Deprecated. -
Uses of TextFile in net.sourceforge.pmd.lang
Methods in net.sourceforge.pmd.lang that return types with arguments of type TextFile Modifier and Type Method Description List<TextFile>
LanguageProcessor.AnalysisTask. getFiles()
Method parameters in net.sourceforge.pmd.lang with type arguments of type TextFile Modifier and Type Method Description LanguageProcessor.AnalysisTask
LanguageProcessor.AnalysisTask. withFiles(List<TextFile> newFiles)
Produce a new analysis task with just different files.Constructor parameters in net.sourceforge.pmd.lang with type arguments of type TextFile Constructor Description AnalysisTask(RuleSets rulesets, List<TextFile> files, GlobalAnalysisListener listener, int threadCount, AnalysisCache analysisCache, MessageReporter messageReporter, LanguageProcessorRegistry lpRegistry)
Create a new task. -
Uses of TextFile in net.sourceforge.pmd.lang.document
Methods in net.sourceforge.pmd.lang.document that return TextFile Modifier and Type Method Description abstract TextFile
TextFileBuilder. build()
Creates and returns the new text file.static TextFile
TextFile. dataSourceCompat(DataSource ds, PMDConfiguration config)
Deprecated.This is deprecated until PMD 7 is out, after whichDataSource
will be removed.static TextFile
TextFile. forCharSeq(CharSequence charseq, FileId fileId, LanguageVersion languageVersion)
Returns a read-only TextFile reading from a string.static TextFile
TextFile. forPath(Path path, Charset charset, LanguageVersion languageVersion)
Returns an instance of this interface reading and writing to a file.static TextFile
TextFile. forReader(Reader reader, FileId fileId, LanguageVersion languageVersion)
Returns a read-only instance of this interface reading from a reader.Methods in net.sourceforge.pmd.lang.document that return types with arguments of type TextFile Modifier and Type Method Description List<TextFile>
FileCollector. getCollectedFiles()
Returns an unmodifiable list of all files that have been collected.Methods in net.sourceforge.pmd.lang.document with parameters of type TextFile Modifier and Type Method Description boolean
FileCollector. addFile(TextFile textFile)
Add a pre-configured text file.static TextDocument
TextDocument. create(TextFile textFile)
Create a new text document for the given text file.Constructors in net.sourceforge.pmd.lang.document with parameters of type TextFile Constructor Description ReadOnlyFileException(TextFile textFile)
-
Uses of TextFile in net.sourceforge.pmd.renderers
Methods in net.sourceforge.pmd.renderers with parameters of type TextFile Modifier and Type Method Description void
AbstractAccumulatingRenderer. startFileAnalysis(TextFile dataSource)
void
AbstractIncrementingRenderer. startFileAnalysis(TextFile dataSource)
void
EmptyRenderer. startFileAnalysis(TextFile dataSource)
void
Renderer. startFileAnalysis(TextFile dataSource)
This method is called each time a source file is processed. -
Uses of TextFile in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting with parameters of type TextFile Modifier and Type Method Description default String
FileNameRenderer. getDisplayName(@NonNull TextFile textFile)
FileAnalysisListener
GlobalAnalysisListener. startFileAnalysis(TextFile file)
Returns a file listener that will handle events occurring during the analysis of the given file.FileAnalysisListener
GlobalAnalysisListener.ViolationCounterListener. startFileAnalysis(TextFile file)
FileAnalysisListener
ReportStatsListener. startFileAnalysis(TextFile file)
-