Package net.sourceforge.pmd.lang.rule
Class ParametricRuleViolation
- java.lang.Object
-
- net.sourceforge.pmd.lang.rule.ParametricRuleViolation
-
- All Implemented Interfaces:
RuleViolation
@Deprecated @InternalApi public class ParametricRuleViolation extends Object implements RuleViolation
Deprecated.This is internal. Clients should exclusively useRuleViolation.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptionDeprecated.protected RuleruleDeprecated.-
Fields inherited from interface net.sourceforge.pmd.RuleViolation
CLASS_NAME, DEFAULT_COMPARATOR, METHOD_NAME, PACKAGE_NAME, VARIABLE_NAME
-
-
Constructor Summary
Constructors Constructor Description ParametricRuleViolation(Rule theRule, FileLocation location, String message)Deprecated.ParametricRuleViolation(Rule theRule, FileLocation location, String message, Map<String,String> additionalInfo)Deprecated.ParametricRuleViolation(Rule theRule, Reportable node, String message)Deprecated.Update tests that use this not to call the ctor directly.ParametricRuleViolation(Rule theRule, Reportable node, String message, Map<String,String> additionalInfo)Deprecated.
-
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.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.RuleViolation
getBeginColumn, getBeginLine, getClassName, getEndColumn, getEndLine, getFileId, getMethodName, getPackageName, getVariableName
-
-
-
-
Constructor Detail
-
ParametricRuleViolation
@Deprecated public ParametricRuleViolation(Rule theRule, Reportable node, String message)
Deprecated.Update tests that use this not to call the ctor directly.
-
ParametricRuleViolation
public ParametricRuleViolation(Rule theRule, FileLocation location, String message)
Deprecated.
-
ParametricRuleViolation
public ParametricRuleViolation(Rule theRule, Reportable node, String message, Map<String,String> additionalInfo)
Deprecated.
-
-
Method Detail
-
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
-
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
-
-