Class Configurator

java.lang.Object
org.apache.groovy.contracts.generation.Configurator

public final class Configurator extends Object

Handles -ea and -da runtime input arguments for enabling and disabling contract elements.

  • Field Details

  • Constructor Details

    • Configurator

      public Configurator()
  • Method Details

    • checkAssertionsEnabled

      public static boolean checkAssertionsEnabled(String className)
      This static method is used within generated code to check whether assertions have been disabled for the current class or not.
      Parameters:
      className - the class name to look up in the assertion configuration
      Returns:
      whether assertion checking is enabled or not