Class
Package: Libraries.Language.Compile.Symbol · Inherits from: Libraries.Language.Compile.Location, Libraries.Language.Object, Libraries.Language.Compile.Symbol.Symbol
Actions
Add(Libraries.Language.Compile.Symbol.Action method)
get the index of the generic from the parent
Parameters
Returns
Add(Libraries.Language.Compile.Symbol.Variable variable)
Returns every class this class's code names and that was resolved, including classes from its own package, which need no use statement.
Parameters
Returns
AddFieldActionCall(Libraries.Language.Compile.Symbol.ActionCallResolution call)
Calls made in this class's fields' starting values, which run while an object is made, outside any action. Kept apart from the constructor's calls (Libraries.Language.Compile.Symbol.Action's GetActionCalls), which Quorum Studio reads.
Parameters
AddGeneric(text name)
Parameters
nametext
AddParentClass(Libraries.Language.Compile.Symbol.Class clazz)
Parameters
AddUnresolvedParent(Libraries.Language.Compile.QualifiedName name)
Parameters
AddUnresolvedUseStatement(Libraries.Language.Compile.QualifiedName name)
Returns the file on disk that contains the implementation of this class.
Parameters
AddUseLocation(Libraries.Language.Compile.Location location)
Parameters
locationLibraries.Language.Compile.Location
AddValidUse(Libraries.Language.Compile.Symbol.Class clazz)
This action returns those parents that are directly specified in the class. Object is also always included in this list.
Parameters
Returns
CalculateFieldHints(Libraries.Language.Compile.CompilerErrorManager errors)
This returns all classes that have valid use statements in the class.
Parameters
Compare(Libraries.Language.Object object)
Variable classInstance = call:variable
Parameters
objectLibraries.Language.Object
Returns
integer
ComputeGenericsTables(Libraries.Language.Compile.CompilerErrorManager compilerErrorManager)
Parameters
compilerErrorManagerLibraries.Language.Compile.CompilerErrorManager
ComputeVirtualActionTable(Libraries.Language.Compile.CompilerErrorManager errors)
This action looks at all actions listed in this class's declared action table, in addition to those actions declared in parents, and fills up a new virtual action table with all actions combined. If this action has an error, it is created and sent to the compiler error manager passed in.
Parameters
ConvertStaticKeyToBytecodeInterfacePath()
This action returns the static key formatted as a class name in Java bytecode.
Returns
text
ConvertStaticKeyToBytecodePath()
This action returns the static key formatted as a class name in Java bytecode.
Returns
text
ConvertStaticKeyToBytecodePathTypeName()
This action returns the static key formatted as a type name in Java bytecode.
Returns
text
ConvertStaticKeyToBytecodePathTypeNameInterface()
This action returns the static key formatted as a type name in Java bytecode. This version acts as an interface type.
Returns
text
ConvertStaticKeyToFieldPath()
This action returns the static key formatted as a class name in the style of a field.
Returns
text
ConvertStaticKeyToJavaScriptName()
This action returns the static key formatted as a class name in Java bytecode.
Returns
text
ConvertStaticKeyToParentActionName()
This action digs through the generics and, if it finds one by this name, returns its index. If no generic by this name is found, then this returns -1.
Returns
text
ConvertStaticKeyToParentFieldInterfaceName()
This action converts the static key of this class to a name that can be used by the compiler as a class field name. An example would be that Libraries.Language.Object becomes Libraries_Language_Object__.
Returns
text
ConvertStaticKeyToParentFieldName()
This action converts the static key of this class to a name that can be used by the compiler as a class field name. An example would be that Libraries.Language.Object becomes Libraries_Language_Object__.
Returns
text
ConvertStaticKeyToPluginPath()
This action returns the static key formatted as a plugin class name in Java bytecode.
Returns
text
ConvertStaticKeyToPluginPathTypeName()
This action returns the static key formatted as a plugin class type name in Java bytecode.
Returns
text
ConvertStaticKeyToUnderScore()
This action returns the static key formatted as a class name in Java bytecode.
Returns
text
ConvertToActionNameFromField(Libraries.Language.Compile.Symbol.Variable variable, boolean isGetter)
This action returns whether or not this particular class represents Libraries.Language.Object.
Parameters
variableLibraries.Language.Compile.Symbol.VariableisGetterboolean
Returns
text
GenerateSetterNameFromField(Libraries.Language.Compile.Symbol.Variable variable)
This action returns true if this class is either Libraries.Language.Errors.Error or is a subclass.
Parameters
Returns
text
GetAction(text key)
generate a hint for the getter
Parameters
keytext
Returns
GetActions()
This action returns a class from a name, like Object, for Libraries.Language.Object. It assumes that the name passed in is not resolved. Fully resolvable names (Libraries.Language.Object) will not be resolved by this action, and as such, need to be resolved from the symbol table.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Action>
GetConstructor()
This action returns whether or not the class has an explicity constructor defined. If it returns true, the user has defined a constructor. If it returns false, they have not.
Returns
GetDependencies()
Returns every class this class's code names and that was resolved, including classes from its own package, which need no use statement.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Class>
GetDirectParentClasses()
This action returns those parents that are directly specified in the class. Object is also always included in this list.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Class>
GetDisplayName()
This returns a key related to the package a class is contained in. For example, if a class's fully qualified name is Libraries.Language.Object, then this would return Libraries.Langauge. If the class's fully qualified name is Bob, then this would return the empty string, which indicates the default package.
Returns
text
GetFieldActionCalls()
Calls made in this class's fields' starting values, which run while an object is made, outside any action. Kept apart from the constructor's calls (Libraries.Language.Compile.Symbol.Action's GetActionCalls), which Quorum Studio reads.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.ActionCallResolution>
GetFile()
Returns the file on disk that contains the implementation of this class.
Returns
GetGeneric(integer location)
Parameters
locationinteger
Returns
text
GetGenericList()
This action returns a list of of all generic names. For example, if
the class is declared as A
Returns
text
GetHiddenVariableName()
This action returns the static key formatted as a type name in Java bytecode. This version acts as an interface type.
Returns
text
GetIndexOfGeneric(text name)
This action digs through the generics and, if it finds one by this name, returns its index. If no generic by this name is found, then this returns -1.
Parameters
nametext
Returns
integer
GetInterfaceName()
Returns
text
GetNameLocation()
Returns
GetNumberGenerics()
Returns
integer
GetPackage()
This action converts the static key of this class to a name that can be used by the compiler as a class field name. An example would be that Libraries.Language.Object becomes Libraries_Language_Object__.
Returns
GetPackageKey()
This returns a key related to the package a class is contained in. For example, if a class's fully qualified name is Libraries.Language.Object, then this would return Libraries.Langauge. If the class's fully qualified name is Bob, then this would return the empty string, which indicates the default package.
Returns
text
GetParentActions()
this is an error
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Action>
GetParentClass(text key)
This action returns the order in which parents should be instantiated. It provides an optimal ordering to ensure children do not get created before their parents.
Parameters
keytext
Returns
GetParentClasses()
Obtains a list of all parents reachable from this class. This includes parents and the parents of parents as a flattened list.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Class>
GetParentCreationOrder()
This action returns the order in which parents should be instantiated. It provides an optimal ordering to ensure children do not get created before their parents.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Class>
GetParentGenerics(text key)
Parameters
keytext
Returns
Libraries.Containers.Array<Libraries.Language.Compile.Symbol.Type>
GetParentSize()
get the parent corresponding to this key
Returns
integer
GetPluginName()
Returns the name of the plugin for this class.
Returns
text
GetStaticKey()
is there a name in the use list?
Returns
text
GetUnresolvedParents()
the parents have been resolved.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.QualifiedName>
GetUnresolvedUseStatement(text key)
it's fine to return undefined, because we just ignored the request
Parameters
keytext
Returns
GetUnresolvedUseStatements()
if it's the same name, but a different class, then throw an error
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.QualifiedName>
GetUseLocationIterator(Libraries.System.File file)
Parameters
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Location>
GetValidUseName(text name)
This action returns a class from a name, like Object, for Libraries.Language.Object. It assumes that the name passed in is not resolved. Fully resolvable names (Libraries.Language.Object) will not be resolved by this action, and as such, need to be resolved from the symbol table.
Parameters
nametext
Returns
GetValidUses()
This returns all classes that have valid use statements in the class.
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Class>
GetVariable(text key)
generate a hint for the getter
Parameters
keytext
Returns
GetVariables()
now check if there's a setter
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Variable>
GetVirtualAction(text key)
first check if there's a getter
Parameters
keytext
Returns
GetVirtualTable()
overriden
Returns
Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Action>
GuessBestUsage(Libraries.Language.Compile.Symbol.SymbolTable table, text key)
This action calculates the most likely class that might be meant from a key and returns undefined if it considers its guess to be non-exact. For example, if a name could mean multiple uses, it does this. This action should not be used except in the circumstances that type resolution is not complete and we need a stochastic best guess for the probable type, which is useful in code completion or potentially other applications.
Parameters
tableLibraries.Language.Compile.Symbol.SymbolTablekeytext
Returns
HasAction(text key)
the parent is now resolved.
Parameters
keytext
Returns
boolean
HasBlueprints()
Returns
boolean
HasConstructor()
This action returns whether or not the class has an explicity constructor defined. If it returns true, the user has defined a constructor. If it returns false, they have not.
Returns
boolean
HasGeneric(text name)
This action determines whether a generic of a particular name exists in this class.
Parameters
nametext
Returns
boolean
HasGenericMapToParent(text key)
Parameters
keytext
Returns
boolean
HasGenerics()
Returns
boolean
HasMainAction()
Sets a pointer to the file on disk that contains this class.
Returns
boolean
HasParentClass(text key)
This action returns true only if the action ResolveParents is currently executing for this class. It is useful in detecting circular inheritance, which is not allowed in Quorum.
Parameters
keytext
Returns
boolean
HasParentGenerics(text key)
Parameters
keytext
Returns
boolean
HasSystemAction()
check to see if the action is overriden
Returns
boolean
IsError()
This action returns true if this class is either Libraries.Language.Errors.Error or is a subclass.
Returns
boolean
IsImplicitClass()
now resolve the constructor, if one exists
Returns
boolean
IsObject()
This action returns whether or not this particular class represents Libraries.Language.Object.
Returns
boolean
IsProgramStartingClass()
Returns
boolean
IsResolved()
This action checks to see if all types have been resolved for this class.
Returns
boolean
IsResolvingParents()
This action returns true only if the action ResolveParents is currently executing for this class. It is useful in detecting circular inheritance, which is not allowed in Quorum.
Returns
boolean
IsStatic()
Returns
boolean
IsUserCode()
end
Returns
boolean
MapParentGenericToMe(text parentKey, integer index)
Parameters
parentKeytextindexinteger
Returns
integer
RemoveCallLocationsFromActions(Libraries.System.File file)
This action removes all of the call locations from a particular file to a particular set of actions in this class's available actions. As such, it removes them both from these actions and those defined and used by the parent.
Parameters
RemoveCallLocationsFromDependencies(Libraries.System.File file)
now get all of the parents and do those
Parameters
RemoveUseLocations(Libraries.System.File file)
This action removes all of the call locations from a particular file to a particular set of actions in this class's available actions. As such, it removes them both from these actions and those defined and used by the parent.
Parameters
ResolveAction(Libraries.Language.Compile.Symbol.ActionCall call)
Now remove them from all of the actions in this class
Parameters
Returns
ResolveActionKey(text name, Libraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Variable> parameters, Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.CompilerErrorManager errors)
if it's a primitive, do nothing
Parameters
nametextparametersLibraries.Containers.Iterator<Libraries.Language.Compile.Symbol.Variable>tableLibraries.Language.Compile.Symbol.SymbolTableerrorsLibraries.Language.Compile.CompilerErrorManager
Returns
text
ResolveAllTypes(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.CompilerErrorManager errors)
Parameters
ResolveFrames()
now with resolved type names and keys
ResolveParentLevels(Libraries.Language.Compile.Symbol.SymbolTable table)
TODO: Add in compiler error line and location.
Parameters
ResolveParents(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.CompilerErrorManager errors)
this is a conflict and a compiler error
Parameters
ResolveType(Libraries.Language.Compile.Location location, Libraries.Language.Compile.Symbol.Type type, Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.CompilerErrorManager errors)
therefore, it is safe to ignore this
Parameters
ResolveUseStatements(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.CompilerErrorManager errors)
This action checks to see if all types have been resolved for this class.
Parameters
SetConstructor(Libraries.Language.Compile.Symbol.Action method)
this does not need to go another level deeper.
Parameters
SetFile(Libraries.System.File container)
Sets a pointer to the file on disk that contains this class.
Parameters
containerLibraries.System.File
SetIsProgramStartingClass(boolean main)
Parameters
mainboolean
SetName(text name)
necessary
Parameters
nametext
SetNameLocation(Libraries.Language.Compile.Location location)
Parameters
locationLibraries.Language.Compile.Location
SetPackage(Libraries.Language.Compile.QualifiedName pack)
:GetType()
Parameters
SetParentGenerics(text key, Libraries.Containers.Array<Libraries.Language.Compile.Symbol.Type> types)
Parameters
SetStatic(boolean value)
Parameters
valueboolean
SetUserCode(boolean isUserCode)
end
Parameters
isUserCodeboolean
WeaveActionFromDirectParent(Libraries.Language.Compile.Symbol.Class mom, Libraries.Language.Compile.Symbol.Action act, Libraries.Language.Compile.CompilerErrorManager errors)
mark this class so it cannot be instantiated.
Parameters
Inherited Actions
15 actions from Libraries.Language.Compile.Location
- CreateLocationCopy()
- GetColumnNumber()
- GetColumnNumberEnd()
- GetIndex()
- GetIndexEnd()
- GetLineNumber()
- GetLineNumberEnd()
- SetColumnNumber(integer column)
- SetColumnNumberEnd(integer column)
- SetIndex(integer index)
- SetIndexEnd(integer index)
- SetLineNumber(integer line)
- SetLineNumberEnd(integer line)
- SetLocation(Libraries.Language.Compile.Location location)
- ToText()