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 int
beginColumn
Deprecated.protected int
beginLine
Deprecated.protected String
className
Deprecated.protected String
description
Deprecated.protected int
endColumn
Deprecated.protected int
endLine
Deprecated.protected String
filename
Deprecated.protected String
methodName
Deprecated.protected String
packageName
Deprecated.protected Rule
rule
Deprecated.protected boolean
suppressed
Deprecated.protected String
variableName
Deprecated.-
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 String
expandVariables(String message)
Deprecated.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.protected String
getVariableValue(String name)
Deprecated.boolean
isSuppressed()
Deprecated.Indicates whether this violation has been suppressed.protected boolean
isVariable(String name)
Deprecated.void
setLines(int theBeginLine, int theEndLine)
Deprecated.String
toString()
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: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.
-
setLines
public void setLines(int theBeginLine, int theEndLine)
Deprecated.
-
-