|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The PAO type system interface. Several new methods are added to the type system to facilitate the boxing and unboxing of primitive values.
| Method Summary | |
ClassType |
boxedType(PrimitiveType t)
Returns the class type used to represent boxed values of type t. |
MethodInstance |
getter(PrimitiveType t)
Returns the method instance for getting the primitive value from a boxed representation of primitive values of type t. |
MethodInstance |
primitiveEquals()
Returns the method instance for the runtime method that tests two boxed primitive values for equality. |
ConstructorInstance |
wrapper(PrimitiveType t)
Returns the constructor instance for the class used to represent boxed values of type t. |
| Method Detail |
public MethodInstance primitiveEquals()
Primitive.equals(Object, Object)public MethodInstance getter(PrimitiveType t)
t.
t - the primitive type for which we want the getter method to access
the primitive value of a boxed primitive value.
t.Boolean.booleanValue(),
Byte.byteValue(),
Character.charValue(),
Double.doubleValue(),
Float.floatValue(),
Integer.intValue(),
Long.longValue(),
Short.shortValue()public ConstructorInstance wrapper(PrimitiveType t)
t.
t - the PrimitiveType for which the constructor
instance of the class representing boxed values is returned.
t.public ClassType boxedType(PrimitiveType t)
t.
t - the PrimitiveType for which the type used to
represent boxed values is returned.
t.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||