|
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.classgen.InnerClassVisitorHelper org.codehaus.groovy.classgen.InnerClassVisitor
public class InnerClassVisitor extends InnerClassVisitorHelper
Constructor Summary | |
InnerClassVisitor(CompilationUnit cu, SourceUnit su)
|
Method Summary | |
---|---|
protected SourceUnit
|
getSourceUnit()
|
void
|
visitClass(ClassNode node)
|
void
|
visitConstructorCallExpression(ConstructorCallExpression call)
|
protected void
|
visitConstructorOrMethod(MethodNode node, boolean isConstructor)
|
void
|
visitField(FieldNode node)
|
protected void
|
visitObjectInitializerStatements(ClassNode node)
|
void
|
visitProperty(PropertyNode node)
|
Methods inherited from class InnerClassVisitorHelper | |
---|---|
addFieldInit, getClassNode, getObjectDistance, isStatic, setMethodDispatcherCode, setPropertyGetterDispatcher, setPropertySetterDispatcher |
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 InnerClassVisitor(CompilationUnit cu, SourceUnit su)
Method Detail |
---|
@Override protected SourceUnit getSourceUnit()
@Override public void visitClass(ClassNode node)
if (!call.isUsingAnonymousInnerClass()) { public void visitConstructorCallExpression(ConstructorCallExpression call)
this.currentMethod = node; protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
super.visitField(node); public void visitField(FieldNode node)
@Override protected void visitObjectInitializerStatements(ClassNode node)
final Expression init = field.getInitialExpression(); public void visitProperty(PropertyNode node)
Groovy Documentation