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
@Deprecated public class JavaRuleViolation extends ParametricRuleViolation<JavaNode>
Deprecated.SeeRuleViolation
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
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.rule.ParametricRuleViolation
beginColumn, beginLine, className, description, endColumn, endLine, filename, methodName, packageName, rule, suppressed, variableName
-
Fields inherited from interface net.sourceforge.pmd.RuleViolation
DEFAULT_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description JavaRuleViolation(Rule rule, RuleContext ctx, JavaNode node, String message)
Deprecated.JavaRuleViolation(Rule rule, RuleContext ctx, JavaNode node, String message, int beginLine, int endLine)
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
isSupressed(Node node, Rule rule)
Deprecated.Is internal API, not useful, there's a typo.-
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
-
-
-
-
Constructor Detail
-
JavaRuleViolation
public JavaRuleViolation(Rule rule, RuleContext ctx, JavaNode node, String message, int beginLine, int endLine)
Deprecated.
-
JavaRuleViolation
public JavaRuleViolation(Rule rule, RuleContext ctx, JavaNode node, String message)
Deprecated.
-
-
Method Detail
-
isSupressed
@Deprecated public static boolean isSupressed(Node node, Rule rule)
Deprecated.Is internal API, not useful, there's a typo. See #1927Check for suppression on this node, on parents, and on contained types for ASTCompilationUnit- Parameters:
node
-
-
-