public final class CtPrimitiveType extends CtClass
CtPrimitiveType represents a primitive type.
It is obtained from CtClass.CtClass.DelayedFileOutputStream| Modifier and Type | Field and Description |
|---|---|
private int |
arrayType |
private int |
dataSize |
private char |
descriptor |
private java.lang.String |
getMethodName |
private java.lang.String |
mDescriptor |
private int |
returnOp |
private java.lang.String |
wrapperName |
booleanType, byteType, charType, debugDump, doubleType, floatType, intType, javaLangObject, longType, primitiveTypes, qualifiedName, shortType, version, voidType| Constructor and Description |
|---|
CtPrimitiveType(java.lang.String name,
char desc,
java.lang.String wrapper,
java.lang.String methodName,
java.lang.String mDesc,
int opcode,
int atype,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
getArrayType()
Returns the array-type code representing the type.
|
int |
getDataSize()
Returns the data size of the primitive type.
|
char |
getDescriptor()
Returns the descriptor representing this type.
|
java.lang.String |
getGetMethodDescriptor()
Returns the descriptor of the method for retrieving the value
from the wrapper object.
|
java.lang.String |
getGetMethodName()
Returns the name of the method for retrieving the value
from the wrapper object.
|
int |
getModifiers()
Returns the modifiers for this type.
|
int |
getReturnOp()
Returns the opcode for returning a value of the type.
|
java.lang.String |
getWrapperName()
Returns the name of the wrapper class.
|
boolean |
isPrimitive()
Returns
true if this object represents a primitive
Java type: boolean, byte, char, short, int, long, float, double,
or void. |
addConstructor, addField, addField, addField, addInterface, addMethod, checkModify, compress, debugWriteFile, debugWriteFile, defrost, detach, extendToString, freeze, getAccessorMaker, getAnnotation, getAnnotations, getAttribute, getAvailableAnnotations, getClassFile, getClassFile2, getClassInitializer, getClassPool, getComponentType, getConstructor, getConstructors, getDeclaredBehaviors, getDeclaredClasses, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethod, getDeclaredMethods, getDeclaringClass, getEnclosingMethod, getField, getField, getField2, getFields, getGenericSignature, getInterfaces, getMethod, getMethods, getName, getNestedClasses, getPackageName, getRefClasses, getSimpleName, getSuperclass, getURL, hasAnnotation, incGetCounter, instrument, instrument, isAnnotation, isArray, isEnum, isFrozen, isInterface, isModified, main, makeClassInitializer, makeFileOutput, makeNestedClass, makeUniqueName, prune, rebuildClassFile, removeConstructor, removeField, removeMethod, replaceClassName, replaceClassName, setAttribute, setGenericSignature, setInterfaces, setModifiers, setName, setSuperclass, stopPruning, subclassOf, subtypeOf, toBytecode, toBytecode, toClass, toClass, toClass, toString, writeFile, writeFileprivate char descriptor
private java.lang.String wrapperName
private java.lang.String getMethodName
private java.lang.String mDescriptor
private int returnOp
private int arrayType
private int dataSize
CtPrimitiveType(java.lang.String name,
char desc,
java.lang.String wrapper,
java.lang.String methodName,
java.lang.String mDesc,
int opcode,
int atype,
int size)
public boolean isPrimitive()
true if this object represents a primitive
Java type: boolean, byte, char, short, int, long, float, double,
or void.isPrimitive in class CtClasspublic int getModifiers()
javassist.Modifier.getModifiers in class CtClassModifierpublic char getDescriptor()
public java.lang.String getWrapperName()
java.lang.Integer.public java.lang.String getGetMethodName()
intValue.public java.lang.String getGetMethodDescriptor()
()I.public int getReturnOp()
javassit.bytecode.Opcode.IRETURN.public int getArrayType()
javassit.bytecode.Opcode.T_INT.public int getDataSize()