org.objectweb.asm.tree
Class ClassNode
public
class
ClassNode
extends MemberNode
implements ClassVisitor
A node that represents a class.
Author: Eric Bruneton
Field Summary |
int | access
The class's access flags (see {@link Opcodes}). |
List | fields
The fields of this class. |
List | innerClasses
Informations about the inner classes of this class. |
List | interfaces
The internal names of the class's interfaces (see
{@link Type#getInternalName() getInternalName}). |
List | methods
The methods of this class. |
String | name
The internal name of the class (see
{@link Type#getInternalName() getInternalName}). |
String | outerClass
The internal name of the enclosing class of the class. |
String | outerMethod
The name of the method that contains the class, or null if the
class is not enclosed in a method. |
String | outerMethodDesc
The descriptor of the method that contains the class, or null
if the class is not enclosed in a method. |
String | signature
The signature of the class. |
String | sourceDebug
Debug information to compute the correspondance between source and
compiled elements of the class. |
String | sourceFile
The name of the source file from which this class was compiled. |
String | superName
The internal of name of the super class (see
{@link Type#getInternalName() getInternalName}). |
int | version
The class version. |
Method Summary |
void | accept(ClassVisitor cv)
Makes the given class visitor visit this class.
|
void | visit(int version, int access, String name, String signature, String superName, String[] interfaces) |
void | visitEnd() |
FieldVisitor | visitField(int access, String name, String desc, String signature, Object value) |
void | visitInnerClass(String name, String outerName, String innerName, int access) |
MethodVisitor | visitMethod(int access, String name, String desc, String signature, String[] exceptions) |
void | visitOuterClass(String owner, String name, String desc) |
void | visitSource(String file, String debug) |
public int access
The class's access flags (see {@link Opcodes}). This field also
indicates if the class is deprecated.
public final List fields
The fields of this class. This list is a list of {@link FieldNode}
objects.
UNKNOWN: org.objectweb.asm.tree.FieldNode
public final List innerClasses
Informations about the inner classes of this class. This list is a list
of {@link InnerClassNode} objects.
UNKNOWN: org.objectweb.asm.tree.InnerClassNode
public final List interfaces
The internal names of the class's interfaces (see
{@link Type#getInternalName() getInternalName}). This list is a list of
{@link String} objects.
public final List methods
The methods of this class. This list is a list of {@link MethodNode}
objects.
UNKNOWN: org.objectweb.asm.tree.MethodNode
public String name
The internal name of the class (see
{@link Type#getInternalName() getInternalName}).
public String outerClass
The internal name of the enclosing class of the class. May be
null.
public String outerMethod
The name of the method that contains the class, or null if the
class is not enclosed in a method.
public String outerMethodDesc
The descriptor of the method that contains the class, or null
if the class is not enclosed in a method.
public String signature
The signature of the class. Mayt be null.
public String sourceDebug
Debug information to compute the correspondance between source and
compiled elements of the class. May be null.
public String sourceFile
The name of the source file from which this class was compiled. May be
null.
public String superName
The internal of name of the super class (see
{@link Type#getInternalName() getInternalName}). For interfaces, the
super class is {@link Object}. May be null, but only for the
{@link Object} class.
public int version
The class version.
public ClassNode()
Constructs a new {@link ClassNode}.
Makes the given class visitor visit this class.
Parameters: cv a class visitor.
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
public void visitEnd()
public
FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
public void visitInnerClass(String name, String outerName, String innerName, int access)
public
MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
public void visitOuterClass(String owner, String name, String desc)
public void visitSource(String file, String debug)