javassist
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 |
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, getAnnotations, getAttribute, getAvailableAnnotations, getClassFile, getClassFile2, getClassInitializer, getClassPool, getComponentType, getConstructor, getConstructors, getDeclaredBehaviors, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethod, getDeclaredMethods, getDeclaringClass, getEnclosingMethod, getField, getFields, getInterfaces, getMethod, getMethods, getModifiers, getName, getNestedClasses, getPackageName, getRefClasses, getSimpleName, getSuperclass, getURL, instrument, instrument, isAnnotation, isArray, isEnum, isFrozen, isInterface, isModified, main, makeClassInitializer, makeNestedClass, makeUniqueName, prune, rebuildClassFile, removeConstructor, removeField, removeMethod, replaceClassName, replaceClassName, setAttribute, 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 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-2008 Shigeru Chiba. All Rights Reserved.