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
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckAssertionsEnabled(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
 
 
 -