public interface TypeInfo
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCastName()
Get the internal name of the class which should be used with a CHECKCAST
instruction when casting an
Object returned from a call to
InvocationHandler.invoke to an instance of this data type. |
java.lang.String |
getDescriptor()
Get the descriptor which is used internally within the JVM to represent
this data type.
|
int |
getLoadInsn()
Get the ASM constant representing the instruction used to load an
instance of this data type from a local variable and push it onto the
operand stack (e.g., ALOAD, ILOAD, etc.).
|
int |
getReturnInsn()
Get the ASM constant representing the instruction used to pop an
instance of this data type from the operand stack and return it from a
method (e.g., ARETURN, IRETURN, etc.).
|
java.lang.Class<?> |
getType()
Get the class object associated with this data type.
|
MethodInfo |
getUnwrapInfo()
Get information for the method, if any, used to unwrap instances of this
data type from a J2SE data wrapper object.
|
int |
getWidth()
Get the width, in stack or local variable slots for instances of this
data type, when compiling bytecode instructions which manipulate such
data.
|
MethodInfo |
getWrapInfo()
Get information for the method, if any, used to wrap instances of this
data type in a J2SE data wrapper object.
|
java.lang.Class<?> getType()
java.lang.String getDescriptor()
java.lang.String getCastName()
Object
returned from a call to
InvocationHandler.invoke
to an instance of this data type.null
for the void
return type.MethodInfo getWrapInfo()
null
for non-primitive data types.MethodInfo getUnwrapInfo()
null
for non-primitive data types.int getWidth()
long
and double
types, and 1 for all others.int getLoadInsn()
int getReturnInsn()
Note: the RETURN instruction (used for return type void
)
does not pop an operand off the stack; it simply returns.