Uses of Class
com.puppycrawl.tools.checkstyle.api.Violation
Packages that use Violation
Package
Description
Contains the implementation of the Checkstyle framework.
Contains the core API to be used to implement checks.
-
Uses of Violation in com.puppycrawl.tools.checkstyle
Fields in com.puppycrawl.tools.checkstyle declared as ViolationModifier and TypeFieldDescriptionprivate final Violation
TreeWalkerAuditEvent.violation
Violation associated with the event.Fields in com.puppycrawl.tools.checkstyle with type parameters of type ViolationModifier and TypeFieldDescriptionXpathFileGeneratorAstFilter.MESSAGE_QUERY_MAP
Map fromViolation
objects to xpath queries.TreeWalker.violations
The sorted set of violations.Methods in com.puppycrawl.tools.checkstyle that return ViolationMethods in com.puppycrawl.tools.checkstyle that return types with arguments of type ViolationModifier and TypeMethodDescriptionTreeWalker.getFilteredViolations
(String fileName, FileContents fileContents, DetailAST rootAST) Returns filtered set ofViolation
.Checker.processFile
(File file) Processes a file with all FileSetChecks.Method parameters in com.puppycrawl.tools.checkstyle with type arguments of type ViolationModifier and TypeMethodDescriptionvoid
Checker.fireErrors
(String fileName, SortedSet<Violation> errors) Notify all listeners about the errors in a file.Constructors in com.puppycrawl.tools.checkstyle with parameters of type ViolationModifierConstructorDescriptionTreeWalkerAuditEvent
(FileContents fileContents, String fileName, Violation violation, DetailAST rootAst) Creates a newTreeWalkerAuditEvent
instance. -
Uses of Violation in com.puppycrawl.tools.checkstyle.api
Fields in com.puppycrawl.tools.checkstyle.api declared as ViolationModifier and TypeFieldDescriptionprivate final Violation
AuditEvent.violation
Violation associated with the event.Fields in com.puppycrawl.tools.checkstyle.api with type parameters of type ViolationModifier and TypeFieldDescriptionAbstractCheck.FileContext.violations
The sorted set for collecting violations.AbstractFileSetCheck.FileContext.violations
The sorted set for collecting violations.Methods in com.puppycrawl.tools.checkstyle.api that return ViolationMethods in com.puppycrawl.tools.checkstyle.api that return types with arguments of type ViolationModifier and TypeMethodDescriptionAbstractCheck.getViolations()
Returns the sorted set ofViolation
.AbstractFileSetCheck.getViolations()
Returns the sorted set ofViolation
.Request to process a file.Methods in com.puppycrawl.tools.checkstyle.api with parameters of type ViolationMethod parameters in com.puppycrawl.tools.checkstyle.api with type arguments of type ViolationModifier and TypeMethodDescriptionprotected void
AbstractFileSetCheck.addViolations
(SortedSet<Violation> violations) Adds the sorted set ofViolation
to the message collector.void
MessageDispatcher.fireErrors
(String fileName, SortedSet<Violation> errors) Notify all listeners about the violations in a file.Constructors in com.puppycrawl.tools.checkstyle.api with parameters of type ViolationModifierConstructorDescriptionAuditEvent
(Object src, String fileName, Violation violation) Creates a newAuditEvent
instance.