public abstract class AbstractScriptTransformer extends CompilationUnit.SourceUnitOperation implements Transformer
| Constructor and Description |
|---|
AbstractScriptTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
getPhase() |
protected ClassNode |
getScriptClass(SourceUnit source) |
protected boolean |
isMethodOnThis(MethodCallExpression call,
String name) |
void |
register(CompilationUnit compilationUnit) |
protected void |
removeMethod(ClassNode declaringClass,
MethodNode methodNode) |
protected boolean |
targetIsThis(MethodCallExpression call) |
protected void |
visitScriptCode(SourceUnit source,
GroovyCodeVisitor transformer) |
callclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdpublic void register(CompilationUnit compilationUnit)
register in interface Transformerprotected abstract int getPhase()
protected boolean isMethodOnThis(MethodCallExpression call, String name)
protected boolean targetIsThis(MethodCallExpression call)
protected void visitScriptCode(SourceUnit source, GroovyCodeVisitor transformer)
protected ClassNode getScriptClass(SourceUnit source)
protected void removeMethod(ClassNode declaringClass, MethodNode methodNode)
Copyright © 2013. All rights reserved