Companion

object Companion

Functions

Link copied to clipboard
fun A_Type.acceptsArgTypesFromFunctionType(functionType: A_Type): Boolean

Answer whether the argument types supported by the specified function type are acceptable argument types for invoking a function whose type is the receiver.

Link copied to clipboard
fun A_Type.acceptsListOfArgTypes(argTypes: List<A_Type>): Boolean

Answer whether these are acceptable argument types for invoking a function whose type is the receiver.

Link copied to clipboard
fun A_Type.acceptsListOfArgValues(argValues: List<A_BasicObject>): Boolean

Answer whether these are acceptable arguments for invoking a function whose type is the receiver.

Link copied to clipboard
fun A_Type.acceptsTupleOfArgTypes(argTypes: A_Tuple): Boolean

Answer whether these are acceptable argument types for invoking a function that is an instance of the receiver. There may be more entries in the tuple than are required by the function type.

Link copied to clipboard
fun A_Type.acceptsTupleOfArguments(arguments: A_Tuple): Boolean

Answer whether these are acceptable arguments for invoking a function that is an instance of the receiver. There may be more entries in the tuple than are required by the function type.

Link copied to clipboard
fun argsTupleTypeStatic(self: AvailObject): AvailObject

Static method to extract the argsTupleType of a function type.

Link copied to clipboard
fun A_Type.computeInstanceTag(): TypeTag

Given an A_Type, compute the most specific TypeTag that is ensured for instances of that type.

Link copied to clipboard
fun A_Type.computeSuperkind(): A_Type

Compute a type that is an ancestor of the receiver, but is not an enumeration. Choose the most specific such type. Fail if the receiver is not itself an enumeration. Also fail if the receiver is bottom.

Link copied to clipboard
fun A_Type.couldEverBeInvokedWith(argRestrictions: List<TypeRestriction>): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.hasObjectInstance(potentialInstance: AvailObject): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSubtypeOf(aType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun isSubtypeOfStatic(self: AvailObject, aType: A_Type): Boolean
Link copied to clipboard
fun A_Type.isSupertypeOfCompiledCodeType(aCompiledCodeType: A_Type): Boolean
Link copied to clipboard
fun A_Type.isSupertypeOfContinuationType(aContinuationType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfEnumerationType(anEnumerationType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfFiberType(aFiberType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfFunctionType(aFunctionType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfIntegerRangeType(anIntegerRangeType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfListNodeType(aListNodeType: A_Type): Boolean

Answer whether the receiver, a type, is a supertype of the given list phrase type.

Link copied to clipboard
fun A_Type.isSupertypeOfLiteralTokenType(aLiteralTokenType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfMapType(aMapType: AvailObject): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfObjectType(anObjectType: AvailObject): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfPhraseType(aPhraseType: A_Type): Boolean
Link copied to clipboard
fun A_Type.isSupertypeOfPojoBottomType(aPojoType: A_Type): Boolean
Link copied to clipboard
fun A_Type.isSupertypeOfPojoType(aPojoType: A_Type): Boolean

Dispatch to the descriptor

Link copied to clipboard
fun A_Type.isSupertypeOfPrimitiveTypeEnum(primitiveTypeEnum: PrimitiveTypeDescriptor.Types): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfSetType(aSetType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfTokenType(aTokenType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfTupleType(aTupleType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.isSupertypeOfVariableType(aVariableType: A_Type): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.phraseKindIsUnder(expectedPhraseKind: PhraseTypeDescriptor.PhraseKind): Boolean

Also declared in A_Phrase, so the same operation applies both to phrases and to phrase types.

Link copied to clipboard
fun A_Type.rangeIncludesLong(aLong: Long): Boolean
Link copied to clipboard
fun A_Type.trimType(typeToRemove: A_Type): A_Type

Answer a type that includes at least all values from the receiver that aren't also in the typeToRemove. Note that the answer can be conservatively large, and is typically just the receiver, even if the types overlap.

Link copied to clipboard
fun A_Type.tupleOfTypesFromTo(startIndex: Int, endIndex: Int): A_Tuple

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeAtIndex(index: Int): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun typeAtIndexStatic(self: AvailObject, index: Int): AvailObject
Link copied to clipboard
fun A_Type.typeIntersection(another: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfCompiledCodeType(aCompiledCodeType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfContinuationType(aContinuationType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfFiberType(aFiberType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfFunctionType(aFunctionType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfIntegerRangeType(anIntegerRangeType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfListNodeType(aListNodeType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfLiteralTokenType(aLiteralTokenType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfMapType(aMapType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfObjectType(anObjectType: AvailObject): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfPhraseType(aPhraseType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfPojoFusedType(aFusedPojoType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfPojoType(aPojoType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfPojoUnfusedType(anUnfusedPojoType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfPrimitiveTypeEnum(primitiveTypeEnum: PrimitiveTypeDescriptor.Types): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfSetType(aSetType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfTokenType(aTokenType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeIntersectionOfTupleType(aTupleType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeIntersectionOfVariableType(aVariableType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnion(another: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfCompiledCodeType(aCompiledCodeType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfContinuationType(aContinuationType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfFiberType(aFiberType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfFunctionType(aFunctionType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfIntegerRangeType(anIntegerRangeType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfListNodeType(aListNodeType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfLiteralTokenType(aLiteralTokenType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfMapType(aMapType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfObjectType(anObjectType: AvailObject): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfPhraseType(aPhraseType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfPojoFusedType(aFusedPojoType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfPojoType(aPojoType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfPojoUnfusedType(anUnfusedPojoType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfPrimitiveTypeEnum(primitiveTypeEnum: PrimitiveTypeDescriptor.Types): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfSetType(aSetType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfTokenType(aTokenType: A_Type): A_Type
Link copied to clipboard
fun A_Type.typeUnionOfTupleType(aTupleType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun A_Type.typeUnionOfVariableType(aVariableType: A_Type): A_Type

Dispatch to the descriptor.

Link copied to clipboard
fun typeUnionStatic(self: AvailObject, another: A_Type): AvailObject
Link copied to clipboard
fun A_Type.unionOfTypesAtThrough(startIndex: Int, endIndex: Int): A_Type

Dispatch to the descriptor.

Properties

Link copied to clipboard
val A_Type.argsTupleType: A_Type

Answer the tuple type describing this function type's argument types.

Link copied to clipboard
val argsTupleTypeMethod: CheckedMethod
Link copied to clipboard
val A_Type.contentType: A_Type

Answer the type of elements that this set type's sets may hold.

Link copied to clipboard
val A_Type.declaredExceptions: A_Set

Also declared in A_Phrase for block phrases and send phrases.

Link copied to clipboard
val A_Type.defaultType: A_Type

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.fieldTypeMap: A_Map

Given an object type, answer its map from fields to types.

Link copied to clipboard
val A_Type.fieldTypeTuple: A_Tuple
Link copied to clipboard
val A_Type.functionType: A_Type
Link copied to clipboard
val A_Type.instance: AvailObject
Link copied to clipboard
val A_Type.instanceCount: A_Number
Link copied to clipboard
val A_Type.instances: A_Set
Link copied to clipboard
val A_Type.instanceTag: TypeTag

Given an A_Type, determine which TypeTag its instances will comply with.

Link copied to clipboard
val isSubtypeOfMethod: CheckedMethod
Link copied to clipboard
val A_Type.keyType: A_Type

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.literalType: A_Type
Link copied to clipboard
val A_Type.lowerBound: A_Number

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.lowerInclusive: Boolean

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.objectTypeVariant: ObjectLayoutVariant

Extract the ObjectLayoutVariant from an object type.

Link copied to clipboard
val A_Type.parent: A_BasicObject

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.phraseKind: PhraseTypeDescriptor.PhraseKind

Also declared in A_Phrase for phrases, not just phrase types.

Link copied to clipboard
val A_Type.phraseTypeExpressionType: A_Type

Return the phrase type's expression type, which is the type of object that will be produced by phrases of that type.

Link copied to clipboard
val A_Type.readType: A_Type
Link copied to clipboard
val A_Type.returnType: A_Type

Also declared in A_Phrase for block phrases and send phrases.

Link copied to clipboard
val A_Type.sizeRange: A_Type

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.subexpressionsTupleType: A_Type

Answer the type of the subexpressions tuple that instances (list phrases) of me (a list phrase type) must have.

Link copied to clipboard
val A_Type.systemStyleForType: StylerDescriptor.SystemStyle?

The appropriate SystemStyle for the receiver, based on whether it's a metatype or just an ordinary type. Answer null if the type does not indicate any particular system style.

Link copied to clipboard
val A_Type.tokenType: TokenDescriptor.TokenType
Link copied to clipboard
val typeAtIndexMethod: CheckedMethod
Link copied to clipboard
val A_Type.typeTuple: A_Tuple

Dispatch to the descriptor.

Link copied to clipboard
val typeUnionMethod: CheckedMethod
Link copied to clipboard
val A_Type.typeVariables: A_Map
Link copied to clipboard
val A_Type.upperBound: A_Number

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.upperInclusive: Boolean

Dispatch to the descriptor.

Link copied to clipboard
val A_Type.valueType: A_Type
Link copied to clipboard
val A_Type.writeType: A_Type