Top Description Fields Constructors Methods
javassist

pack-priv final Class CtArray

extends CtClass
Class Inheritance

Array types.

Field Summary

Modifier and TypeField and Description
private CtClass[]
protected ClassPool
Inherited from javassist.CtClass:
booleanTypebyteTypecharTypedebugDumpdoubleTypefloatTypeintTypejavaLangObjectlongTypeprimitiveTypesqualifiedNameshortTypeversionvoidType

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ClassPool
getClassPool()

Overrides javassist.CtClass.getClassPool.

Returns a ClassPool for this class.

public CtClass
getComponentType()

Overrides javassist.CtClass.getComponentType.

If this object represents an array, this method returns the component type of the array.

public CtConstructor[]
getConstructors()

Overrides javassist.CtClass.getConstructors.

Returns an array containing CtConstructor objects representing all the non-private constructors of the class.

public CtClass[]
getInterfaces()

Overrides javassist.CtClass.getInterfaces.

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.CtClass.getMethod.

Returns the method with the given name and signature.

public CtMethod[]
getMethods()

Overrides javassist.CtClass.getMethods.

Returns an array containing CtMethod objects representing all the non-private methods of the class.

public int
getModifiers()

Overrides javassist.CtClass.getModifiers.

Returns the modifiers for this class, encoded in an integer.

public CtClass
getSuperclass()

Overrides javassist.CtClass.getSuperclass.

Obtains the class object representing the superclass of the class.

public boolean
isArray()

Overrides javassist.CtClass.isArray.

Returns true if this object represents an array type.

public boolean
subtypeOf(CtClass clazz)

Overrides javassist.CtClass.subtypeOf.

Returns true if this class extends or implements clazz.

Inherited from javassist.CtClass:
addConstructoraddFieldaddFieldaddFieldaddInterfaceaddMethodcheckModifycompressdebugWriteFiledebugWriteFiledefrostdetachextendToStringfreezegetAccessorMakergetAnnotationgetAnnotationsgetAttributegetAvailableAnnotationsgetClassFilegetClassFile2getClassInitializergetConstructorgetDeclaredBehaviorsgetDeclaredClassesgetDeclaredConstructorgetDeclaredConstructorsgetDeclaredFieldgetDeclaredFieldgetDeclaredFieldsgetDeclaredMethodgetDeclaredMethodgetDeclaredMethodsgetDeclaredMethodsgetDeclaringClassgetEnclosingBehaviorgetEnclosingMethodgetFieldgetFieldgetField2getFieldsgetGenericSignaturegetNamegetNestedClassesgetPackageNamegetRefClassesgetSimpleNamegetURLhasAnnotationhasAnnotationincGetCounterinstrumentinstrumentisAnnotationisEnumisFrozenisInterfaceisKotlinisModifiedisPrimitivemainmakeClassInitializermakeFileOutputmakeNestedClassmakeUniqueNameprunerebuildClassFileremoveConstructorremoveFieldremoveMethodreplaceClassNamereplaceClassNamesetAttributesetGenericSignaturesetInterfacessetModifierssetNamesetSuperclassstopPruningsubclassOftoBytecodetoBytecodetoClasstoClasstoClasstoClasstoClasstoStringwriteFilewriteFile

Field Detail

interfacesback to summary
private CtClass[] interfaces
poolback to summary
protected ClassPool pool

Constructor Detail

CtArrayback to summary
pack-priv CtArray(String name, ClassPool cp)

Method Detail

getClassPoolback to summary
public ClassPool getClassPool()

Overrides javassist.CtClass.getClassPool.

Doc from javassist.CtClass.getClassPool.

Returns a ClassPool for this class.

Annotations
@Override
getComponentTypeback to summary
public CtClass getComponentType() throws NotFoundException

Overrides javassist.CtClass.getComponentType.

Doc from javassist.CtClass.getComponentType.

If this object represents an array, this method returns the component type of the array. Otherwise, it returns null.

Annotations
@Override
getConstructorsback to summary
public CtConstructor[] getConstructors()

Overrides javassist.CtClass.getConstructors.

Doc from javassist.CtClass.getConstructors.

Returns an array containing CtConstructor objects representing all the non-private constructors of the class.

Annotations
@Override
getInterfacesback to summary
public CtClass[] getInterfaces() throws NotFoundException

Overrides javassist.CtClass.getInterfaces.

Doc from javassist.CtClass.getInterfaces.

Obtains the class objects representing the interfaces implemented by the class or, if this object represents an interface, the interfaces extended by that interface.

Annotations
@Override
getMethodback to summary
public CtMethod getMethod(String name, String desc) throws NotFoundException

Overrides javassist.CtClass.getMethod.

Doc from javassist.CtClass.getMethod.

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.

Parameters
name:String

method name

desc:String

method descriptor

Annotations
@Override
getMethodsback to summary
public CtMethod[] getMethods()

Overrides javassist.CtClass.getMethods.

Doc from javassist.CtClass.getMethods.

Returns an array containing CtMethod objects representing all the non-private methods of the class. That array includes non-private methods inherited from the superclasses.

Annotations
@Override
getModifiersback to summary
public int getModifiers()

Overrides javassist.CtClass.getModifiers.

Doc from javassist.CtClass.getModifiers.

Returns the modifiers for this class, encoded in an integer. For decoding, use javassist.Modifier.

If the class is a static nested class (a.k.a. static inner class), the returned modifiers include Modifier.STATIC.

Annotations
@Override
getSuperclassback to summary
public CtClass getSuperclass() throws NotFoundException

Overrides javassist.CtClass.getSuperclass.

Doc from javassist.CtClass.getSuperclass.

Obtains the class object representing the superclass of the class. It returns null if this object represents the java.lang.Object class and thus it does not have the super class.

If this object represents an interface, this method always returns the java.lang.Object class. To obtain the super interfaces extended by that interface, call getInterfaces().

Annotations
@Override
isArrayback to summary
public boolean isArray()

Overrides javassist.CtClass.isArray.

Doc from javassist.CtClass.isArray.

Returns true if this object represents an array type.

Annotations
@Override
subtypeOfback to summary
public boolean subtypeOf(CtClass clazz) throws NotFoundException

Overrides javassist.CtClass.subtypeOf.

Doc from javassist.CtClass.subtypeOf.

Returns true if this class extends or implements clazz. It also returns true if this class is the same as clazz.

Annotations
@Override