Top Description Fields Constructors Methods
org.codehaus.groovy.ast

public Class InnerClassNode

extends ClassNode
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.ast.InterfaceHelperClassNode, org.codehaus.groovy.ast.EnumConstantClassNode
Imports
org.codehaus.groovy.ast.stmt.Statement, java.util.LinkedList

Represents an inner class declaration

Field Summary

Modifier and TypeField and Description
private boolean
private final ClassNode
private VariableScope
Inherited from org.codehaus.groovy.ast.ClassNode:
clazzEMPTY_ARRAYinnerClassesisPrimaryNodelazyInitLockSUPERTHIS

Constructor Summary

AccessConstructor and Description
public
InnerClassNode(ClassNode outerClass, String
is the full name of the class
name
,
int
the modifiers, @see org.objectweb.asm.Opcodes
modifiers
,
ClassNode
the base class name - use "java.lang.Object" if no direct base class
superClass
)

public
InnerClassNode(ClassNode outerClass, String
is the full name of the class
name
,
int
the modifiers, @see org.objectweb.asm.Opcodes
modifiers
,
ClassNode
the base class name - use "java.lang.Object" if no direct base class
superClass
,
ClassNode[] interfaces, MixinNode[] mixins)

Method Summary

Modifier and TypeMethod and Description
public void
public ConstructorNode
addConstructor(final int modifiers, final Parameter[] parameters, final ClassNode[] exceptions, final Statement code)

Overrides org.codehaus.groovy.ast.ClassNode.addConstructor.

public ClassNode
public FieldNode

Returns:

the field node on the outer class or null if this is not an inner class
getOuterField
(String name)

Overrides org.codehaus.groovy.ast.ClassNode.getOuterField.

public ClassNode
public VariableScope
public boolean
public void
setAnonymous(boolean anonymous)

public void
Inherited from org.codehaus.groovy.ast.ClassNode:
addFieldaddFieldaddFieldFirstaddFieldFirstaddInterfaceaddMethodaddMethodaddMixinaddObjectInitializerStatementsaddPropertyaddPropertyaddStaticInitializerStatementsaddSyntheticMethodaddTransformasGenericsTypedeclaresAnyInterfacesdeclaresInterfaceequalsgetAbstractMethodsgetAllDeclaredMethodsgetAllInterfacesgetAnnotationsgetAnnotationsgetCompileUnitgetComponentTypegetDeclaredConstructorgetDeclaredConstructorsgetDeclaredFieldgetDeclaredMethodgetDeclaredMethodsgetDeclaredMethodsMapgetEnclosingMethodgetFieldgetFieldIndexgetFieldsgetGenericsTypesgetGetterMethodgetGetterMethodgetInnerClassesgetInterfacesgetMethodgetMethodsgetMethodsgetMixinsgetModifiersgetModulegetNamegetNameWithoutPackagegetObjectInitializerStatementsgetOuterClassesgetPackagegetPackageNamegetPlainNodeReferencegetPropertiesgetPropertygetSetterMethodgetSetterMethodgetSuperClassgetTextgetTransformsgetTypeClassgetUnresolvedInterfacesgetUnresolvedInterfacesgetUnresolvedNamegetUnresolvedSuperClassgetUnresolvedSuperClasshasDeclaredMethodhashCodehasMethodhasPackageNamehasPossibleMethodhasPossibleStaticMethodhasPropertyimplementsAnyInterfacesimplementsInterfaceisAbstractisAnnotatedisAnnotationDefinitionisArrayisDerivedFromisDerivedFromGroovyObjectisEnumisGenericsPlaceHolderisInterfaceisPrimaryClassNodeisRedirectNodeisResolvedisScriptisScriptBodyisStaticClassisSyntheticPublicisUsingGenericsmakeArrayparametersEqualpositionStmtsAfterEnumInitStmtsredirectremoveConstructorremoveFieldremoveMethodrenameFieldsetAnnotatedsetCompileUnitsetEnclosingMethodsetGenericsPlaceHoldersetGenericsTypessetInterfacessetMixinssetModifierssetModulesetNamesetRedirectsetScriptsetScriptBodysetStaticClasssetSuperClasssetSyntheticPublicsetUnresolvedSuperClasssetUsingGenericstoStringtoStringtryFindPossibleMethodvisitContents

Field Detail

anonymousback to summary
private boolean anonymous
outerClassback to summary
private final ClassNode outerClass
scopeback to summary
private VariableScope scope

Constructor Detail

InnerClassNodeback to summary
public InnerClassNode(ClassNode outerClass, String name, int modifiers, ClassNode superClass)
Parameters
name:String

is the full name of the class

modifiers:int

the modifiers, @see org.objectweb.asm.Opcodes

superClass:ClassNode

the base class name - use "java.lang.Object" if no direct base class

InnerClassNodeback to summary
public InnerClassNode(ClassNode outerClass, String name, int modifiers, ClassNode superClass, ClassNode[] interfaces, MixinNode[] mixins)
Parameters
name:String

is the full name of the class

modifiers:int

the modifiers, @see org.objectweb.asm.Opcodes

superClass:ClassNode

the base class name - use "java.lang.Object" if no direct base class

Method Detail

addConstructorback to summary
public void addConstructor(final ConstructorNode node)

Overrides org.codehaus.groovy.ast.ClassNode.addConstructor.

Annotations
@Override
addConstructorback to summary
public ConstructorNode addConstructor(final int modifiers, final Parameter[] parameters, final ClassNode[] exceptions, final Statement code)

Overrides org.codehaus.groovy.ast.ClassNode.addConstructor.

Annotations
@Override
getOuterClassback to summary
public ClassNode getOuterClass()

Overrides org.codehaus.groovy.ast.ClassNode.getOuterClass.

getOuterFieldback to summary
public FieldNode getOuterField(String name)

Overrides org.codehaus.groovy.ast.ClassNode.getOuterField.

Returns:FieldNode

the field node on the outer class or null if this is not an inner class

getOuterMostClassback to summary
public ClassNode getOuterMostClass()
getVariableScopeback to summary
public VariableScope getVariableScope()
isAnonymousback to summary
public boolean isAnonymous()
setAnonymousback to summary
public void setAnonymous(boolean anonymous)
setVariableScopeback to summary
public void setVariableScope(VariableScope scope)