Class Configurator
java.lang.Object
org.apache.groovy.contracts.generation.Configurator
Handles -ea
and -da
runtime input arguments for enabling and
disabling contract elements.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
DISABLED_ASSERTIONS
- See Also:
-
ENABLED_ASSERTIONS
- See Also:
-
PACKAGE_PREFIX
- See Also:
-
ENABLE_PACKAGE_ASSERTIONS
- See Also:
-
DISABLE_PACKAGE_ASSERTIONS
- See Also:
-
PACKAGE_POSTFIX
- See Also:
-
-
Constructor Details
-
Configurator
public Configurator()
-
-
Method Details
-
checkAssertionsEnabled
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
-