net.sourceforge.pmd.lang.java.rule
Class JavaRuleViolation
java.lang.Object
net.sourceforge.pmd.lang.rule.ParametricRuleViolation<JavaNode>
net.sourceforge.pmd.lang.java.rule.JavaRuleViolation
- All Implemented Interfaces:
- RuleViolation
- Direct Known Subclasses:
- DaaRuleViolation
public class JavaRuleViolation
- extends ParametricRuleViolation<JavaNode>
This is a Java RuleViolation. It knows how to try to extract the following
extra information from the violation node:
- Package name
- Class name
- Method name
- Variable name
- Suppression indicator
Fields inherited from class net.sourceforge.pmd.lang.rule.ParametricRuleViolation |
beginColumn, beginLine, className, description, endColumn, endLine, filename, methodName, packageName, rule, suppressed, variableName |
Method Summary |
static boolean |
isSupressed(Node node,
Rule rule)
Check for suppression on this node, on parents, and on contained types
for ASTCompilationUnit |
Methods inherited from class net.sourceforge.pmd.lang.rule.ParametricRuleViolation |
expandVariables, getBeginColumn, getBeginLine, getClassName, getDescription, getEndColumn, getEndLine, getFilename, getMethodName, getPackageName, getRule, getVariableName, getVariableValue, isSuppressed, isVariable, setLines, toString |
JavaRuleViolation
public JavaRuleViolation(Rule rule,
RuleContext ctx,
JavaNode node,
String message,
int beginLine,
int endLine)
JavaRuleViolation
public JavaRuleViolation(Rule rule,
RuleContext ctx,
JavaNode node,
String message)
isSupressed
public static boolean isSupressed(Node node,
Rule rule)
- Check for suppression on this node, on parents, and on contained types
for ASTCompilationUnit
- Parameters:
node
-
Copyright © 2002-2015 InfoEther. All Rights Reserved.