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.0ARuleViolationimplementation that is immutable, and therefore cache friendly
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.RuleViolation
CLASS_NAME, DEFAULT_COMPARATOR, METHOD_NAME, PACKAGE_NAME, VARIABLE_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<String,String>getAdditionalInfo()Deprecated.A map of additional key-value pairs known about this violation.StringgetDescription()Deprecated.Get the description of this violation.FileLocationgetLocation()Deprecated.Returns the location where the violation should be reported.RulegetRule()Deprecated.Get the Rule which identified this violation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.RuleViolation
getBeginColumn, getBeginLine, getClassName, getEndColumn, getEndLine, getFileId, getMethodName, getPackageName, getVariableName
-
-
-
-
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 String getDescription()
Deprecated.Description copied from interface:RuleViolationGet the description of this violation.- Specified by:
getDescriptionin interfaceRuleViolation- Returns:
- The description.
-
getLocation
public FileLocation getLocation()
Deprecated.Description copied from interface:RuleViolationReturns the location where the violation should be reported.- Specified by:
getLocationin interfaceRuleViolation
-
getAdditionalInfo
public Map<String,String> getAdditionalInfo()
Deprecated.Description copied from interface:RuleViolationA map of additional key-value pairs known about this violation. What data is in there is language specific. Common keys supported by several languages are defined as constants on this interface. The map is unmodifiable.- Specified by:
getAdditionalInfoin interfaceRuleViolation
-
-