Package net.sourceforge.pmd.cache
Class CachedRuleViolation
- java.lang.Object
-
- net.sourceforge.pmd.cache.CachedRuleViolation
-
- All Implemented Interfaces:
RuleViolation
@Deprecated @InternalApi public final class CachedRuleViolation extends java.lang.Object implements RuleViolation
Deprecated.This is internal API, will be hidden with 7.0.0ARuleViolationimplementation that is immutable, and therefore cache friendly
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetBeginColumn()Deprecated.Get the column number of the begin line in the source file in which this violation was identified.intgetBeginLine()Deprecated.Get the begin line number in the source file in which this violation was identified.java.lang.StringgetClassName()Deprecated.Get the name of the Class in which this violation was identified.java.lang.StringgetDescription()Deprecated.Get the description of this violation.intgetEndColumn()Deprecated.Get the column number of the end line in the source file in which this violation was identified.intgetEndLine()Deprecated.Get the end line number in the source file in which this violation was identified.java.lang.StringgetFilename()Deprecated.Get the source file name in which this violation was identified.java.lang.StringgetMethodName()Deprecated.Get the method name in which this violation was identified.java.lang.StringgetPackageName()Deprecated.Get the package name of the Class in which this violation was identified.RulegetRule()Deprecated.Get the Rule which identified this violation.java.lang.StringgetVariableName()Deprecated.Get the variable name on which this violation was identified.booleanisSuppressed()Deprecated.Indicates whether this violation has been suppressed.
-
-
-
Method Detail
-
getRule
public Rule getRule()
Deprecated.Description copied from interface:RuleViolationGet the Rule which identified this violation.- Specified by:
getRulein interfaceRuleViolation- Returns:
- The identifying Rule.
-
getDescription
public java.lang.String getDescription()
Deprecated.Description copied from interface:RuleViolationGet the description of this violation.- Specified by:
getDescriptionin interfaceRuleViolation- Returns:
- The description.
-
isSuppressed
public boolean isSuppressed()
Deprecated.Description copied from interface:RuleViolationIndicates whether this violation has been suppressed.- Specified by:
isSuppressedin interfaceRuleViolation- Returns:
trueif this violation is suppressed,falseotherwise.
-
getFilename
public java.lang.String getFilename()
Deprecated.Description copied from interface:RuleViolationGet the source file name in which this violation was identified.- Specified by:
getFilenamein interfaceRuleViolation- Returns:
- The source file name.
-
getBeginLine
public int getBeginLine()
Deprecated.Description copied from interface:RuleViolationGet the begin line number in the source file in which this violation was identified.- Specified by:
getBeginLinein interfaceRuleViolation- Returns:
- Begin line number.
-
getBeginColumn
public int getBeginColumn()
Deprecated.Description copied from interface:RuleViolationGet the column number of the begin line in the source file in which this violation was identified.- Specified by:
getBeginColumnin interfaceRuleViolation- Returns:
- Begin column number.
-
getEndLine
public int getEndLine()
Deprecated.Description copied from interface:RuleViolationGet the end line number in the source file in which this violation was identified.- Specified by:
getEndLinein interfaceRuleViolation- Returns:
- End line number.
-
getEndColumn
public int getEndColumn()
Deprecated.Description copied from interface:RuleViolationGet the column number of the end line in the source file in which this violation was identified.- Specified by:
getEndColumnin interfaceRuleViolation- Returns:
- End column number.
-
getPackageName
public java.lang.String getPackageName()
Deprecated.Description copied from interface:RuleViolationGet the package name of the Class in which this violation was identified.- Specified by:
getPackageNamein interfaceRuleViolation- Returns:
- The package name.
-
getClassName
public java.lang.String getClassName()
Deprecated.Description copied from interface:RuleViolationGet the name of the Class in which this violation was identified.- Specified by:
getClassNamein interfaceRuleViolation- Returns:
- The Class name.
-
getMethodName
public java.lang.String getMethodName()
Deprecated.Description copied from interface:RuleViolationGet the method name in which this violation was identified.- Specified by:
getMethodNamein interfaceRuleViolation- Returns:
- The method name.
-
getVariableName
public java.lang.String getVariableName()
Deprecated.Description copied from interface:RuleViolationGet the variable name on which this violation was identified.- Specified by:
getVariableNamein interfaceRuleViolation- Returns:
- The variable name.
-
-