org.aspectj.apache.bcel.generic.ClassGen
| Modifier and Type | Field and Description |
|---|---|
| private AnnotationGen[] | |
| private boolean | |
| private Attribute[] | |
| private String | |
| private int | |
| private boolean | |
| private ConstantPool | |
| private Field[] | |
| private String | |
| private String[] | |
| private int[] | |
| private boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private Method[] | |
| private int | |
| private static final int[] | |
| private static final String[] | |
| private String | |
| private transient Repository | repository
In cases where we go ahead and create something, use the default SyntheticRepository, because we don't know any better. |
| private boolean | |
| private Signature | |
| private String | |
| private String | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ClassVisitor
Visitor object v)Implements org. |
| private final void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public Collection | |
| public AnnotationGen[] | |
| public Attribute[] | |
| public byte[] | |
| public String | |
| public int | |
| public ConstantPool | |
| public Field | |
| public Field[] | Returns: Fields, i.e., variables of the class. Like the JVM spec mandates for the classfile format, these fields are those specific to this class, and not those of the superclass or superinterfaces.
|
| public String | |
| public final String | |
| public int[] | |
| public String[] | |
| public JavaClass[] | |
| public int | |
| public Method | |
| public Method | |
| public Method[] | |
| public int | |
| public String | |
| public Repository | |
| public final Signature | |
| public String | |
| public JavaClass | Returns: the superclass for this JavaClass object, or null if this is java.lang.Object
|
| public JavaClass[] | Returns: list of super classes of this class in ascending order, i.e., java.lang.Object is always the last element
|
| public String | |
| public int | |
| public boolean | |
| private static final String | |
| public final boolean | Returns: true if this JavaClass is derived from teh super classEquivalent to runtime "instanceof" operator. |
| public final boolean | isAnnotation()
Returns true if this class represents an annotation, i.e. it was a 'public @interface blahblah' declaration |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public boolean | |
| public final boolean | |
| public final boolean | |
| private 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 String | Returns: String representing class contents.Overrides java. |
| annotations | back to summary |
|---|---|
| private AnnotationGen[] annotations | |
| annotationsOutOfDate | back to summary |
|---|---|
| private boolean annotationsOutOfDate | |
| attributes | back to summary |
|---|---|
| private Attribute[] attributes | |
| classname | back to summary |
|---|---|
| private String classname | |
| classnameIdx | back to summary |
|---|---|
| private int classnameIdx | |
| computedNestedTypeStatus | back to summary |
|---|---|
| private boolean computedNestedTypeStatus | |
| cpool | back to summary |
|---|---|
| private ConstantPool cpool | |
| fields | back to summary |
|---|---|
| private Field[] fields | |
| fileName | back to summary |
|---|---|
| private String fileName | |
| interfacenames | back to summary |
|---|---|
| private String[] interfacenames | |
| interfaces | back to summary |
|---|---|
| private int[] interfaces | |
| isAnonymous | back to summary |
|---|---|
| private boolean isAnonymous | |
| isGeneric | back to summary |
|---|---|
| private boolean isGeneric | |
| isNested | back to summary |
|---|---|
| private boolean isNested | |
| major | back to summary |
|---|---|
| private int major | |
| methods | back to summary |
|---|---|
| private Method[] methods | |
| minor | back to summary |
|---|---|
| private int minor | |
| NoInterfaceIndices | back to summary |
|---|---|
| private static final int[] NoInterfaceIndices | |
| NoInterfaceNames | back to summary |
|---|---|
| private static final String[] NoInterfaceNames | |
| packageName | back to summary |
|---|---|
| private String packageName | |
| repository | back to summary |
|---|---|
| private transient Repository repository In cases where we go ahead and create something, use the default SyntheticRepository, because we don't know any better. | |
| searchedForSignatureAttribute | back to summary |
|---|---|
| private boolean searchedForSignatureAttribute | |
| signatureAttribute | back to summary |
|---|---|
| private Signature signatureAttribute | |
| signatureAttributeString | back to summary |
|---|---|
| private String signatureAttributeString | |
| sourcefileName | back to summary |
|---|---|
| private String sourcefileName | |
| superclassname | back to summary |
|---|---|
| private String superclassname | |
| superclassnameIdx | back to summary |
|---|---|
| private int superclassnameIdx | |
| JavaClass | back to summary |
|---|---|
| public JavaClass(int classnameIndex, int superclassnameIndex, String filename, int major, int minor, int access_flags, ConstantPool cpool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes) | |
| accept | back to summary |
|---|---|
| public void accept(ClassVisitor v) Implements org. Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
| |
| computeNestedTypeStatus | back to summary |
|---|---|
| private final void computeNestedTypeStatus() | |
| dump | back to summary |
|---|---|
| public void dump(File file) throws IOException Dump class to a file.
| |
| dump | back to summary |
|---|---|
| public void dump(String file_name) throws IOException Dump class to a file named file_name.
| |
| dump | back to summary |
|---|---|
| public void dump(OutputStream file) throws IOException Dump Java class to output stream in binary format. | |
| dump | back to summary |
|---|---|
| public void dump(DataOutputStream file) throws IOException Dump Java class to output stream in binary format. | |
| getAllInterfaces | back to summary |
|---|---|
| public Collection Get all interfaces implemented by this JavaClass (transitively). | |
| getAnnotations | back to summary |
|---|---|
| public AnnotationGen[] getAnnotations() | |
| getAttributes | back to summary |
|---|---|
| public Attribute[] getAttributes() | |
| getBytes | back to summary |
|---|---|
public byte[] getBytes()
| |
| getClassName | back to summary |
|---|---|
public String getClassName()
| |
| getClassNameIndex | back to summary |
|---|---|
| public int getClassNameIndex() | |
| getConstantPool | back to summary |
|---|---|
| public ConstantPool getConstantPool() | |
| getField | back to summary |
|---|---|
| public Field getField(Field field) | |
| getFields | back to summary |
|---|---|
public Field[] getFields()
| |
| getFileName | back to summary |
|---|---|
public String getFileName()
| |
| getGenericSignature | back to summary |
|---|---|
| public final String getGenericSignature() Hunts for a signature attribute on the member and returns its contents. So where the 'regular' signature may be
Ljava/util/Vector; the signature attribute will tell us e.g. " | |
| getInterfaceIndices | back to summary |
|---|---|
public int[] getInterfaceIndices()
| |
| getInterfaceNames | back to summary |
|---|---|
public String[] getInterfaceNames()
| |
| getInterfaces | back to summary |
|---|---|
| public JavaClass[] getInterfaces() Get interfaces directly implemented by this JavaClass. | |
| getMajor | back to summary |
|---|---|
| public int getMajor() | |
| getMethod | back to summary |
|---|---|
public Method getMethod(Method m)
| |
| getMethod | back to summary |
|---|---|
| public Method getMethod(Constructor<?> c) | |
| getMethods | back to summary |
|---|---|
public Method[] getMethods()
| |
| getMinor | back to summary |
|---|---|
public int getMinor()
| |
| getPackageName | back to summary |
|---|---|
public String getPackageName()
| |
| getRepository | back to summary |
|---|---|
| public Repository getRepository() Gets the ClassRepository which holds its definition. By default this is the same as SyntheticRepository.getInstance(); | |
| getSignatureAttribute | back to summary |
|---|---|
| public final Signature getSignatureAttribute() | |
| getSourceFileName | back to summary |
|---|---|
public String getSourceFileName()
| |
| getSuperClass | back to summary |
|---|---|
public JavaClass getSuperClass()
| |
| getSuperClasses | back to summary |
|---|---|
public JavaClass[] getSuperClasses()
| |
| getSuperclassName | back to summary |
|---|---|
public String getSuperclassName()
| |
| getSuperclassNameIndex | back to summary |
|---|---|
public int getSuperclassNameIndex()
| |
| implementationOf | back to summary |
|---|---|
public boolean implementationOf(JavaClass inter)
| |
| indent | back to summary |
|---|---|
| private static final String indent(Object obj) | |
| instanceOf | back to summary |
|---|---|
| public final boolean instanceOf(JavaClass super_class) Equivalent to runtime "instanceof" operator.
| |
| isAnnotation | back to summary |
|---|---|
| public final boolean isAnnotation() Returns true if this class represents an annotation, i.e. it was a 'public @interface blahblah' declaration | |
| isAnonymous | back to summary |
|---|---|
| public final boolean isAnonymous() | |
| isClass | back to summary |
|---|---|
| public final boolean isClass() | |
| isEnum | back to summary |
|---|---|
| public final boolean isEnum() Returns true if this class represents an enum type | |
| isGeneric | back to summary |
|---|---|
| public boolean isGeneric() | |
| isNested | back to summary |
|---|---|
| public final boolean isNested() | |
| isSuper | back to summary |
|---|---|
| public final boolean isSuper() | |
| loadGenericSignatureInfoIfNecessary | back to summary |
|---|---|
| private void loadGenericSignatureInfoIfNecessary() | |
| setAttributes | back to summary |
|---|---|
public void setAttributes(Attribute[] attributes)
| |
| setClassName | back to summary |
|---|---|
public void setClassName(String class_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[] fields)
| |
| setFileName | back to summary |
|---|---|
| public void setFileName(String file_name) Set File name of class, aka SourceFile attribute value | |
| setInterfaceNames | back to summary |
|---|---|
public void setInterfaceNames(String[] interface_names)
| |
| setInterfaces | back to summary |
|---|---|
public void setInterfaces(int[] interfaces)
| |
| setMajor | back to summary |
|---|---|
| public void setMajor(int major) | |
| setMethods | back to summary |
|---|---|
| public void setMethods(Method[] methods) | |
| setMinor | back to summary |
|---|---|
| public void setMinor(int minor) | |
| setRepository | back to summary |
|---|---|
| public void setRepository(Repository repository) Sets the ClassRepository which loaded the JavaClass. Should be called immediately after parsing is done. | |
| setSourceFileName | back to summary |
|---|---|
| public void setSourceFileName(String source_file_name) Set absolute path to file this class was read from. | |
| setSuperclassName | back to summary |
|---|---|
public void setSuperclassName(String superclass_name)
| |
| setSuperclassNameIndex | back to summary |
|---|---|
public void setSuperclassNameIndex(int superclass_name_index)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |