public final class CtPrimitiveType extends CtClass
CtPrimitiveType represents a primitive type.
It is obtained from CtClass.booleanType, byteType, charType, debugDump, doubleType, floatType, intType, longType, qualifiedName, shortType, version, voidType| 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.
|
String |
getGetMethodDescriptor()
Returns the descriptor of the method for retrieving the value
from the wrapper object.
|
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.
|
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, 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, getDeclaredMethods, getDeclaringClass, getEnclosingBehavior, getEnclosingMethod, getField, getField, getFields, getGenericSignature, getInterfaces, getMethod, getMethods, getName, getNestedClasses, getPackageName, getRefClasses, getSimpleName, getSuperclass, getURL, hasAnnotation, hasAnnotation, 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, writeFilepublic 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 String getWrapperName()
java.lang.Integer.public String getGetMethodName()
intValue.public String getGetMethodDescriptor()
()I.public int getReturnOp()
javassit.bytecode.Opcode.IRETURN.public int getArrayType()
javassit.bytecode.Opcode.T_INT.public int getDataSize()
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.