Libraries.Language.Compile.Symbol.Type Documentation

Inherits from: Libraries.Language.Object

Variables Table

VariablesDescription
text TEXT_PRIMITIVE_KEY
text BOOLEAN_OBJECT_KEY
text UNDEFINED_KEY
text NUMBER_OBJECT_KEY
text INTEGER_PRIMITIVE_KEY
text INTEGER_OBJECT_KEY
text ERROR_KEYThis is the value of the boolean if it happens to be a constant.
text NUMBER_PRIMITIVE_KEY
text TEXT_OBJECT_KEY
text VOID_KEY
text OBJECT_KEY
text BOOLEAN_PRIMITIVE_KEY

Actions Documentation

AddGeneric(Libraries.Language.Compile.Symbol.Type type)

This action adds a generic to this type as a subtype.

Parameters

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Example

Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)

ConvertStaticKeyToBytecodeInterfacePath()

Return

text

ConvertStaticKeyToBytecodePath()

Return

text

ConvertStaticKeyToJavaScriptName()

Return

text

ConvertToNonPrimitiveStaticKey()

Returns a static key for the object version of this type, even if it is a primitive. It does not change the type itself.

Return

text:

ConvertToSignatureFromField(boolean isGetter)

it is an object, so return its interface type

Parameters

  • boolean isGetter

Return

text:

ConvertToSignatureFromFieldInterface(boolean isGetter)

Parameters

  • boolean isGetter

Return

text

ConvertTypeToBytecodeSignature()

This action changes this type to represent a generic, with the given name that is currently its static key.

Return

text:

ConvertTypeToBytecodeSignatureInterface()

it is an object, so return its interface type

Return

text:

Copy()

This is the value of the text if it happens to be a constant.

Return

Libraries.Language.Compile.Symbol.Type:

CopyFrom(Libraries.Language.Compile.Symbol.Type type)

This action copies Type type into the curren object's fields.

Parameters

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

Example

use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)

GetBooleanConstant()

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Return

boolean:

GetBytecodeSize()

This is the value of the number if it happens to be a constant.

Return

integer:

GetDisplayName()

This is the value of the integer if it happens to be a constant.

Return

text:

GetGeneric(integer location)

This action returns a top-level generic at a particular location. If, for example, I have: T>, M>, this action would return the generic M.

Parameters

  • integer location

Return

Libraries.Language.Compile.Symbol.Type:

GetGenerics()

This action returns all top level generics. Each of these generics may have subgenerics.

Return

Libraries.Containers.Iterator:

GetHashCode()

This action gets the hash code for an object.

Return

integer: The integer hash code of the object.

Example

Object o
integer hash = o:GetHashCode()

GetIntegerConstant()

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Return

integer:

GetMappedGeneric()

This action copies Type type into the curren object's fields.

Return

text:

GetName()

This action returns all top level generics. Each of these generics may have subgenerics.

Return

text:

GetNameWithGenerics()

This action returns a top-level generic at a particular location. If, for example, I have: T>, M>, this action would return the generic M.

Return

text:

GetNameWithMappedGenerics()

This action sets up this type value to be equivalent to a particular generic in a generic list. For example, if we have Array, and the array class is defined at class Array then returning "type" would be equivalent to Item in this instance.

Return

text:

GetNumberConstant()

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Return

number:

GetNumberGenerics()

This action returns the number of top level generics. Nested generics are not taken into account by this action. For example, if I had T, this would return 1. If I had T>, this action would still return 1. If I had: T, V>, this action would return 2.

Return

integer:

GetStaticKey()

This action returns the number of top level generics. Nested generics are not taken into account by this action. For example, if I had T, this would return 1. If I had T>, this action would still return 1. If I had: T, V>, this action would return 2.

Return

text:

GetStaticKeyWithGenerics()

This action returns whether or not this action has generics.

Return

text:

GetStaticKeyWithMappedGenerics()

This action adds a generic to this type as a subtype.

Return

text:

GetTextConstant()

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Return

text:

HasGenerics()

This action returns whether or not this action has generics.

Return

boolean:

IsBoolean()

Return

boolean

IsBooleanObject()

Return

boolean

IsConstant()

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Return

boolean:

IsInteger()

Return

boolean

IsIntegerObject()

Return

boolean

IsMappedToGeneric()

Returns a static key for the object version of this type, even if it is a primitive. It does not change the type itself.

Return

boolean:

IsNumber()

Return

boolean

IsNumberObject()

Return

boolean

IsPrimitive()

Return

boolean

IsText()

Return

boolean

IsTextObject()

Return

boolean

IsUndefined()

Return

boolean

IsVoid()

Return

boolean

MapToGeneric(text key)

This action sets up this type value to be equivalent to a particular generic in a generic list. For example, if we have Array, and the array class is defined at class Array then returning "type" would be equivalent to Item in this instance.

Parameters

  • text key

SetBooleanConstant(boolean value)

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Parameters

  • boolean value

SetIntegerConstant(integer value)

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Parameters

  • integer value

SetIsConstant(boolean final)

This action returns a constant value representing a known constant for this type. If this type is not declared as a constant, this action is invalid.

Parameters

  • boolean final

SetNumberConstant(number value)

Parameters

  • number value

SetTextConstant(text value)

Parameters

  • text value

SetToBoolean()

SetToBooleanObject()

SetToGeneric()

This action changes this type to represent a generic, with the given name that is currently its static key.

SetToInteger()

SetToIntegerObject()

SetToNumber()

SetToNumberObject()

SetToObject(Libraries.Language.Compile.Symbol.Class clazz)

SetToObject(Libraries.Language.Compile.QualifiedName name)

SetToObject(text name)

Parameters

  • text name

SetToText()

SetToTextObject()

SetToUndefined()

SetToVoid()