Class AbstractPLSQLRule

All Implemented Interfaces:
AstVisitor<Object,Object>, PlsqlVisitor<Object,Object>, Rule, PropertySource
Direct Known Subclasses:
AvoidTabCharacterRule, CodeFormatRule, CyclomaticComplexityRule, ExcessiveMethodLengthRule, ExcessiveObjectLengthRule, ExcessivePackageBodyLengthRule, ExcessivePackageSpecificationLengthRule, ExcessiveParameterListRule, ExcessiveTypeLengthRule, LineLengthRule, NcssCountRule, NcssMethodCountRule, NcssObjectCountRule, NPathComplexityRule, TooManyFieldsRule

public abstract class AbstractPLSQLRule extends AbstractRule implements PlsqlVisitor<Object,Object>
  • Constructor Details

    • AbstractPLSQLRule

      public AbstractPLSQLRule()
  • Method Details

    • apply

      public void apply(Node target, RuleContext ctx)
      Specified by:
      apply in interface Rule
    • visitNode

      public Object visitNode(Node node, Object param)
      Specified by:
      visitNode in interface AstVisitor<Object,Object>
    • getDeclaringType

      protected final String getDeclaringType(Node node)
      Gets the Image of the first parent node of type ASTClassOrInterfaceDeclaration or null
      Parameters:
      node - the node which will be searched
    • isQualifiedName

      public static boolean isQualifiedName(Node node)
    • importsPackage

      public static boolean importsPackage(ASTInput node, String packageName)
    • visit

      public Object visit(ExecutableCode node, Object data)