Class AbstractEnhanceableAstVisitorRule

All Implemented Interfaces:
Rule
Direct Known Subclasses:
CloseWithoutCloseableRule, CompareToWithoutComparableRule

public abstract class AbstractEnhanceableAstVisitorRule extends AbstractAstVisitorRule
Abstract superclass for Rules that use a Groovy AST Visitor and can optionally run in enhanced mode.
  • Field Details

    • ENHANCED_MODE_SYSTEM_PROPERTY

      public static final String ENHANCED_MODE_SYSTEM_PROPERTY
      Holds the name of the system property which allows to control the enhancedMode property.
      See Also:
    • enhancedMode

      private boolean enhancedMode
      Controls weather to run in enhanced mode. Note that running in enhanced mode will use a later compilation phase which will require any classes referenced from the analysed code to be available on the classpath. This property is set to false by default and can be also controlled using org.codenarc.enhancedMode system property.
  • Constructor Details

    • AbstractEnhanceableAstVisitorRule

      public AbstractEnhanceableAstVisitorRule()
  • Method Details