Libraries.Language.Compile.Symbol.Type Documentation
Inherits from: Libraries.Language.Object
Summary
Variable Summary Table
Variables | Description |
---|---|
text INTEGER_PRIMITIVE_KEY | |
text UNDEFINED_KEY | |
text TEXT_OBJECT_KEY | |
text BOOLEAN_OBJECT_KEY | |
text ERROR_KEY | This is the value of the boolean if it happens to be a constant. |
text TEXT_PRIMITIVE_KEY | |
text NUMBER_PRIMITIVE_KEY | |
text INTEGER_OBJECT_KEY | |
text BOOLEAN_PRIMITIVE_KEY | |
text VOID_KEY | |
text NUMBER_OBJECT_KEY | |
text OBJECT_KEY |
Actions Summary Table
Actions | Description |
---|---|
AddGeneric(Libraries.Language.Compile.Symbol.Type type) | This action adds a generic to this type as a subtype. |
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 type |
ConvertToSignatureFromFieldInterface(boolean isGetter) | |
ConvertTypeToBytecodeSignature() | This action changes this type to represent a generic, with the given name that is currently its static key. |
ConvertTypeToBytecodeSignatureInterface() | it is an object, so return its interface type |
Copy() | This is the value of the text if it happens to be a constant. |
CopyFrom(Libraries.Language.Compile.Symbol.Type type) | This action copies Type type into the curren object's fields. |
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 constant. |
GetDisplayName() | This is the value of the integer if it happens to be a constant. |
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 fields. |
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 generics. |
GetStaticKeyWithMappedGenerics() | This action adds a generic to this type as a subtype. |
GetTextConstant() | This action returns a constant value representing a known constant for this type. |
HasGenerics() | This action returns whether or not this action has generics. |
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 key. |
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 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.
Example Code
Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)
Parameters
- Libraries.Language.Object: The object to compare to.
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 itself.
Return
text:
ConvertToSignatureFromField(boolean isGetter)
it is an object, so return its interface type
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 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.
Example Code
use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)
Parameters
- Libraries.Language.Object: The to be compared.
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 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
Parameters
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.
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 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
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
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
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
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
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 invalid.
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 invalid.
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 invalid.
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 key.