org.codehaus.groovy.classgen
Class CompileStack

This class is a helper for AsmClassGenerator. It manages different aspects of the code of a code block like handling labels, defining variables, and scopes. After a MethodNode is visited clear should be called, for initialization the method init should be used.

Some Notes:

see:
AsmClassGenerator
author:
Jochen Theodorou

Field Summary
 Label breakLabel
           
 String className
           
 boolean clear
           
 Label continueLabel
           
 Map currentBlockNamedLabels
           
 int currentClassIndex
           
 int currentMetaClassIndex
           
 int currentVariableIndex
           
 LinkedList finallyBlocks
           
 BytecodeHelper helper
           
 int localVariableOffset
           
 MethodVisitor mv
           
 Map namedLoopBreakLabel
           
 Map namedLoopContinueLabel
           
 int nextVariableIndex
           
 VariableScope scope
           
 Map stackVariables
           
 LinkedList stateStack
           
 Map superBlockNamedLabels
           
 LinkedList temporaryVariables
           
 Label thisEndLabel
           
 Label thisStartLabel
           
 LinkedList usedVariables
           
 List visitedBlocks
           
 
Constructor Summary
CompileStack()
           
 
Method Summary
 

Constructor Detail

CompileStack

CompileStack()


Method Detail