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 ViolationTreeWalkerAuditEvent.violationViolation associated with the event.Fields in com.puppycrawl.tools.checkstyle with type parameters of type ViolationModifier and TypeFieldDescriptionXpathFileGeneratorAstFilter.MESSAGE_QUERY_MAPMap fromViolationobjects to xpath queries.TreeWalker.violationsThe 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 TypeMethodDescriptionvoidChecker.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 newTreeWalkerAuditEventinstance. -
Uses of Violation in com.puppycrawl.tools.checkstyle.api
Fields in com.puppycrawl.tools.checkstyle.api declared as ViolationModifier and TypeFieldDescriptionprivate final ViolationAuditEvent.violationViolation associated with the event.Fields in com.puppycrawl.tools.checkstyle.api with type parameters of type ViolationModifier and TypeFieldDescriptionAbstractCheck.FileContext.violationsThe sorted set for collecting violations.AbstractFileSetCheck.FileContext.violationsThe 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 voidAbstractFileSetCheck.addViolations(SortedSet<Violation> violations) Adds the sorted set ofViolationto the message collector.voidMessageDispatcher.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 newAuditEventinstance.