| Modifier and Type | Method and Description |
|---|---|
| public ClassPool | |
| public CtClass | getComponentType()
Overrides javassist. If this object represents an array, this method returns the component type of the array. |
| public CtConstructor[] | getConstructors()
Overrides javassist. Returns an array containing |
| public CtClass[] | getInterfaces()
Overrides javassist. Obtains the class objects representing the interfaces implemented by the class or, if this object represents an interface, the interfaces extended by that interface. |
| public CtMethod | getMethod(String
method name name, String method descriptor desc)Overrides javassist. Returns the method with the given name and signature. |
| public CtMethod[] | getMethods()
Overrides javassist. Returns an array containing |
| public int | getModifiers()
Overrides javassist. Returns the modifiers for this class, encoded in an integer. |
| public CtClass | getSuperclass()
Overrides javassist. Obtains the class object representing the superclass of the class. |
| public boolean | |
| public boolean | subtypeOf(CtClass clazz)
Overrides javassist. Returns |
| interfaces | back to summary |
|---|---|
| private CtClass[] interfaces | |
| pool | back to summary |
|---|---|
| protected ClassPool pool | |
| CtArray | back to summary |
|---|---|
| pack-priv CtArray(String name, ClassPool cp) | |
| getClassPool | back to summary |
|---|---|
| public ClassPool getClassPool() Overrides javassist. Doc from javassist. Returns a
| |
| getComponentType | back to summary |
|---|---|
| public CtClass getComponentType() throws NotFoundException Overrides javassist. Doc from javassist. If this object represents an array, this method returns the component
type of the array. Otherwise, it returns
| |
| getConstructors | back to summary |
|---|---|
| public CtConstructor[] getConstructors() Overrides javassist. Doc from javassist. Returns an array containing
| |
| getInterfaces | back to summary |
|---|---|
| public CtClass[] getInterfaces() throws NotFoundException Overrides javassist. Doc from javassist. Obtains the class objects representing the interfaces implemented by the class or, if this object represents an interface, the interfaces extended by that interface.
| |
| getMethod | back to summary |
|---|---|
| public CtMethod getMethod(String name, String desc) throws NotFoundException Overrides javassist. Doc from javassist. Returns the method with the given name and signature. The returned method may be declared in a super class. The method signature is represented by a character string called method descriptor, which is defined in the JVM specification. | |
| getMethods | back to summary |
|---|---|
| public CtMethod[] getMethods() Overrides javassist. Doc from javassist. Returns an array containing
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Overrides javassist. Doc from javassist. Returns the modifiers for this class, encoded in an integer.
For decoding, use If the class is a static nested class (a.k.a. static inner class),
the returned modifiers include
| |
| getSuperclass | back to summary |
|---|---|
| public CtClass getSuperclass() throws NotFoundException Overrides javassist. Doc from javassist. Obtains the class object representing the superclass of the
class.
It returns null if this object represents the
If this object represents an interface, this method
always returns the
| |
| isArray | back to summary |
|---|---|
| public boolean isArray() Overrides javassist. Doc from javassist. Returns
| |
| subtypeOf | back to summary |
|---|---|
| public boolean subtypeOf(CtClass clazz) throws NotFoundException Overrides javassist. Doc from javassist. Returns
| |