RuleViolationpublic final class CachedRuleViolation extends java.lang.Object implements RuleViolation
RuleViolation implementation that is immutable, and therefore cache friendly| Modifier and Type | Method | Description |
|---|---|---|
int |
getBeginColumn() |
Get the column number of the begin line in the source file in which this
violation was identified.
|
int |
getBeginLine() |
Get the begin line number in the source file in which this violation was
identified.
|
java.lang.String |
getClassName() |
Get the name of the Class in which this violation was identified.
|
java.lang.String |
getDescription() |
Get the description of this violation.
|
int |
getEndColumn() |
Get the column number of the end line in the source file in which this
violation was identified.
|
int |
getEndLine() |
Get the end line number in the source file in which this violation was
identified.
|
java.lang.String |
getFilename() |
Get the source file name in which this violation was identified.
|
java.lang.String |
getMethodName() |
Get the method name in which this violation was identified.
|
java.lang.String |
getPackageName() |
Get the package name of the Class in which this violation was identified.
|
Rule |
getRule() |
Get the Rule which identified this violation.
|
java.lang.String |
getVariableName() |
Get the variable name on which this violation was identified.
|
boolean |
isSuppressed() |
Indicates whether this violation has been suppressed.
|
public Rule getRule()
RuleViolationgetRule in interface RuleViolationpublic java.lang.String getDescription()
RuleViolationgetDescription in interface RuleViolationpublic boolean isSuppressed()
RuleViolationisSuppressed in interface RuleViolationtrue if this violation is suppressed,
false otherwise.public java.lang.String getFilename()
RuleViolationgetFilename in interface RuleViolationpublic int getBeginLine()
RuleViolationgetBeginLine in interface RuleViolationpublic int getBeginColumn()
RuleViolationgetBeginColumn in interface RuleViolationpublic int getEndLine()
RuleViolationgetEndLine in interface RuleViolationpublic int getEndColumn()
RuleViolationgetEndColumn in interface RuleViolationpublic java.lang.String getPackageName()
RuleViolationgetPackageName in interface RuleViolationpublic java.lang.String getClassName()
RuleViolationgetClassName in interface RuleViolationpublic java.lang.String getMethodName()
RuleViolationgetMethodName in interface RuleViolationpublic java.lang.String getVariableName()
RuleViolationgetVariableName in interface RuleViolationCopyright © 2002–2018 PMD. All rights reserved.