org.objectweb.asm.tree
Class ClassNode
- ClassVisitor
A node that represents a class.
- Eric Bruneton
int | access - The class's access flags (see
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
getInternalName ).
|
List | methods - The methods of this class.
|
String | name - The internal name of the class (see
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
getInternalName ).
|
int | version - The class version.
|
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() - Visits the end of this class, field or method.
|
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)
|
access
public int access
The class's access flags (see
Opcodes
). This
field also indicates if the class is deprecated.
fields
public final List fields
The fields of this class. This list is a list of
FieldNode
objects.
innerClasses
public final List innerClasses
Informations about the inner classes of this class. This list is a list of
InnerClassNode
objects.
interfaces
public final List interfaces
The internal names of the class's interfaces (see
getInternalName
). This list is a list of
String
objects.
methods
public final List methods
The methods of this class. This list is a list of
MethodNode
objects.
outerClass
public String outerClass
The internal name of the enclosing class of the class. May be
null.
outerMethod
public String outerMethod
The name of the method that contains the class, or null if the
class is not enclosed in a method.
outerMethodDesc
public String outerMethodDesc
The descriptor of the method that contains the class, or null
if the class is not enclosed in a method.
signature
public String signature
The signature of the class. Mayt be null.
sourceDebug
public String sourceDebug
Debug information to compute the correspondance between source and
compiled elements of the class. May be null.
sourceFile
public String sourceFile
The name of the source file from which this class was compiled. May be
null.
superName
public String superName
The internal of name of the super class (see
getInternalName
). For interfaces,
the super class is
Object
. May be
null, but only for the
Object
class.
version
public int version
The class version.
ClassNode
public ClassNode()
accept
public void accept(ClassVisitor cv)
Makes the given class visitor visit this class.
cv
- a class visitor.
visit
public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
- visit in interface ClassVisitor
visitInnerClass
public void visitInnerClass(String name,
String outerName,
String innerName,
int access)
- visitInnerClass in interface ClassVisitor