Uses of Interface
net.sourceforge.pmd.lang.document.FileId
-
Packages that use FileId Package Description net.sourceforge.pmd.cpd Token-based copy-paste detection.net.sourceforge.pmd.lang.ast net.sourceforge.pmd.lang.document Contains types to model text files and handle operations on text.net.sourceforge.pmd.lang.rule net.sourceforge.pmd.renderers net.sourceforge.pmd.reporting Logic about reporting: violations, suppression etc. -
-
Uses of FileId in net.sourceforge.pmd.cpd
Methods in net.sourceforge.pmd.cpd that return types with arguments of type FileId Modifier and Type Method Description Map<FileId,Integer>CPDReport. getNumberOfTokensPerFile()Return a map containing the number of tokens by processed file.Methods in net.sourceforge.pmd.cpd with parameters of type FileId Modifier and Type Method Description StringCPDReport. getDisplayName(FileId fileId)Return the display name of the given file. -
Uses of FileId in net.sourceforge.pmd.lang.ast
Methods in net.sourceforge.pmd.lang.ast that return FileId Modifier and Type Method Description @NonNull FileIdFileAnalysisException. getFileId()The name of the file in which the error occurred.FileIdParser.ParserTask. getFileId()Methods in net.sourceforge.pmd.lang.ast with parameters of type FileId Modifier and Type Method Description FileAnalysisExceptionFileAnalysisException. setFileId(FileId fileId)LexExceptionLexException. setFileId(FileId fileId)Replace the file name of this error.static FileAnalysisExceptionFileAnalysisException. wrap(@NonNull FileId fileId, @NonNull String message, @NonNull Throwable cause)Wraps the cause into an analysis exception.Constructors in net.sourceforge.pmd.lang.ast with parameters of type FileId Constructor Description LexException(int line, int column, @Nullable FileId filename, String message, @Nullable Throwable cause)Create a new exception. -
Uses of FileId in net.sourceforge.pmd.lang.document
Fields in net.sourceforge.pmd.lang.document declared as FileId Modifier and Type Field Description protected FileIdTextFileBuilder. parentFsIdstatic FileIdFileId. STDINThe virtual file ID for standard input.static FileIdFileId. UNKNOWNThe name used for an unknown file.Methods in net.sourceforge.pmd.lang.document that return FileId Modifier and Type Method Description static FileIdFileId. asChildOf(FileId self, FileId parentFsPath)Return a file ID whose methods behave the same as the first parameter, and whosegetParentFsPath()returns the second parameter.static FileIdFileId. fromAbsolutePath(String absPath, @Nullable FileId outer)Return a file ID which interprets the first parameter as an absolute path.static FileIdFileId. fromPath(Path path)Return a file ID for the given path.static FileIdFileId. fromPath(Path path, @Nullable FileId fsPath)Return a new path id for the given path.static FileIdFileId. fromPathLikeString(String str)Return a path ID for the given string.static FileIdFileId. fromURI(String uriStr)Return a file ID for a URI.FileIdFileLocation. getFileId()File name of this position.FileIdTextDocument. getFileId()ReturnsTextFile.getFileId()for the text file backing this document.FileIdTextFile. getFileId()Returns an identifier for this file.@Nullable FileIdFileId. getParentFsPath()If this file is in a nested filesystem (eg a zip file), return the file ID of the container in the outer file system.Methods in net.sourceforge.pmd.lang.document with parameters of type FileId Modifier and Type Method Description booleanFileCollector. addSourceFile(FileId fileId, String sourceContents)Add a text file given its contents and a name.static FileIdFileId. asChildOf(FileId self, FileId parentFsPath)Return a file ID whose methods behave the same as the first parameter, and whosegetParentFsPath()returns the second parameter.static TextFileBuilderTextFile. builderForCharSeq(CharSequence charseq, FileId fileId, LanguageVersion languageVersion)Returns a read-only TextFile reading from a string.static TextFileBuilderTextFile. builderForReader(Reader reader, FileId fileId, LanguageVersion languageVersion)Returns a read-only builder reading from a reader.static FileLocationFileLocation. caret(FileId fileName, int line, int column)Returns a new location that starts and ends at the same position.default intFileId. compareTo(FileId o)static TextFileTextFile. forCharSeq(CharSequence charseq, FileId fileId, LanguageVersion languageVersion)Returns a read-only TextFile reading from a string.static TextFileTextFile. forReader(Reader reader, FileId fileId, LanguageVersion languageVersion)Returns a read-only instance of this interface reading from a reader.static FileIdFileId. fromAbsolutePath(String absPath, @Nullable FileId outer)Return a file ID which interprets the first parameter as an absolute path.static FileIdFileId. fromPath(Path path, @Nullable FileId fsPath)Return a new path id for the given path.static FileLocationFileLocation. range(FileId fileName, TextRange2d range2d)Creates a new location for a range of text.static TextDocumentTextDocument. readOnlyString(@NonNull CharSequence source, @NonNull FileId filename, @NonNull LanguageVersion lv)Returns a read-only document for the given text.TextFileBuilderTextFileBuilder. setParentFsPath(@Nullable FileId fileId)Method parameters in net.sourceforge.pmd.lang.document with type arguments of type FileId Modifier and Type Method Description voidFileCollector. setFileFilter(Predicate<FileId> fileFilter)Sets an additional filter that is being called before adding the file to the list. -
Uses of FileId in net.sourceforge.pmd.lang.rule
Methods in net.sourceforge.pmd.lang.rule with parameters of type FileId Modifier and Type Method Description static booleanInternalApiBridge. ruleSetApplies(RuleSet ruleSet, FileId fileId) -
Uses of FileId in net.sourceforge.pmd.renderers
Methods in net.sourceforge.pmd.renderers with parameters of type FileId Modifier and Type Method Description protected StringAbstractRenderer. determineFileName(FileId fileId)Determines the filename that should be used in the report for the given ID. -
Uses of FileId in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting that return FileId Modifier and Type Method Description FileIdReport.ProcessingError. getFileId()default FileIdRuleViolation. getFileId()Return the ID of the file where the violation was found.Methods in net.sourceforge.pmd.reporting with parameters of type FileId Modifier and Type Method Description StringConfigurableFileNameRenderer. getDisplayName(@NonNull FileId fileId)StringFileNameRenderer. getDisplayName(@NonNull FileId fileId)Return a display name for the given file id.Method parameters in net.sourceforge.pmd.reporting with type arguments of type FileId Modifier and Type Method Description default voidListenerInitializer. setFilesToAnalyze(List<FileId> files)Set the list of files that will be analyzed during this analysis.Constructors in net.sourceforge.pmd.reporting with parameters of type FileId Constructor Description ProcessingError(Throwable error, FileId file)Creates a new processing error.
-