Uses of Class
com.puppycrawl.tools.checkstyle.api.Violation
-
Packages that use Violation Package Description com.puppycrawl.tools.checkstyle Contains the implementation of the Checkstyle framework.com.puppycrawl.tools.checkstyle.api 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 Violation Modifier and Type Field Description private Violation
TreeWalkerAuditEvent. violation
Violation associated with the event.Fields in com.puppycrawl.tools.checkstyle with type parameters of type Violation Modifier and Type Field Description private static Map<Violation,String>
XpathFileGeneratorAstFilter. MESSAGE_QUERY_MAP
Map fromViolation
objects to xpath queries.private SortedSet<Violation>
TreeWalker. violations
The sorted set of violations.Methods in com.puppycrawl.tools.checkstyle that return Violation Modifier and Type Method Description Violation
TreeWalkerAuditEvent. getViolation()
Gets the violation.Methods in com.puppycrawl.tools.checkstyle that return types with arguments of type Violation Modifier and Type Method Description private SortedSet<Violation>
TreeWalker. getFilteredViolations(String fileName, FileContents fileContents, DetailAST rootAST)
Returns filtered set ofViolation
.private SortedSet<Violation>
Checker. processFile(File file)
Processes a file with all FileSetChecks.Method parameters in com.puppycrawl.tools.checkstyle with type arguments of type Violation Modifier and Type Method Description void
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 Violation Constructor Description TreeWalkerAuditEvent(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 Violation Modifier and Type Field Description private Violation
AuditEvent. violation
Violation associated with the event.Fields in com.puppycrawl.tools.checkstyle.api with type parameters of type Violation Modifier and Type Field Description private SortedSet<Violation>
AbstractCheck.FileContext. violations
The sorted set for collecting violations.private SortedSet<Violation>
AbstractFileSetCheck.FileContext. violations
The sorted set for collecting violations.Methods in com.puppycrawl.tools.checkstyle.api that return Violation Modifier and Type Method Description Violation
AuditEvent. getViolation()
Gets the violation.Methods in com.puppycrawl.tools.checkstyle.api that return types with arguments of type Violation Modifier and Type Method Description SortedSet<Violation>
AbstractCheck. getViolations()
Returns the sorted set ofViolation
.SortedSet<Violation>
AbstractFileSetCheck. getViolations()
Returns the sorted set ofViolation
.SortedSet<Violation>
AbstractFileSetCheck. process(File file, FileText fileText)
SortedSet<Violation>
FileSetCheck. process(File file, FileText fileText)
Request to process a file.Methods in com.puppycrawl.tools.checkstyle.api with parameters of type Violation Modifier and Type Method Description int
Violation. compareTo(Violation other)
Method parameters in com.puppycrawl.tools.checkstyle.api with type arguments of type Violation Modifier and Type Method Description protected 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 Violation Constructor Description AuditEvent(Object src, String fileName, Violation violation)
Creates a newAuditEvent
instance.
-