|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pmd.lang.rule.ParametricRuleViolation<T>
public class ParametricRuleViolation<T extends Node>
| Field Summary | |
|---|---|
protected int |
beginColumn
|
protected int |
beginLine
|
protected String |
className
|
protected String |
description
|
protected int |
endColumn
|
protected int |
endLine
|
protected String |
filename
|
protected String |
methodName
|
protected String |
packageName
|
protected Rule |
rule
|
protected boolean |
suppressed
|
protected String |
variableName
|
| Constructor Summary | |
|---|---|
ParametricRuleViolation(Rule theRule,
RuleContext ctx,
T node,
String message)
|
|
| Method Summary | |
|---|---|
protected String |
expandVariables(String message)
|
int |
getBeginColumn()
Get the column number of the begin line in the source file in which this violation was identified. |
int |
getBeginLine()
Get the begin line number in the source file in which this violation was identified. |
String |
getClassName()
Get the name of the Class in which this violation was identified. |
String |
getDescription()
Get the description of this violation. |
int |
getEndColumn()
Get the column number of the end line in the source file in which this violation was identified. |
int |
getEndLine()
Get the end line number in the source file in which this violation was identified. |
String |
getFilename()
Get the source file name in which this violation was identified. |
String |
getMethodName()
Get the method name in which this violation was identified. |
String |
getPackageName()
Get the package name of the Class in which this violation was identified. |
Rule |
getRule()
Get the Rule which identified this violation. |
String |
getVariableName()
Get the variable name on which this violation was identified. |
protected String |
getVariableValue(String name)
|
boolean |
isSuppressed()
Indicates whether this violation has been suppressed. |
protected boolean |
isVariable(String name)
|
void |
setLines(int theBeginLine,
int theEndLine)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Rule rule
protected final String description
protected boolean suppressed
protected String filename
protected int beginLine
protected int beginColumn
protected int endLine
protected int endColumn
protected String packageName
protected String className
protected String methodName
protected String variableName
| Constructor Detail |
|---|
public ParametricRuleViolation(Rule theRule,
RuleContext ctx,
T node,
String message)
| Method Detail |
|---|
protected String expandVariables(String message)
protected boolean isVariable(String name)
protected String getVariableValue(String name)
public Rule getRule()
RuleViolation
getRule in interface RuleViolationpublic String getDescription()
RuleViolation
getDescription in interface RuleViolationpublic boolean isSuppressed()
RuleViolation
isSuppressed in interface RuleViolationtrue if this violation is suppressed, false otherwise.public String getFilename()
RuleViolation
getFilename in interface RuleViolationpublic int getBeginLine()
RuleViolation
getBeginLine in interface RuleViolationpublic int getBeginColumn()
RuleViolation
getBeginColumn in interface RuleViolationpublic int getEndLine()
RuleViolation
getEndLine in interface RuleViolationpublic int getEndColumn()
RuleViolation
getEndColumn in interface RuleViolationpublic String getPackageName()
RuleViolation
getPackageName in interface RuleViolationpublic String getClassName()
RuleViolation
getClassName in interface RuleViolationpublic String getMethodName()
RuleViolation
getMethodName in interface RuleViolationpublic String getVariableName()
RuleViolation
getVariableName in interface RuleViolation
public void setLines(int theBeginLine,
int theEndLine)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||