public final class CachedRuleViolation extends java.lang.Object implements RuleViolation
RuleViolation
implementation that is immutable, and therefore cache friendlyModifier and Type | Method and 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()
RuleViolation
getRule
in interface RuleViolation
public java.lang.String getDescription()
RuleViolation
getDescription
in interface RuleViolation
public boolean isSuppressed()
RuleViolation
isSuppressed
in interface RuleViolation
true
if this violation is suppressed,
false
otherwise.public java.lang.String getFilename()
RuleViolation
getFilename
in interface RuleViolation
public int getBeginLine()
RuleViolation
getBeginLine
in interface RuleViolation
public int getBeginColumn()
RuleViolation
getBeginColumn
in interface RuleViolation
public int getEndLine()
RuleViolation
getEndLine
in interface RuleViolation
public int getEndColumn()
RuleViolation
getEndColumn
in interface RuleViolation
public java.lang.String getPackageName()
RuleViolation
getPackageName
in interface RuleViolation
public java.lang.String getClassName()
RuleViolation
getClassName
in interface RuleViolation
public java.lang.String getMethodName()
RuleViolation
getMethodName
in interface RuleViolation
public java.lang.String getVariableName()
RuleViolation
getVariableName
in interface RuleViolation
Copyright © 2002–2018 PMD. All rights reserved.