Package net.sourceforge.pmd.lang.rule
Class ParametricRuleViolation<T extends Node>
- java.lang.Object
-
- net.sourceforge.pmd.lang.rule.ParametricRuleViolation<T>
-
- All Implemented Interfaces:
RuleViolation
@Deprecated @InternalApi public class ParametricRuleViolation<T extends Node> extends Object implements RuleViolation
Deprecated.This is internal. Clients should exclusively useRuleViolation.
-
-
Field Summary
Fields Modifier and Type Field Description protected intbeginColumnDeprecated.protected intbeginLineDeprecated.protected StringclassNameDeprecated.protected StringdescriptionDeprecated.protected intendColumnDeprecated.protected intendLineDeprecated.protected StringfilenameDeprecated.protected StringmethodNameDeprecated.protected StringpackageNameDeprecated.protected RuleruleDeprecated.protected booleansuppressedDeprecated.protected StringvariableNameDeprecated.-
Fields inherited from interface net.sourceforge.pmd.RuleViolation
DEFAULT_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description ParametricRuleViolation(Rule theRule, RuleContext ctx, T node, String message)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringexpandVariables(String message)Deprecated.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.StringgetClassName()Deprecated.Get the name of the Class in which this violation was identified.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.StringgetFilename()Deprecated.Get the source file name in which this violation was identified.StringgetMethodName()Deprecated.Get the method name in which this violation was identified.StringgetPackageName()Deprecated.Get the package name of the Class in which this violation was identified.RulegetRule()Deprecated.Get the Rule which identified this violation.StringgetVariableName()Deprecated.Get the variable name on which this violation was identified.protected StringgetVariableValue(String name)Deprecated.booleanisSuppressed()Deprecated.Indicates whether this violation has been suppressed.protected booleanisVariable(String name)Deprecated.voidsetLines(int theBeginLine, int theEndLine)Deprecated.StringtoString()Deprecated.
-
-
-
Field Detail
-
rule
protected final Rule rule
Deprecated.
-
description
protected final String description
Deprecated.
-
suppressed
protected boolean suppressed
Deprecated.
-
filename
protected String filename
Deprecated.
-
beginLine
protected int beginLine
Deprecated.
-
beginColumn
protected int beginColumn
Deprecated.
-
endLine
protected int endLine
Deprecated.
-
endColumn
protected int endColumn
Deprecated.
-
packageName
protected String packageName
Deprecated.
-
className
protected String className
Deprecated.
-
methodName
protected String methodName
Deprecated.
-
variableName
protected String variableName
Deprecated.
-
-
Constructor Detail
-
ParametricRuleViolation
public ParametricRuleViolation(Rule theRule, RuleContext ctx, T node, String message)
Deprecated.
-
-
Method Detail
-
isVariable
protected boolean isVariable(String name)
Deprecated.
-
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.
-
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 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 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 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 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 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.
-
setLines
public void setLines(int theBeginLine, int theEndLine)Deprecated.
-
-