Libraries.Language.Compile.Symbol.Type Documentation
Inherits from: Libraries.Language.Object
Variables Table
Variables | Description |
---|---|
text INTEGER_PRIMITIVE_KEY | |
text BOOLEAN_OBJECT_KEY | |
text VOID_KEY | |
text ERROR_KEY | This is the value of the boolean if it happens to be a constant. |
text TEXT_OBJECT_KEY | |
text BOOLEAN_PRIMITIVE_KEY | |
text NUMBER_PRIMITIVE_KEY | |
text TEXT_PRIMITIVE_KEY | |
text OBJECT_KEY | |
text INTEGER_OBJECT_KEY | |
text UNDEFINED_KEY | |
text NUMBER_OBJECT_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
- Libraries.Language.Object: The object to compare to.
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
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
- Libraries.Language.Object: The to be compared.
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
Parameters
- integer location
Return
GetGenerics()
This action returns all top level generics. Each of these generics may have subgenerics.
Return
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
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
- 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)
Parameters
SetToObject(Libraries.Language.Compile.QualifiedName name)
Parameters
SetToObject(text name)
Parameters
- text name
SetToText()
SetToTextObject()
SetToUndefined()
SetToVoid()
On this page
Variables TableAction Documentation- AddGeneric(Libraries.Language.Compile.Symbol.Type type)
- Compare(Libraries.Language.Object object)
- ConvertStaticKeyToBytecodeInterfacePath()
- ConvertStaticKeyToBytecodePath()
- ConvertStaticKeyToJavaScriptName()
- ConvertToNonPrimitiveStaticKey()
- ConvertToSignatureFromField(boolean isGetter)
- ConvertToSignatureFromFieldInterface(boolean isGetter)
- ConvertTypeToBytecodeSignature()
- ConvertTypeToBytecodeSignatureInterface()
- Copy()
- CopyFrom(Libraries.Language.Compile.Symbol.Type type)
- Equals(Libraries.Language.Object object)
- GetBooleanConstant()
- GetBytecodeSize()
- GetDisplayName()
- GetGeneric(integer location)
- GetGenerics()
- GetHashCode()
- GetIntegerConstant()
- GetMappedGeneric()
- GetName()
- GetNameWithGenerics()
- GetNameWithMappedGenerics()
- GetNumberConstant()
- GetNumberGenerics()
- GetStaticKey()
- GetStaticKeyWithGenerics()
- GetStaticKeyWithMappedGenerics()
- GetTextConstant()
- HasGenerics()
- IsBoolean()
- IsBooleanObject()
- IsConstant()
- IsInteger()
- IsIntegerObject()
- IsMappedToGeneric()
- IsNumber()
- IsNumberObject()
- IsPrimitive()
- IsText()
- IsTextObject()
- IsUndefined()
- IsVoid()
- MapToGeneric(text key)
- SetBooleanConstant(boolean value)
- SetIntegerConstant(integer value)
- SetIsConstant(boolean final)
- SetNumberConstant(number value)
- SetTextConstant(text value)
- SetToBoolean()
- SetToBooleanObject()
- SetToGeneric()
- SetToInteger()
- SetToIntegerObject()
- SetToNumber()
- SetToNumberObject()
- SetToObject(Libraries.Language.Compile.Symbol.Class clazz)
- SetToObject(Libraries.Language.Compile.QualifiedName name)
- SetToObject(text name)
- SetToText()
- SetToTextObject()
- SetToUndefined()
- SetToVoid()