polyglot.ext.pao.types
Interface PaoTypeSystem

All Superinterfaces:
TypeSystem
All Known Implementing Classes:
PaoTypeSystem_c

public interface PaoTypeSystem
extends TypeSystem

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.
 
Methods inherited from interface polyglot.types.TypeSystem
Abstract, ArithmeticException, arrayOf, arrayOf, arrayOf, arrayOf, ArrayStoreException, Boolean, Byte, callValid, canCoerceToString, canOverride, Char, checkAccessFlags, checkClassConformance, checkConstructorFlags, checkCycles, checkFieldFlags, checkInitializerFlags, checkLocalClassFlags, checkLocalFlags, checkMemberClassFlags, checkMethodFlags, checkOverride, checkTopLevelClassFlags, Class, classAccessible, classAccessibleFromPackage, ClassCastException, classContextResolver, Cloneable, constructorInstance, createClassType, createClassType, createClassType, createClassType, createContext, createNewFlag, createPackage, createPackage, defaultClassInitializer, defaultConstructor, defaultPackageImports, descendsFrom, Double, equals, Error, Exception, fieldInstance, Final, findConstructor, findConstructor, findField, findField, findField, findMemberClass, findMemberClass, findMemberClass, findMethod, findMethod, flagsForBits, Float, forName, getTransformedClassName, getTypeEncoderRootSet, hasEnclosingInstance, hasFormals, hasMethod, hasMethodNamed, implemented, importTable, importTable, initialize, initializerInstance, Int, Interface, interfaces, isAccessible, isCanonical, isCastValid, isEnclosed, isImplicitCastValid, isSameMethod, isSubtype, isThrowable, isUncheckedException, leastCommonAncestor, loadedResolver, localInstance, Long, methodCallValid, methodInstance, moreSpecific, Native, NoFlags, Null, NullPointerException, numericConversionValid, numericConversionValid, Object, OutOfBoundsException, overrides, packageContextResolver, packageExists, packageForName, packageForName, parsedResolver, placeHolder, placeHolder, primitiveForName, Private, promote, promote, Protected, Public, RuntimeException, Serializable, Short, Static, staticTarget, StrictFP, String, superType, Synchronized, systemResolver, Throwable, throwsSubset, Transient, translateArray, translateClass, translatePackage, translatePrimitive, typeForName, uncheckedExceptions, unknownPackage, unknownQualifier, unknownType, Void, Volatile, wrapperTypeString
 

Method Detail

primitiveEquals

MethodInstance primitiveEquals()
Returns the method instance for the runtime method that tests two boxed primitive values for equality.

Returns:
the method instance for the runtime method that tests two boxed primitive values for equality.
See Also:
Primitive.equals(Object, Object)

getter

MethodInstance getter(PrimitiveType t)
Returns the method instance for getting the primitive value from a boxed representation of primitive values of type t.

Parameters:
t - the primitive type for which we want the getter method to access the primitive value of a boxed primitive value.
Returns:
the method instance for getting the primitive value from a boxed representation of primitive values of type t.
See Also:
Boolean.booleanValue(), Byte.byteValue(), Character.charValue(), Double.doubleValue(), Float.floatValue(), Integer.intValue(), Long.longValue(), Short.shortValue()

wrapper

ConstructorInstance wrapper(PrimitiveType t)
Returns the constructor instance for the class used to represent boxed values of type t.

Parameters:
t - the PrimitiveType for which the constructor instance of the class representing boxed values is returned.
Returns:
the constructor instance for the class used to represent boxed values of type t.

boxedType

ClassType boxedType(PrimitiveType t)
Returns the class type used to represent boxed values of type t.

Parameters:
t - the PrimitiveType for which the type used to represent boxed values is returned.
Returns:
the class type used to represent boxed values of type t.