|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.util.bcel.classfile.AccessFlags
org.apache.tomcat.util.bcel.classfile.JavaClass
public class JavaClass
Represents a Java class, i.e., the data structures, constant pool, fields, methods and commands contained in a Java .class file. See JVM specification for details. The intent of this class is to represent a parsed or otherwise existing class file. Those interested in programatically generating classes should see the ClassGen class.
| Field Summary |
|---|
| Fields inherited from class org.apache.tomcat.util.bcel.classfile.AccessFlags |
|---|
access_flags |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.tomcat.util.bcel.classfile.AccessFlags |
|---|
getAccessFlags |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 attributes| Method Detail |
|---|
public Attribute[] getAttributes()
public AnnotationEntry[] getAnnotationEntries()
public String getClassName()
public String[] getInterfaceNames()
public String getSuperclassName()
public String toString()
toString in class Objectpublic final boolean isSuper()
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int compareTo(JavaClass obj)
compareTo in interface Comparable<JavaClass>public int hashCode()
hashCode in class ObjectObject.hashCode()
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||