public class ClassNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
access
The class's access flags (see
Constants ). |
Attribute |
attrs
The non standard attributes of the class.
|
java.util.List |
fields
The fields of this class.
|
java.util.List |
innerClasses
Informations about the inner classes of this class.
|
java.util.List |
interfaces
The internal names of the class's interfaces (see
getInternalName ). |
java.util.List |
methods
The methods of this class.
|
java.lang.String |
name
The internal name of the class (see
getInternalName ). |
java.lang.String |
sourceFile
The name of the source file from which this class was compiled.
|
java.lang.String |
superName
The internal of name of the super class (see
getInternalName ). |
int |
version
The class version.
|
Constructor and Description |
---|
ClassNode(int version,
int access,
java.lang.String name,
java.lang.String superName,
java.lang.String[] interfaces,
java.lang.String sourceFile)
Constructs a new
ClassNode object. |
Modifier and Type | Method and Description |
---|---|
void |
accept(ClassVisitor cv)
Makes the given class visitor visit this class.
|
public int version
public int access
Constants
). This
field also indicates if the class is deprecated.public java.lang.String name
getInternalName
).public java.lang.String superName
getInternalName
). For interfaces,
the super class is Object
. May be null, but only for the
java.lang.Object
class.public final java.util.List interfaces
getInternalName
). This list is a
list of String
objects.public java.lang.String sourceFile
public final java.util.List innerClasses
InnerClassNode
objects.public final java.util.List fields
FieldNode
objects.public final java.util.List methods
MethodNode
objects.public Attribute attrs
public ClassNode(int version, int access, java.lang.String name, java.lang.String superName, java.lang.String[] interfaces, java.lang.String sourceFile)
ClassNode
object.version
- the class version.access
- the class's access flags (see Constants
). This parameter also indicates if the
class is deprecated.name
- the internal name of the class (see getInternalName
).superName
- the internal of name of the super class (see getInternalName
). For
interfaces, the super class is Object
.interfaces
- the internal names of the class's interfaces (see getInternalName
). May be
null.sourceFile
- the name of the source file from which this class was
compiled. May be null.public void accept(ClassVisitor cv)
cv
- a class visitor.