- org.codehaus.groovy.transform.sc.transformers.StaticCompilationTransformer
-
Some expressions use symbols as aliases to method calls (<<, +=, ...). In static compilation,
if such a method call is found, we transform the original binary expression into a method
call expression so that the call gets statically compiled.
- Authors:
- Cedric Champeau
-
-
Methods Summary
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class ClassCodeExpressionTransformer |
visitField, visitProperty, visitReturnStatement, visitExpressionStatement, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitAnnotations, visitAssertStatement, visitCaseStatement, visitIfElse, visitSynchronizedStatement, visitThrowStatement, transform, visitMethod, visitConstructor, visitBlockStatement, visitPackage, visitClass, visitBreakStatement, visitCatchStatement, visitContinueStatement, visitTryCatchFinally, visitDeclarationExpression, visitImports, visitConstantExpression, visitClassExpression, visitListExpression, visitPropertyExpression, visitVariableExpression, visitMethodCallExpression, visitClosureExpression, visitArgumentlistExpression, visitTupleExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class ClassCodeVisitorSupport |
visitMethod, visitField, visitProperty, visitConstructor, visitReturnStatement, visitExpressionStatement, visitBlockStatement, visitPackage, visitClass, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitAnnotations, visitAssertStatement, visitBreakStatement, visitCaseStatement, visitCatchStatement, visitContinueStatement, visitIfElse, visitSynchronizedStatement, visitThrowStatement, visitTryCatchFinally, visitDeclarationExpression, visitImports, visitConstantExpression, visitClassExpression, visitListExpression, visitPropertyExpression, visitVariableExpression, visitMethodCallExpression, visitClosureExpression, visitArgumentlistExpression, visitTupleExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
-
-
Field Detail
-
protected static final ClassNode BYTECODE_ADAPTER_CLASS
-
Constructor Detail
-
public StaticCompilationTransformer(SourceUnit unit)
Copyright © 2003-2014 The Codehaus. All rights reserved.