Top Description Fields Constructors Methods
org.objectweb.asm.tree

public Class InnerClassNode

extends Object
Class Inheritance
Imports
org.objectweb.asm.ClassVisitor

A node that represents an inner class. This inner class is not necessarily a member of the ClassNode containing this object. More precisely, every class or interface C which is referenced by a ClassNode and which is not a package member must be represented with an InnerClassNode. The ClassNode must reference its nested class or interface members, and its enclosing class, if any. See the JVMS 4.7.6 section for more details.
Author
Eric Bruneton

Field Summary

Modifier and TypeField and Description
public int
access

The access flags of the inner class as originally declared in the source code from which the class was compiled.

public String
innerName

The (simple) name of the inner class inside its enclosing class.

public String
name

The internal name of an inner class (see org.objectweb.asm.Type#getInternalName()).

public String
outerName

The internal name of the class to which the inner class belongs (see org.objectweb.asm.Type#getInternalName()).

Constructor Summary

AccessConstructor and Description
public
InnerClassNode(final String
the internal name of C (see org.objectweb.asm.Type#getInternalName()).
name
,
final String
the internal name of the class or interface C is a member of (see org.objectweb.asm.Type#getInternalName()). Must be null if C is not the member of a class or interface (e.g. for local or anonymous classes).
outerName
,
final String
the (simple) name of C. Must be null for anonymous inner classes.
innerName
,
final int
the access flags of C originally declared in the source code from which this class was compiled.
access
)

Constructs a new InnerClassNode for an inner class C.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final ClassVisitor
a class visitor.
classVisitor
)

Makes the given class visitor visit this inner class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessback to summary
public int access

The access flags of the inner class as originally declared in the source code from which the class was compiled.

innerNameback to summary
public String innerName

The (simple) name of the inner class inside its enclosing class. Must be null if the inner class is not the member of a class or interface (e.g. for local or anonymous classes).

nameback to summary
public String name

The internal name of an inner class (see org.objectweb.asm.Type#getInternalName()).

outerNameback to summary
public String outerName

The internal name of the class to which the inner class belongs (see org.objectweb.asm.Type#getInternalName()). May be null.

Constructor Detail

InnerClassNodeback to summary
public InnerClassNode(final String name, final String outerName, final String innerName, final int access)

Constructs a new InnerClassNode for an inner class C.

Parameters
name:String

the internal name of C (see org.objectweb.asm.Type#getInternalName()).

outerName:String

the internal name of the class or interface C is a member of (see org.objectweb.asm.Type#getInternalName()). Must be null if C is not the member of a class or interface (e.g. for local or anonymous classes).

innerName:String

the (simple) name of C. Must be null for anonymous inner classes.

access:int

the access flags of C originally declared in the source code from which this class was compiled.

Method Detail

acceptback to summary
public void accept(final ClassVisitor classVisitor)

Makes the given class visitor visit this inner class.

Parameters
classVisitor:ClassVisitor

a class visitor.