|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.CodeVisitorSupport org.codehaus.groovy.ast.ClassCodeVisitorSupport org.codehaus.groovy.ast.ClassCodeExpressionTransformer org.codehaus.groovy.control.OptimizerVisitor
public class OptimizerVisitor extends ClassCodeExpressionTransformer
Visitor to produce several optimizations - to replace numbered constants with references to static fields
Constructor Summary | |
OptimizerVisitor(CompilationUnit cu)
|
Method Summary | |
---|---|
protected SourceUnit
|
getSourceUnit()
|
Expression
|
transform(Expression exp)
|
void
|
visitClass(ClassNode node, SourceUnit source)
|
void
|
visitClosureExpression(ClosureExpression expression)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public OptimizerVisitor(CompilationUnit cu)
Method Detail |
---|
protected SourceUnit getSourceUnit()
public Expression transform(Expression exp)
public void visitClass(ClassNode node, SourceUnit source)
public void visitClosureExpression(ClosureExpression expression)
Groovy Documentation