CtPrimitiveType represents a primitive type.
It is obtained from CtClass.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private char | |
| private String | |
| private String | |
| private int | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv | CtPrimitiveType(String name, char desc, String wrapper, String methodName, String mDesc, int opcode, int atype, int size)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public char | |
| public String | getGetMethodDescriptor()
Returns the descriptor of the method for retrieving the value from the wrapper object. |
| public String | |
| public int | |
| public int | |
| public String | |
| public boolean | isPrimitive()
Overrides javassist. Returns |
| arrayType | back to summary |
|---|---|
| private int arrayType | |
| dataSize | back to summary |
|---|---|
| private int dataSize | |
| descriptor | back to summary |
|---|---|
| private char descriptor | |
| getMethodName | back to summary |
|---|---|
| private String getMethodName | |
| mDescriptor | back to summary |
|---|---|
| private String mDescriptor | |
| returnOp | back to summary |
|---|---|
| private int returnOp | |
| wrapperName | back to summary |
|---|---|
| private String wrapperName | |
| CtPrimitiveType | back to summary |
|---|---|
| pack-priv CtPrimitiveType(String name, char desc, String wrapper, String methodName, String mDesc, int opcode, int atype, int size) | |
| getArrayType | back to summary |
|---|---|
| public int getArrayType() Returns the array-type code representing the type.
It is used for the newarray instruction.
For example, if the type is int, then this method returns
| |
| getDataSize | back to summary |
|---|---|
| public int getDataSize() Returns the data size of the primitive type. If the type is long or double, this method returns 2. Otherwise, it returns 1. | |
| getDescriptor | back to summary |
|---|---|
| public char getDescriptor() Returns the descriptor representing this type. For example, if the type is int, then the descriptor is I. | |
| getGetMethodDescriptor | back to summary |
|---|---|
| public String getGetMethodDescriptor() Returns the descriptor of the method for retrieving the value
from the wrapper object.
For example, if the type is int, then the method descriptor is
| |
| getGetMethodName | back to summary |
|---|---|
| public String getGetMethodName() Returns the name of the method for retrieving the value
from the wrapper object.
For example, if the type is int, then the method name is
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Overrides javassist. Returns the modifiers for this type.
For decoding, use | |
| getReturnOp | back to summary |
|---|---|
| public int getReturnOp() Returns the opcode for returning a value of the type.
For example, if the type is int, then the returned opcode is
| |
| getWrapperName | back to summary |
|---|---|
| public String getWrapperName() Returns the name of the wrapper class.
For example, if the type is int, then the wrapper class is
| |
| isPrimitive | back to summary |
|---|---|
| public boolean isPrimitive() Overrides javassist. Returns
| |