Class PreconditionLifecycle
java.lang.Object
org.apache.groovy.contracts.common.base.BaseLifecycle
org.apache.groovy.contracts.common.impl.lc.PreconditionLifecycle
- All Implemented Interfaces:
Lifecycle
Internal
Lifecycle implementation for pre-conditions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterProcessingMethodNode(ProcessingContextInformation processingContextInformation, ClassNode classNode, MethodNode methodNode) Adds inherited default preconditions to the supplied method when needed.voidbeforeProcessingConstructorNode(ProcessingContextInformation processingContextInformation, ClassNode classNode, MethodNode constructorNode) Adds inherited default preconditions to the supplied constructor when needed.Methods inherited from class org.apache.groovy.contracts.common.base.BaseLifecycle
afterProcessingClassNode, afterProcessingConstructorNode, beforeProcessingClassNode, beforeProcessingMethodNode
-
Constructor Details
-
PreconditionLifecycle
public PreconditionLifecycle()
-
-
Method Details
-
beforeProcessingConstructorNode
public void beforeProcessingConstructorNode(ProcessingContextInformation processingContextInformation, ClassNode classNode, MethodNode constructorNode) Adds inherited default preconditions to the supplied constructor when needed.- Specified by:
beforeProcessingConstructorNodein interfaceLifecycle- Overrides:
beforeProcessingConstructorNodein classBaseLifecycle- Parameters:
processingContextInformation- the current processing contextclassNode- the declaring classconstructorNode- the constructor to update
-
afterProcessingMethodNode
public void afterProcessingMethodNode(ProcessingContextInformation processingContextInformation, ClassNode classNode, MethodNode methodNode) Adds inherited default preconditions to the supplied method when needed.- Specified by:
afterProcessingMethodNodein interfaceLifecycle- Overrides:
afterProcessingMethodNodein classBaseLifecycle- Parameters:
processingContextInformation- the current processing contextclassNode- the declaring classmethodNode- the method to update
-