|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.curjent.impl.agent.BoxedInfo
final class BoxedInfo
Information for bytecode generation of primitive boxing and unboxing. This
class is used to generate bytecode for converting between primitives, such as
boolean
, and their boxed objects, such as Boolean
.
Field Summary | |
---|---|
(package private) String |
boxingDescriptor
The JVM method descriptor for boxing a primitive, such as "(Z)Ljava/lang/Boolean;" for Boolean.valueOf(int) . |
(package private) int |
defaultValueOpcode
ASM opcode for pushing the default primitive value onto the stack; e.g., ICONST_0 for int . |
private static Map<Class<?>,BoxedInfo> |
map
Maps the primitive types, such as Boolean.TYPE , to their
corresponding BoxedInfo instances. |
(package private) String |
typeInternal
Internal JVM name for the boxed type, such as "java/lang/Boolean"
for the java.lang.Boolean class. |
(package private) String |
unboxingDescriptor
The JVM method descriptor for unboxing a primitive, such as "()Z"
for Boolean.booleanValue() . |
(package private) String |
unboxingName
The method name for unboxing a primitive, such as booleanValue
for Boolean.booleanValue() . |
Constructor Summary | |
---|---|
private |
BoxedInfo(String typeInternal,
String boxingDescriptor,
String unboxingName,
String unboxingDescriptor,
int defaultValueOpcode)
Saves the boxed information the given type. |
Method Summary | |
---|---|
(package private) static BoxedInfo |
get(Class<?> type)
Returns boxing bytecode generation information for the given primitive type, such as Boolean.TYPE . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Map<Class<?>,BoxedInfo> map
Boolean.TYPE
, to their
corresponding BoxedInfo
instances.
final String typeInternal
"java/lang/Boolean"
for the java.lang.Boolean
class.
final String boxingDescriptor
"(Z)Ljava/lang/Boolean;"
for Boolean.valueOf(int)
.
final String unboxingName
booleanValue
for Boolean.booleanValue()
.
final String unboxingDescriptor
"()Z"
for Boolean.booleanValue()
.
final int defaultValueOpcode
ICONST_0
for int
.
Constructor Detail |
---|
private BoxedInfo(String typeInternal, String boxingDescriptor, String unboxingName, String unboxingDescriptor, int defaultValueOpcode)
Method Detail |
---|
static BoxedInfo get(Class<?> type)
Boolean.TYPE
. Returns null
if
the given type
is not a class for a primitive type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |