public final class CtPrimitiveType extends CtClass
CtPrimitiveType
represents a primitive type.
It is obtained from CtClass
.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, debugWriteFile, debugWriteFile, defrost, detach, 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, 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, writeFile
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 CtClass
public int getModifiers()
javassist.Modifier
.getModifiers
in class CtClass
Modifier
public 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()
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.