public class JavaClass extends AccessFlags implements Cloneable, Comparable<JavaClass>
access_flags
Constructor and Description |
---|
JavaClass(int class_name_index,
int superclass_name_index,
String file_name,
int major,
int minor,
int access_flags,
ConstantPool constant_pool,
int[] interfaces,
Field[] fields,
Method[] methods,
Attribute[] attributes)
Constructor gets all contents as arguments.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JavaClass obj)
Return the natural ordering of two JavaClasses.
|
boolean |
equals(Object obj)
Return value as defined by given BCELComparator strategy.
|
AnnotationEntry[] |
getAnnotationEntries() |
Attribute[] |
getAttributes() |
String |
getClassName() |
String[] |
getInterfaceNames() |
String |
getSuperclassName()
returns the super class name of this class.
|
int |
hashCode()
Return value as defined by given BCELComparator strategy.
|
boolean |
isSuper() |
String |
toString() |
getAccessFlags
public JavaClass(int class_name_index, int superclass_name_index, String file_name, int major, int minor, int access_flags, ConstantPool constant_pool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes)
class_name_index
- Index into constant pool referencing a
ConstantClass that represents this class.superclass_name_index
- Index into constant pool referencing a
ConstantClass that represents this class's superclass.file_name
- File namemajor
- Major compiler versionminor
- Minor compiler versionaccess_flags
- Access rights defined by bit flagsconstant_pool
- Array of constantsinterfaces
- Implemented interfacesfields
- Class fieldsmethods
- Class methodsattributes
- Class attributespublic Attribute[] getAttributes()
public AnnotationEntry[] getAnnotationEntries()
public String getClassName()
public String[] getInterfaceNames()
public String getSuperclassName()
public String toString()
public final boolean isSuper()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int compareTo(JavaClass obj)
compareTo
in interface Comparable<JavaClass>
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.