JavaClass
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private List | |
| private String | |
| private int | |
| private ConstantPool | |
| private List | |
| private String | |
| private List | |
| private int | |
| private List | |
| private int | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public Object | |
| public boolean | |
| public Method | Returns: method object with given name and signature, or null if not found
|
| public Field | |
| public AnnotationGen[] | |
| public Attribute | |
| public Collection | |
| public String | |
| public int | |
| public ConstantPool | |
| public Field[] | |
| public String | |
| public String[] | |
| public int[] | |
| public JavaClass | |
| public int | |
| public Method | |
| public Method[] | |
| public int | |
| public long | |
| public String | |
| public int | |
| public boolean | |
| public final boolean | |
| public final boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| annotationsList | back to summary |
|---|---|
| private List<AnnotationGen> annotationsList | |
| attributesList | back to summary |
|---|---|
| private List<Attribute> attributesList | |
| classname | back to summary |
|---|---|
| private String classname | |
| classnameIndex | back to summary |
|---|---|
| private int classnameIndex | |
| cpool | back to summary |
|---|---|
| private ConstantPool cpool | |
| fieldsList | back to summary |
|---|---|
| private List<Field> fieldsList | |
| filename | back to summary |
|---|---|
| private String filename | |
| interfaceList | back to summary |
|---|---|
| private List<String> interfaceList | |
| major | back to summary |
|---|---|
| private int major | |
| methodsList | back to summary |
|---|---|
| private List<Method> methodsList | |
| minor | back to summary |
|---|---|
| private int minor | |
| superclassname | back to summary |
|---|---|
| private String superclassname | |
| superclassnameIndex | back to summary |
|---|---|
| private int superclassnameIndex | |
| ClassGen | back to summary |
|---|---|
| public ClassGen(String classname, String superclassname, String filename, int modifiers, String[] interfacenames, ConstantPool cpool) | |
| ClassGen | back to summary |
|---|---|
| public ClassGen(String classname, String superclassname, String filename, int modifiers, String[] interfacenames) | |
| ClassGen | back to summary |
|---|---|
| public ClassGen(JavaClass clazz) | |
| addAnnotation | back to summary |
|---|---|
| public void addAnnotation(AnnotationGen a) | |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(Attribute a) | |
| addEmptyConstructor | back to summary |
|---|---|
| public void addEmptyConstructor(int access_flags) Convenience method. Add an empty constructor to this class that does nothing but calling super().
| |
| addField | back to summary |
|---|---|
| public void addField(Field f) Add a field to this class.
| |
| addInterface | back to summary |
|---|---|
| public void addInterface(String name) | |
| addMethod | back to summary |
|---|---|
| public void addMethod(Method m) | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| containsField | back to summary |
|---|---|
| public boolean containsField(Field f) | |
| containsMethod | back to summary |
|---|---|
public Method containsMethod(String name, String signature)
| |
| findsField | back to summary |
|---|---|
public Field findsField(String name)
| |
| getAnnotations | back to summary |
|---|---|
| public AnnotationGen[] getAnnotations() | |
| getAttribute | back to summary |
|---|---|
| public Attribute getAttribute(String attributeName) | |
| getAttributes | back to summary |
|---|---|
| public Collection | |
| getClassName | back to summary |
|---|---|
| public String getClassName() | |
| getClassNameIndex | back to summary |
|---|---|
| public int getClassNameIndex() | |
| getConstantPool | back to summary |
|---|---|
| public ConstantPool getConstantPool() | |
| getFields | back to summary |
|---|---|
| public Field[] getFields() | |
| getFileName | back to summary |
|---|---|
| public String getFileName() | |
| getInterfaceNames | back to summary |
|---|---|
| public String[] getInterfaceNames() | |
| getInterfaces | back to summary |
|---|---|
| public int[] getInterfaces() | |
| getJavaClass | back to summary |
|---|---|
public JavaClass getJavaClass()
| |
| getMajor | back to summary |
|---|---|
| public int getMajor() | |
| getMethodAt | back to summary |
|---|---|
| public Method getMethodAt(int pos) | |
| getMethods | back to summary |
|---|---|
| public Method[] getMethods() | |
| getMinor | back to summary |
|---|---|
| public int getMinor() | |
| getSUID | back to summary |
|---|---|
| public long getSUID() Calculate the SerialVersionUID for a class. | |
| getSuperclassName | back to summary |
|---|---|
| public String getSuperclassName() | |
| getSuperclassNameIndex | back to summary |
|---|---|
| public int getSuperclassNameIndex() | |
| hasAttribute | back to summary |
|---|---|
| public boolean hasAttribute(String attributeName) | |
| isAnnotation | back to summary |
|---|---|
| public final boolean isAnnotation() | |
| isEnum | back to summary |
|---|---|
| public final boolean isEnum() | |
| removeAnnotation | back to summary |
|---|---|
| public void removeAnnotation(AnnotationGen a) | |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(Attribute a) | |
| removeField | back to summary |
|---|---|
| public void removeField(Field f) | |
| removeInterface | back to summary |
|---|---|
| public void removeInterface(String name) | |
| removeMethod | back to summary |
|---|---|
| public void removeMethod(Method m) | |
| replaceField | back to summary |
|---|---|
| public void replaceField(Field old, Field new_) Replace given field with new one. If the old one does not exist add the new_ field to the class anyway. | |
| replaceMethod | back to summary |
|---|---|
| public void replaceMethod(Method old, Method new_) Replace given method with new one. If the old one does not exist add the new_ method to the class anyway. | |
| setClassName | back to summary |
|---|---|
| public void setClassName(String name) | |
| setClassNameIndex | back to summary |
|---|---|
| public void setClassNameIndex(int class_name_index) | |
| setConstantPool | back to summary |
|---|---|
| public void setConstantPool(ConstantPool constant_pool) | |
| setFields | back to summary |
|---|---|
| public void setFields(Field[] fs) | |
| setMajor | back to summary |
|---|---|
| public void setMajor(int major) | |
| setMethodAt | back to summary |
|---|---|
| public void setMethodAt(Method method, int pos) | |
| setMethods | back to summary |
|---|---|
| public void setMethods(Method[] methods) | |
| setMinor | back to summary |
|---|---|
| public void setMinor(int minor) | |
| setSuperclassName | back to summary |
|---|---|
| public void setSuperclassName(String name) | |
| setSuperclassNameIndex | back to summary |
|---|---|
| public void setSuperclassNameIndex(int superclass_name_index) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Method
the first object to be compared. m0, Method the second object to be compared. m1)Implements java. |
| ConstructorComparator | back to summary |
|---|---|
| private ConstructorComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Method m0, Method m1) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Field
the first object to be compared. f0, Field the second object to be compared. f1)Implements java. |
| FieldComparator | back to summary |
|---|---|
| private FieldComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Field f0, Field f1) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Method
the first object to be compared. m0, Method the second object to be compared. m1)Implements java. |
| MethodComparator | back to summary |
|---|---|
| private MethodComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Method m0, Method m1) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |