Package org.codehaus.groovy.classgen.asm
Class OptimizingStatementWriter
java.lang.Object
org.codehaus.groovy.classgen.asm.StatementWriter
org.codehaus.groovy.classgen.asm.OptimizingStatementWriter
public class OptimizingStatementWriter extends StatementWriter
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OptimizingStatementWriter.ClassNodeSkip
static class
OptimizingStatementWriter.StatementMeta
-
Field Summary
Fields inherited from class org.codehaus.groovy.classgen.asm.StatementWriter
controller
-
Constructor Summary
Constructors Constructor Description OptimizingStatementWriter(WriterController controller)
-
Method Summary
Modifier and Type Method Description static void
setNodeMeta(TypeChooser chooser, ClassNode classNode)
void
writeBlockStatement(BlockStatement statement)
void
writeDoWhileLoop(DoWhileStatement statement)
void
writeExpressionStatement(ExpressionStatement statement)
protected void
writeForInLoop(ForStatement statement)
protected void
writeForLoopWithClosureList(ForStatement statement)
void
writeIfElse(IfStatement statement)
protected void
writeIteratorHasNext(org.objectweb.asm.MethodVisitor mv)
protected void
writeIteratorNext(org.objectweb.asm.MethodVisitor mv)
void
writeReturn(ReturnStatement statement)
void
writeWhileLoop(WhileStatement statement)
Methods inherited from class org.codehaus.groovy.classgen.asm.StatementWriter
writeAssert, writeBreak, writeContinue, writeForInLoopControlAndBlock, writeForStatement, writeStatementLabel, writeSwitch, writeSynchronized, writeThrow, writeTryCatchFinally
-
Constructor Details
-
OptimizingStatementWriter
-
-
Method Details
-
writeBlockStatement
- Overrides:
writeBlockStatement
in classStatementWriter
-
writeDoWhileLoop
- Overrides:
writeDoWhileLoop
in classStatementWriter
-
writeIteratorHasNext
protected void writeIteratorHasNext(org.objectweb.asm.MethodVisitor mv)- Overrides:
writeIteratorHasNext
in classStatementWriter
-
writeIteratorNext
protected void writeIteratorNext(org.objectweb.asm.MethodVisitor mv)- Overrides:
writeIteratorNext
in classStatementWriter
-
writeForInLoop
- Overrides:
writeForInLoop
in classStatementWriter
-
writeForLoopWithClosureList
- Overrides:
writeForLoopWithClosureList
in classStatementWriter
-
writeWhileLoop
- Overrides:
writeWhileLoop
in classStatementWriter
-
writeIfElse
- Overrides:
writeIfElse
in classStatementWriter
-
writeReturn
- Overrides:
writeReturn
in classStatementWriter
-
writeExpressionStatement
- Overrides:
writeExpressionStatement
in classStatementWriter
-
setNodeMeta
-