Libraries.Language.Compile.Symbol.Type Documentation

Inherits from: Libraries.Language.Object

Summary

Variable Summary Table

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

Actions Summary Table

ActionsDescription
AddGeneric(Libraries.Language.Compile.Symbol.Type type)This action adds a generic to this type as a subtyp
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
ConvertStaticKeyToBytecodeInterfacePath()
ConvertStaticKeyToBytecodePath()
ConvertStaticKeyToJavaScriptName()
ConvertToNonPrimitiveStaticKey()Returns a static key for the object version of this type, even if it is a primitive.
ConvertToSignatureFromField(boolean isGetter)it is an object, so return its interface ty
ConvertToSignatureFromFieldInterface(boolean isGetter)
ConvertTypeToBytecodeSignature()This action changes this type to represent a generic, with the given name that is currently its static ke
ConvertTypeToBytecodeSignatureInterface()it is an object, so return its interface ty
Copy()This is the value of the text if it happens to be a constan
CopyFrom(Libraries.Language.Compile.Symbol.Type type)This action copies Type type into the curren object's field
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
GetBooleanConstant()This action returns a constant value representing a known constant for this type.
GetBytecodeSize()This is the value of the number if it happens to be a constan
GetDisplayName()This is the value of the integer if it happens to be a constan
GetGeneric(integer location)This action returns a top-level generic at a particular location.
GetGenerics()This action returns all top level generics.
GetHashCode()This action gets the hash code for an object.
GetIntegerConstant()This action returns a constant value representing a known constant for this type.
GetMappedGeneric()This action copies Type type into the curren object's field
GetName()This action returns all top level generics.
GetNameWithGenerics()This action returns a top-level generic at a particular location.
GetNameWithMappedGenerics()This action sets up this type value to be equivalent to a particular generic in a generic list.
GetNumberConstant()This action returns a constant value representing a known constant for this type.
GetNumberGenerics()This action returns the number of top level generics.
GetStaticKey()This action returns the number of top level generics.
GetStaticKeyWithGenerics()This action returns whether or not this action has generic
GetStaticKeyWithMappedGenerics()This action adds a generic to this type as a subtyp
GetTextConstant()This action returns a constant value representing a known constant for this type.
HasGenerics()This action returns whether or not this action has generic
IsBoolean()
IsBooleanObject()
IsConstant()This action returns a constant value representing a known constant for this type.
IsInteger()
IsIntegerObject()
IsMappedToGeneric()Returns a static key for the object version of this type, even if it is a primitive.
IsNumber()
IsNumberObject()
IsPrimitive()
IsText()
IsTextObject()
IsUndefined()
IsVoid()
MapToGeneric(text key)This action sets up this type value to be equivalent to a particular generic in a generic list.
SetBooleanConstant(boolean value)This action returns a constant value representing a known constant for this type.
SetIntegerConstant(integer value)This action returns a constant value representing a known constant for this type.
SetIsConstant(boolean final)This action returns a constant value representing a known constant for this type.
SetNumberConstant(number value)
SetTextConstant(text value)
SetToBoolean()
SetToBooleanObject()
SetToGeneric()This action changes this type to represent a generic, with the given name that is currently its static ke
SetToInteger()
SetToIntegerObject()
SetToNumber()
SetToNumberObject()
SetToObject(Libraries.Language.Compile.Symbol.Class clazz)
SetToObject(Libraries.Language.Compile.QualifiedName name)
SetToObject(text name)
SetToText()
SetToTextObject()
SetToUndefined()
SetToVoid()

Actions Documentation

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

This action adds a generic to this type as a subtyp

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.

Example Code

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

Parameters

Return

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

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 itsel

Return

text:

ConvertToSignatureFromField(boolean isGetter)

it is an object, so return its interface ty

Parameters

Return

text:

ConvertToSignatureFromFieldInterface(boolean isGetter)

Parameters

Return

text

ConvertTypeToBytecodeSignature()

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

Return

text:

ConvertTypeToBytecodeSignatureInterface()

it is an object, so return its interface ty

Return

text:

Copy()

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

Return

Libraries.Language.Compile.Symbol.Type:

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

This action copies Type type into the curren object's field

Parameters

Equals(Libraries.Language.Object object)

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

Example Code

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

Parameters

Return

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

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 invali

Return

boolean:

GetBytecodeSize()

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

Return

integer:

GetDisplayName()

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

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

Return

Libraries.Language.Compile.Symbol.Type:

GetGenerics()

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

Return

Libraries.Containers.Iterator:

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode

Return

integer: The integer hash code of the object.

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 invali

Return

integer:

GetMappedGeneric()

This action copies Type type into the curren object's field

Return

text:

GetName()

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

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 instanc

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 invali

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

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

Return

text:

GetStaticKeyWithGenerics()

This action returns whether or not this action has generic

Return

text:

GetStaticKeyWithMappedGenerics()

This action adds a generic to this type as a subtyp

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 invali

Return

text:

HasGenerics()

This action returns whether or not this action has generic

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 invali

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 itsel

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 instanc

Parameters

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 invali

Parameters

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 invali

Parameters

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 invali

Parameters

SetNumberConstant(number value)

Parameters

SetTextConstant(text value)

Parameters

SetToBoolean()

SetToBooleanObject()

SetToGeneric()

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

SetToInteger()

SetToIntegerObject()

SetToNumber()

SetToNumberObject()

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

Parameters

SetToObject(Libraries.Language.Compile.QualifiedName name)

Parameters

SetToObject(text name)

Parameters

SetToText()

SetToTextObject()

SetToUndefined()

SetToVoid()