Class OldVariableGenerationUtility
- java.lang.Object
-
- org.apache.groovy.contracts.generation.OldVariableGenerationUtility
-
public class OldVariableGenerationUtility extends Object
Central place where code generation for the old closure variable takes place.
-
-
Field Summary
Fields Modifier and Type Field Description static String
OLD_VARIABLES_METHOD
-
Constructor Summary
Constructors Constructor Description OldVariableGenerationUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addOldVariableMethodNode(ClassNode classNode)
Creates a synthetic method handling generation of the old variable map.
-
-
-
Field Detail
-
OLD_VARIABLES_METHOD
public static final String OLD_VARIABLES_METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
addOldVariableMethodNode
public static void addOldVariableMethodNode(ClassNode classNode)
Creates 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.
-
-