Companion

object Companion

Functions

Link copied to clipboard
fun byteRange(): A_Type

Answer the integer range type that corresponds to Java byte.

Link copied to clipboard
fun canonicalPojoType(probablePojoType: A_Type, allowMetas: Boolean): A_Type

Answer the canonical pojo type for the specified pojo type. This marshals certain pojo types to Avail types (e.g., java.lang.String -> string).

Link copied to clipboard
fun charRange(): A_Type

Answer the integer range type that corresponds to Java char.

Link copied to clipboard
fun computeValue(key: PojoTypeDescriptor.LRUCacheKey): AvailObject

Given an LRUCacheKey, compute the corresponding pojo type.

Link copied to clipboard
fun fusedTypeFromAncestorMap(ancestorMap: A_Map): AvailObject

Create a fused pojo type based on the given complete parameterization map. Each ancestor class and interface occurs as a key, with that class or interface's parameter tuple as the value.

Link copied to clipboard
fun intRange(): A_Type

Answer the integer range type that corresponds to Java int.

Link copied to clipboard
fun longRange(): A_Type

Answer the integer range type that corresponds to Java long.

Link copied to clipboard
fun marshalDefiningType(type: A_Type): Class<*>

Marshal the supplied A_Type, as though it will be used for Executable lookup, using a boxed Java class to represent a primitive Java type.

Link copied to clipboard
fun marshalTypes(types: A_Tuple): Array<Class<*>>

Marshal the supplied A_Tuple of A_Types.

Link copied to clipboard
fun mostGeneralPojoArrayType(): A_Type

Answer the most general pojo array type.

Link copied to clipboard
fun mostGeneralPojoType(): A_Type

Answer the most general pojo type.

Link copied to clipboard
fun pojoArrayType(elementType: A_Type, sizeRange: A_Type): AvailObject

Create a pojo type that represents an array of the specified element type.

Link copied to clipboard
fun pojoSelfType(): A_Type

Answer a special instance type that represents the self type of a Java class or interface.

Link copied to clipboard
fun pojoSelfTypeAtom(): A_Atom

Answer a special atom whose instance type represents the self type of a Java class or interface.

Link copied to clipboard
fun pojoTypeForClass(target: Class<*>): AvailObject

Create a pojo type for the specified Java class.

Link copied to clipboard
fun pojoTypeForClassWithTypeArguments(target: Class<*>, typeArgs: A_Tuple): AvailObject

Create a pojo type from the specified Java class and type arguments.

Link copied to clipboard
fun resolvePojoType(type: Type, typeVars: A_Map): A_Type

Resolve the specified type using the given type variables.

Link copied to clipboard
fun selfTypeForClass(target: Class<*>): AvailObject

Create a pojo self type for the specified Java class.

Link copied to clipboard
fun shortRange(): A_Type

Answer the integer range type that corresponds to Java short.

Link copied to clipboard
fun unmarshal(self: Any?, type: A_Type): AvailObject

Marshal the arbitrary Java object to its counterpart Avail object.