Package org.objectweb.asm.tree
Class InnerClassNode
- java.lang.Object
-
- org.objectweb.asm.tree.InnerClassNode
-
public class InnerClassNode extends java.lang.Object
A node that represents an inner class. This inner class is not necessarily a member of theClassNode
containing this object. More precisely, every class or interface C which is referenced by aClassNode
and which is not a package member must be represented with anInnerClassNode
. TheClassNode
must reference its nested class or interface members, and its enclosing class, if any. See the JVMS 4.7.6 section for more details.
-
-
Field Summary
Fields Modifier and Type Field Description int
access
The access flags of the inner class as originally declared in the source code from which the class was compiled.java.lang.String
innerName
The (simple) name of the inner class inside its enclosing class.java.lang.String
name
The internal name of an inner class (seeType.getInternalName()
).java.lang.String
outerName
The internal name of the class to which the inner class belongs (seeType.getInternalName()
).
-
Constructor Summary
Constructors Constructor Description InnerClassNode(java.lang.String name, java.lang.String outerName, java.lang.String innerName, int access)
Constructs a newInnerClassNode
for an inner class C.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ClassVisitor classVisitor)
Makes the given class visitor visit this inner class.
-
-
-
Field Detail
-
name
public java.lang.String name
The internal name of an inner class (seeType.getInternalName()
).
-
outerName
public java.lang.String outerName
The internal name of the class to which the inner class belongs (seeType.getInternalName()
). May be null.
-
innerName
public java.lang.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).
-
access
public int access
The access flags of the inner class as originally declared in the source code from which the class was compiled.
-
-
Constructor Detail
-
InnerClassNode
public InnerClassNode(java.lang.String name, java.lang.String outerName, java.lang.String innerName, int access)
Constructs a newInnerClassNode
for an inner class C.- Parameters:
name
- the internal name of C (seeType.getInternalName()
).outerName
- the internal name of the class or interface C is a member of (seeType.getInternalName()
). Must be null if C is not the member of a class or interface (e.g. for local or anonymous classes).innerName
- the (simple) name of C. Must be null for anonymous inner classes.access
- the access flags of C originally declared in the source code from which this class was compiled.
-
-
Method Detail
-
accept
public void accept(ClassVisitor classVisitor)
Makes the given class visitor visit this inner class.- Parameters:
classVisitor
- a class visitor.
-
-