Class ApexRuleViolation<T>
- java.lang.Object
-
- net.sourceforge.pmd.lang.rule.ParametricRuleViolation<Node>
-
- net.sourceforge.pmd.lang.apex.rule.ApexRuleViolation<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
RuleViolation
@Deprecated @InternalApi public class ApexRuleViolation<T> extends ParametricRuleViolation<Node>
Deprecated.SeeRuleViolation
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
-
-
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 ApexRuleViolation(Rule rule, RuleContext ctx, Node node, String message)
Deprecated.ApexRuleViolation(Rule rule, RuleContext ctx, Node 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
-
ApexRuleViolation
public ApexRuleViolation(Rule rule, RuleContext ctx, Node node, String message, int beginLine, int endLine)
Deprecated.
-
ApexRuleViolation
public ApexRuleViolation(Rule rule, RuleContext ctx, Node 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
-
-