public class OptimizerVisitor extends ClassCodeExpressionTransformer
Constructor and Description |
---|
OptimizerVisitor(CompilationUnit cu) |
Modifier and Type | Method and Description |
---|---|
protected SourceUnit |
getSourceUnit() |
Expression |
transform(Expression exp)
Transforms the given expression into another expression
|
void |
visitClass(ClassNode node,
SourceUnit source) |
void |
visitClosureExpression(ClosureExpression expression) |
visitAnnotations, visitAssertStatement, visitCaseStatement, visitConstructorOrMethod, visitDoWhileLoop, visitExpressionStatement, visitField, visitForLoop, visitIfElse, visitProperty, visitReturnStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitWhileLoop
addError, visitBlockStatement, visitBreakStatement, visitCatchStatement, visitClass, visitClassCodeContainer, visitConstructor, visitContinueStatement, visitDeclarationExpression, visitImports, visitMethod, visitObjectInitializerStatements, visitPackage, visitStatement, visitTryCatchFinally
visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression
public OptimizerVisitor(CompilationUnit cu)
public void visitClass(ClassNode node, SourceUnit source)
public Expression transform(Expression exp)
ExpressionTransformer
transform
in interface ExpressionTransformer
transform
in class ClassCodeExpressionTransformer
protected SourceUnit getSourceUnit()
getSourceUnit
in class ClassCodeVisitorSupport
public void visitClosureExpression(ClosureExpression expression)
visitClosureExpression
in interface GroovyCodeVisitor
visitClosureExpression
in class CodeVisitorSupport