Class RequiresAnnotationProcessor
java.lang.Object
org.apache.groovy.contracts.common.spi.AnnotationProcessor
org.apache.groovy.contracts.common.impl.RequiresAnnotationProcessor
Internal
AnnotationProcessor implementation for pre-conditions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(ProcessingContextInformation processingContextInformation, Contract contract, ClassNode classNode, MethodNode methodNode, BlockStatement blockStatement, BooleanExpression booleanExpression) Adds the supplied precondition to the contract model for the given method or constructor.Methods inherited from class org.apache.groovy.contracts.common.spi.AnnotationProcessor
process
-
Constructor Details
-
RequiresAnnotationProcessor
public RequiresAnnotationProcessor()
-
-
Method Details
-
process
public void process(ProcessingContextInformation processingContextInformation, Contract contract, ClassNode classNode, MethodNode methodNode, BlockStatement blockStatement, BooleanExpression booleanExpression) Adds the supplied precondition to the contract model for the given method or constructor.- Overrides:
processin classAnnotationProcessor- Parameters:
processingContextInformation- the current processing contextcontract- the mutable contract modelclassNode- the declaring classmethodNode- the annotated method or constructorblockStatement- the original precondition blockbooleanExpression- the normalized precondition expression
-