Uses of Class
net.sourceforge.pmd.lang.document.FileLocation
Packages that use FileLocation
Package
Description
Token-based copy-paste detection.
Support classes for language implementations based on JavaCC.
Contains types to model text files and handle operations on text.
Logic about reporting: violations, suppression etc.
-
Uses of FileLocation in net.sourceforge.pmd.cpd
Methods in net.sourceforge.pmd.cpd that return FileLocationModifier and TypeMethodDescriptionMark.getLocation()Return the location of this source range in the source file.Methods in net.sourceforge.pmd.cpd with parameters of type FileLocationModifier and TypeMethodDescriptiondefault voidTokenFactory.recordToken(@NonNull String image, @NonNull FileLocation location) Record a token given its coordinates. -
Uses of FileLocation in net.sourceforge.pmd.lang.ast
Methods in net.sourceforge.pmd.lang.ast that return FileLocationModifier and TypeMethodDescriptiondefault FileLocationNode.getReportLocation()Returns the location at which this element should be reported.protected @Nullable FileLocationFileAnalysisException.location()protected @NonNull FileLocationLexException.location()protected @Nullable FileLocationParseException.location()Methods in net.sourceforge.pmd.lang.ast with parameters of type FileLocation -
Uses of FileLocation in net.sourceforge.pmd.lang.ast.impl.antlr4
Methods in net.sourceforge.pmd.lang.ast.impl.antlr4 that return FileLocation -
Uses of FileLocation in net.sourceforge.pmd.lang.ast.impl.javacc
Methods in net.sourceforge.pmd.lang.ast.impl.javacc that return FileLocationModifier and TypeMethodDescriptionJavaccToken.getReportLocation()protected @NonNull FileLocationMalformedSourceException.location()protected FileLocationEscapeTranslator.locationAt(int indexInInput) Constructors in net.sourceforge.pmd.lang.ast.impl.javacc with parameters of type FileLocationModifierConstructorDescriptionMalformedSourceException(String message, Throwable cause, FileLocation fileLocation) -
Uses of FileLocation in net.sourceforge.pmd.lang.document
Fields in net.sourceforge.pmd.lang.document with type parameters of type FileLocationModifier and TypeFieldDescriptionstatic final Comparator<FileLocation> FileLocation.COMPARATORstatic final Comparator<FileLocation> FileLocation.COORDS_COMPARATORMethods in net.sourceforge.pmd.lang.document that return FileLocationModifier and TypeMethodDescriptionstatic FileLocationReturns a new location that starts and ends at the same position.static FileLocationFileLocation.range(FileId fileName, TextRange2d range2d) Creates a new location for a range of text.FragmentedDocBuilder.toLocation(int indexInInput) TextDocument.toLocation(TextRegion region) Turn a text region into aFileLocation. -
Uses of FileLocation in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting that return FileLocationModifier and TypeMethodDescriptionRuleViolation.getLocation()Returns the location where the violation should be reported.Reportable.getReportLocation()Returns the location at which this element should be reported.Methods in net.sourceforge.pmd.reporting with parameters of type FileLocationModifier and TypeMethodDescriptionvoidRuleContext.addViolationWithPosition(Reportable reportable, AstInfo<?> astInfo, FileLocation location, String message, Object... formatArgs) Record a new violation of the contextual rule, at the given location (node or token).static net.sourceforge.pmd.reporting.ParametricRuleViolationInternalApiBridge.createRuleViolation(Rule theRule, FileLocation location, String message, Map<String, String> additionalInfo)