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

Libraries.Language.Compile.CompilerError

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

Libraries.Language.Compile.CompilerError

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

  • name text

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

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

Libraries.Language.Compile.CompilerError

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

Returns

integer

ComputeGenericsTables(Libraries.Language.Compile.CompilerErrorManager compilerErrorManager)

Parameters

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

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

  • key text

Returns

Libraries.Language.Compile.Symbol.Action

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

Libraries.Language.Compile.Symbol.Action

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

Libraries.System.File

GetGeneric(integer location)

Parameters

  • location integer

Returns

text

GetGenericList()

This action returns a list of of all generic names. For example, if the class is declared as A, then this action will return "Type, Value" without double quotes.

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

  • name text

Returns

integer

GetInterfaceName()

Returns

text

GetNameLocation()

Returns

Libraries.Language.Compile.Location

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

Libraries.Language.Compile.QualifiedName

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

  • key text

Returns

Libraries.Language.Compile.Symbol.Class

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

  • key text

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

  • key text

Returns

Libraries.Language.Compile.QualifiedName

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

  • name text

Returns

Libraries.Language.Compile.Symbol.Class

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

  • key text

Returns

Libraries.Language.Compile.Symbol.Variable

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

  • key text

Returns

Libraries.Language.Compile.Symbol.Action

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

Returns

Libraries.Language.Compile.Symbol.Class

HasAction(text key)

the parent is now resolved.

Parameters

  • key text

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

  • name text

Returns

boolean

HasGenericMapToParent(text key)

Parameters

  • key text

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

  • key text

Returns

boolean

HasParentGenerics(text key)

Parameters

  • key text

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

  • parentKey text
  • index integer

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

Libraries.Language.Compile.Symbol.ActionCallResolution

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

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

SetIsProgramStartingClass(boolean main)

Parameters

  • main boolean

SetName(text name)

necessary

Parameters

  • name text

SetNameLocation(Libraries.Language.Compile.Location location)

Parameters

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

  • value boolean

SetUserCode(boolean isUserCode)

end

Parameters

  • isUserCode boolean

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
3 actions from Libraries.Language.Compile.Symbol.Symbol
2 actions from Libraries.Language.Object