private static class Compiler.PrimitiveInfo
extends java.lang.Object
java.lang.Integer for type int);
intValue for java.lang.Integer).
This information is stored in the static Compiler.PRIMITIVES map, such
that it can be looked up when assembling bytecode instructions (in
place of switch statements).
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
signature
BaseType identifier for this primitive type
|
(package private) java.lang.String |
unwrapMethod
Name of wrapper class method used to unwrap primitive value
|
(package private) int |
width
Width (in 32-bit slots) of a data value of this primitive type
|
(package private) java.lang.Class |
wrapperClass
Class used to wrapper data values of this primitive type
|
| Constructor and Description |
|---|
PrimitiveInfo(int width,
java.lang.String signature,
java.lang.Class wrapperClass,
java.lang.String unwrapMethod)
Convenience constructor which stores all required data fields.
|
int width
java.lang.String signature
java.lang.Class wrapperClass
java.lang.String unwrapMethod
PrimitiveInfo(int width,
java.lang.String signature,
java.lang.Class wrapperClass,
java.lang.String unwrapMethod)
width - Data value width.signature - BaseType identifier.wrapperClass - Wrapper classunwrapMethod - Name of unwrap method.