public class ParametricRuleViolation<T extends Node> extends Object implements RuleViolation
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ParametricRuleViolation(Rule theRule,
RuleContext ctx,
T node,
String message) |
Modifier and Type | Method and Description |
---|---|
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() |
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
public ParametricRuleViolation(Rule theRule, RuleContext ctx, T node, String message)
protected boolean isVariable(String name)
public Rule getRule()
RuleViolation
getRule
in interface RuleViolation
public String getDescription()
RuleViolation
getDescription
in interface RuleViolation
public boolean isSuppressed()
RuleViolation
isSuppressed
in interface RuleViolation
true
if this violation is suppressed, false
otherwise.public String getFilename()
RuleViolation
getFilename
in interface RuleViolation
public int getBeginLine()
RuleViolation
getBeginLine
in interface RuleViolation
public int getBeginColumn()
RuleViolation
getBeginColumn
in interface RuleViolation
public int getEndLine()
RuleViolation
getEndLine
in interface RuleViolation
public int getEndColumn()
RuleViolation
getEndColumn
in interface RuleViolation
public String getPackageName()
RuleViolation
getPackageName
in interface RuleViolation
public String getClassName()
RuleViolation
getClassName
in interface RuleViolation
public String getMethodName()
RuleViolation
getMethodName
in interface RuleViolation
public String getVariableName()
RuleViolation
getVariableName
in interface RuleViolation
public void setLines(int theBeginLine, int theEndLine)
Copyright © 2002-2016 InfoEther. All Rights Reserved.