Class ApexRuleViolation<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    RuleViolation

    @Deprecated
    @InternalApi
    public class ApexRuleViolation<T>
    extends ParametricRuleViolation<Node>
    Deprecated.
    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 Detail

      • ApexRuleViolation

        public ApexRuleViolation​(Rule rule,
                                 RuleContext ctx,
                                 Node node,
                                 String message,
                                 int beginLine,
                                 int endLine)
        Deprecated.
    • Method Detail

      • isSupressed

        @Deprecated
        public static boolean isSupressed​(Node node,
                                          Rule rule)
        Deprecated.
        Is internal API, not useful, there's a typo. See #1927
        Check for suppression on this node, on parents, and on contained types for ASTCompilationUnit