Class 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
    • Field Summary

      • Fields inherited from class net.sourceforge.pmd.lang.rule.ParametricRuleViolation

        beginColumn, beginLine, className, description, endColumn, endLine, filename, methodName, packageName, rule, suppressed, variableName
    • 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 
      Modifier and Type Method Description
      static boolean isSupressed​(net.sourceforge.pmd.lang.ast.Node node, net.sourceforge.pmd.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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

        public static boolean isSupressed​(net.sourceforge.pmd.lang.ast.Node node,
                                          net.sourceforge.pmd.Rule rule)
        Check for suppression on this node, on parents, and on contained types for ASTCompilationUnit
        Parameters:
        node -