Class ApexRuleViolation<T>
- java.lang.Object
-
- net.sourceforge.pmd.lang.rule.ParametricRuleViolation<net.sourceforge.pmd.lang.ast.Node>
-
- net.sourceforge.pmd.lang.apex.rule.ApexRuleViolation<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
net.sourceforge.pmd.RuleViolation
public class ApexRuleViolation<T> extends net.sourceforge.pmd.lang.rule.ParametricRuleViolation<net.sourceforge.pmd.lang.ast.Node>
This is an Apex 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
-
-
Constructor Summary
Constructors Constructor Description ApexRuleViolation(net.sourceforge.pmd.Rule rule, net.sourceforge.pmd.RuleContext ctx, net.sourceforge.pmd.lang.ast.Node node, java.lang.String message)
ApexRuleViolation(net.sourceforge.pmd.Rule rule, net.sourceforge.pmd.RuleContext ctx, net.sourceforge.pmd.lang.ast.Node node, java.lang.String message, int beginLine, int endLine)
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
isSupressed(net.sourceforge.pmd.lang.ast.Node node, net.sourceforge.pmd.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
-
ApexRuleViolation
public ApexRuleViolation(net.sourceforge.pmd.Rule rule, net.sourceforge.pmd.RuleContext ctx, net.sourceforge.pmd.lang.ast.Node node, java.lang.String message, int beginLine, int endLine)
-
ApexRuleViolation
public ApexRuleViolation(net.sourceforge.pmd.Rule rule, net.sourceforge.pmd.RuleContext ctx, net.sourceforge.pmd.lang.ast.Node node, java.lang.String message)
-
-
Method Detail
-
isSupressed
@Deprecated public static boolean isSupressed(net.sourceforge.pmd.lang.ast.Node node, net.sourceforge.pmd.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
-
-