|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.ext.jl.types.TypeSystem_c polyglot.ext.pao.types.PaoTypeSystem_c
public class PaoTypeSystem_c
Implementation of the PAO type system interface. Also overrides some
methods of TypeSystem_c
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class polyglot.ext.jl.types.TypeSystem_c |
---|
TypeSystem_c.MostSpecificComparator |
Field Summary |
---|
Fields inherited from class polyglot.ext.jl.types.TypeSystem_c |
---|
ACCESS_FLAGS, BOOLEAN_, BYTE_, CHAR_, CLASS_, CONSTRUCTOR_FLAGS, defaultClassInit, DOUBLE_, FIELD_FLAGS, flagsForName, FLOAT_, INITIALIZER_FLAGS, INT_, loadedResolver, LOCAL_CLASS_FLAGS, LOCAL_FLAGS, LONG_, MEMBER_CLASS_FLAGS, METHOD_FLAGS, NULL_, OBJECT_, parsedResolver, SHORT_, STRING_, systemResolver, THROWABLE_, TOP_LEVEL_CLASS_FLAGS, unknownPackage, unknownQualifier, unknownType, VOID_ |
Constructor Summary | |
---|---|
PaoTypeSystem_c()
|
Method Summary | |
---|---|
ClassType |
boxedType(PrimitiveType t)
Returns the class type used to represent boxed values of type t . |
ParsedClassType |
createClassType(LazyClassInitializer init,
Source fromSource)
Returns a new instance of PaoParsedClassType_c |
PrimitiveType |
createPrimitive(PrimitiveType.Kind kind)
Returns a new instance of PaoPrimitiveType_c |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PaoTypeSystem_c()
Method Detail |
---|
public PrimitiveType createPrimitive(PrimitiveType.Kind kind)
PaoPrimitiveType_c
createPrimitive
in class TypeSystem_c
PaoPrimitiveType_c
public ParsedClassType createClassType(LazyClassInitializer init, Source fromSource)
PaoParsedClassType_c
createClassType
in interface TypeSystem
createClassType
in class TypeSystem_c
PaoParsedClassType_c
public MethodInstance primitiveEquals()
PaoTypeSystem
primitiveEquals
in interface PaoTypeSystem
PaoTypeSystem.primitiveEquals()
public MethodInstance getter(PrimitiveType t)
PaoTypeSystem
t
.
getter
in interface PaoTypeSystem
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 ClassType boxedType(PrimitiveType t)
PaoTypeSystem
t
.
boxedType
in interface PaoTypeSystem
t
- the PrimitiveType
for which the type used to
represent boxed values is returned.
t
.public ConstructorInstance wrapper(PrimitiveType t)
PaoTypeSystem
t
.
wrapper
in interface PaoTypeSystem
t
- the PrimitiveType
for which the constructor
instance of the class representing boxed values is returned.
t
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |