|
Groovy 2.2.0 | |||||||
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 Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public InnerClassVisitor(CompilationUnit cu, SourceUnit su)
Method Detail |
---|
@Override protected SourceUnit getSourceUnit()
@Override public void visitClass(ClassNode node)
@Overrideif (!call.isUsingAnonymousInnerClass()) { public void visitConstructorCallExpression(ConstructorCallExpression call)
@Overridethis.currentMethod = node; protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
@Overridesuper.visitField(node); public void visitField(FieldNode node)
@Override protected void visitObjectInitializerStatements(ClassNode node)
@Overridefinal Expression init = field.getInitialExpression(); public void visitProperty(PropertyNode node)
Copyright © 2003-2013 The Codehaus. All rights reserved.