Package org.codehaus.groovy.classgen.asm
Class CompileStack.BlockRecorder
java.lang.Object
org.codehaus.groovy.classgen.asm.CompileStack.BlockRecorder
- Enclosing class:
- CompileStack
Records a block for finally or other special handling.
-
Field Summary
FieldsModifier and TypeFieldDescriptionCallback used when visiting the block outside its recorded range.Label ranges covered by this recorder. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty block recorder.BlockRecorder(Runnable excludedStatement) Creates a block recorder with an excluded statement. -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseRange(org.objectweb.asm.Label end) Closes the current range at the given label.voidstartRange(org.objectweb.asm.Label start) Starts a new range at the given label.
-
Field Details
-
excludedStatement
Callback used when visiting the block outside its recorded range. -
ranges
Label ranges covered by this recorder.
-
-
Constructor Details
-
BlockRecorder
public BlockRecorder()Creates an empty block recorder. -
BlockRecorder
Creates a block recorder with an excluded statement.- Parameters:
excludedStatement- the statement to exclude from the block
-
-
Method Details
-
startRange
public void startRange(org.objectweb.asm.Label start) Starts a new range at the given label.- Parameters:
start- the start label
-
closeRange
public void closeRange(org.objectweb.asm.Label end) Closes the current range at the given label.- Parameters:
end- the end label
-