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()
RuleViolationgetRule in interface RuleViolationpublic String getDescription()
RuleViolationgetDescription in interface RuleViolationpublic boolean isSuppressed()
RuleViolationisSuppressed in interface RuleViolationtrue if this violation is suppressed, false otherwise.public String getFilename()
RuleViolationgetFilename in interface RuleViolationpublic int getBeginLine()
RuleViolationgetBeginLine in interface RuleViolationpublic int getBeginColumn()
RuleViolationgetBeginColumn in interface RuleViolationpublic int getEndLine()
RuleViolationgetEndLine in interface RuleViolationpublic int getEndColumn()
RuleViolationgetEndColumn in interface RuleViolationpublic String getPackageName()
RuleViolationgetPackageName in interface RuleViolationpublic String getClassName()
RuleViolationgetClassName in interface RuleViolationpublic String getMethodName()
RuleViolationgetMethodName in interface RuleViolationpublic String getVariableName()
RuleViolationgetVariableName in interface RuleViolationpublic void setLines(int theBeginLine,
int theEndLine)
Copyright © 2002-2014 InfoEther. All Rights Reserved.