Class OldVariableGenerationUtility
java.lang.Object
org.apache.groovy.contracts.generation.OldVariableGenerationUtility
Central place where code generation for the old closure variable takes place.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddOldVariableMethodNode(ClassNode classNode) Creates a synthetic method handling generation of the old variable map.
- 
Field Details- 
OLD_VARIABLES_METHOD- See Also:
 
 
- 
- 
Constructor Details- 
OldVariableGenerationUtilitypublic OldVariableGenerationUtility()
 
- 
- 
Method Details- 
addOldVariableMethodNodeCreates a synthetic method handling generation of the old variable map. If a super class declares the same synthetic method it will be called and the results will be merged.- Parameters:
- classNode- which contains postconditions, so an old variable generating method makes sense here.
 
 
-