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 Object implements RuleViolation
Deprecated.This is internal API, will be hidden with 7.0.0ARuleViolation
implementation that is immutable, and therefore cache friendly
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.RuleViolation
DEFAULT_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getBeginColumn()
Deprecated.Get the column number of the begin line in the source file in which this violation was identified.int
getBeginLine()
Deprecated.Get the begin line number in the source file in which this violation was identified.String
getClassName()
Deprecated.Get the name of the Class in which this violation was identified.String
getDescription()
Deprecated.Get the description of this violation.int
getEndColumn()
Deprecated.Get the column number of the end line in the source file in which this violation was identified.int
getEndLine()
Deprecated.Get the end line number in the source file in which this violation was identified.String
getFilename()
Deprecated.Get the source file name in which this violation was identified.String
getMethodName()
Deprecated.Get the method name in which this violation was identified.String
getPackageName()
Deprecated.Get the package name of the Class in which this violation was identified.Rule
getRule()
Deprecated.Get the Rule which identified this violation.String
getVariableName()
Deprecated.Get the variable name on which this violation was identified.boolean
isSuppressed()
Deprecated.Indicates whether this violation has been suppressed.
-
-
-
Method Detail
-
getRule
public Rule getRule()
Deprecated.Description copied from interface:RuleViolation
Get the Rule which identified this violation.- Specified by:
getRule
in interfaceRuleViolation
- Returns:
- The identifying Rule.
-
getDescription
public String getDescription()
Deprecated.Description copied from interface:RuleViolation
Get the description of this violation.- Specified by:
getDescription
in interfaceRuleViolation
- Returns:
- The description.
-
isSuppressed
public boolean isSuppressed()
Deprecated.Description copied from interface:RuleViolation
Indicates whether this violation has been suppressed.- Specified by:
isSuppressed
in interfaceRuleViolation
- Returns:
true
if this violation is suppressed,false
otherwise.
-
getFilename
public String getFilename()
Deprecated.Description copied from interface:RuleViolation
Get the source file name in which this violation was identified.- Specified by:
getFilename
in interfaceRuleViolation
- Returns:
- The source file name.
-
getBeginLine
public int getBeginLine()
Deprecated.Description copied from interface:RuleViolation
Get the begin line number in the source file in which this violation was identified.- Specified by:
getBeginLine
in interfaceRuleViolation
- Returns:
- Begin line number.
-
getBeginColumn
public int getBeginColumn()
Deprecated.Description copied from interface:RuleViolation
Get the column number of the begin line in the source file in which this violation was identified.- Specified by:
getBeginColumn
in interfaceRuleViolation
- Returns:
- Begin column number.
-
getEndLine
public int getEndLine()
Deprecated.Description copied from interface:RuleViolation
Get the end line number in the source file in which this violation was identified.- Specified by:
getEndLine
in interfaceRuleViolation
- Returns:
- End line number.
-
getEndColumn
public int getEndColumn()
Deprecated.Description copied from interface:RuleViolation
Get the column number of the end line in the source file in which this violation was identified.- Specified by:
getEndColumn
in interfaceRuleViolation
- Returns:
- End column number.
-
getPackageName
public String getPackageName()
Deprecated.Description copied from interface:RuleViolation
Get the package name of the Class in which this violation was identified.- Specified by:
getPackageName
in interfaceRuleViolation
- Returns:
- The package name.
-
getClassName
public String getClassName()
Deprecated.Description copied from interface:RuleViolation
Get the name of the Class in which this violation was identified.- Specified by:
getClassName
in interfaceRuleViolation
- Returns:
- The Class name.
-
getMethodName
public String getMethodName()
Deprecated.Description copied from interface:RuleViolation
Get the method name in which this violation was identified.- Specified by:
getMethodName
in interfaceRuleViolation
- Returns:
- The method name.
-
getVariableName
public String getVariableName()
Deprecated.Description copied from interface:RuleViolation
Get the variable name on which this violation was identified.- Specified by:
getVariableName
in interfaceRuleViolation
- Returns:
- The variable name.
-
-