public final class ClassSymbol extends GlobalSymbolBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
stringClass |
Constructor and Description |
---|
ClassSymbol(PackageSymbol psymbol,
Identifier name,
ClassReader reader)
Construct class symbol.
|
Modifier and Type | Method and Description |
---|---|
ParamSymbolTable<ClassMethodSymbol> |
getClassMethods()
Get set of class methods of this class.
|
java.util.Collection<ClassMethodSymbol> |
getClassMethodSet()
Get set of class methods of this class.
|
TheorySymbol |
getClassTheory()
Get theory symbol holding the logical type declaration for this class.
|
TheorySymbol |
getClassTheory(ErrorStream error)
Get theory symbol holding the logical type declaration for this class.
|
SymbolTable<ClassVariableSymbol> |
getClassVariables()
Get set of class values of this class.
|
java.util.Collection<ClassVariableSymbol> |
getClassVariableSet()
Get set of class values of this class.
|
ParamSymbols<ConstructorSymbol> |
getConstructors()
Get set of constructors of this class.
|
java.util.Collection<ConstructorSymbol> |
getConstructorSet()
Get set of constructors of this class.
|
ClassDeclaration |
getDeclaration()
Get the declaration of the class.
|
Formula |
getInitFormula()
Get the formula representing the initial values of the object variables.
|
TheorySymbol |
getLocalTheory()
Get theory symbol holding the local declaration for this class.
|
ParamSymbolTable<ObjectMethodSymbol> |
getObjectMethods()
Get set of object methods of this class.
|
java.util.Collection<ObjectMethodSymbol> |
getObjectMethodSet()
Get set of object methods of this class.
|
SymbolTable<ObjectVariableSymbol> |
getObjectVariables()
Get set of object values of this class.
|
java.util.Collection<ObjectVariableSymbol> |
getObjectVariableSet()
Get set of object values of this class.
|
PackageSymbol |
getPackage()
Get package of class.
|
java.util.Collection<Symbol> |
getReferencedUnits()
Get symbols of units referenced by this unit.
|
Source |
getSource()
Get source of class.
|
TaskFolder |
getTasks()
Get the folder of tasks related to this class.
|
TaskFolder |
getTCCs()
Get the type checking conditions.
|
ThisSymbol |
getThisSymbol()
Get "this" symbol for this class.
|
NamedType |
getType()
Get type for for this class.
|
boolean |
hasErrors()
Show whether class has errors.
|
boolean |
isRead()
Returns true if class has been read, i.e.
|
void |
print(java.io.PrintWriter out)
Print symbol on output stream.
|
boolean |
read(ErrorStream error)
Update declaration from reader.
|
void |
reset()
Reset symbol.
|
void |
setClassTheory(TheorySymbol tsymbol)
Set theory symbol holding the logical type declaration for this class.
|
void |
setErrors(boolean status)
Set error status.
|
void |
setInitFormula(Formula formula)
Set the formula representing the initial values of the object variables.
|
void |
setLocalTheory(TheorySymbol tsymbol)
Set theory symbol holding the local declaration for this class.
|
getLongName
getName
public ClassSymbol(PackageSymbol psymbol, Identifier name, ClassReader reader)
psymbol
- the symbol of the package holding the class.name
- the name of the classreader
- the reader for getting the declarationpublic PackageSymbol getPackage()
public Source getSource()
public boolean isRead()
public boolean read(ErrorStream error)
error
- the error stream on which to print any messages.public boolean hasErrors()
public void setErrors(boolean status)
status
- true iff errors, false otherwise.public void reset()
public ClassDeclaration getDeclaration()
getDeclaration
in interface Symbol
getDeclaration
in class SymbolBase
public ParamSymbols<ConstructorSymbol> getConstructors()
public ParamSymbolTable<ClassMethodSymbol> getClassMethods()
public ParamSymbolTable<ObjectMethodSymbol> getObjectMethods()
public SymbolTable<ClassVariableSymbol> getClassVariables()
public SymbolTable<ObjectVariableSymbol> getObjectVariables()
public java.util.Collection<ConstructorSymbol> getConstructorSet()
public java.util.Collection<ClassMethodSymbol> getClassMethodSet()
public java.util.Collection<ObjectMethodSymbol> getObjectMethodSet()
public java.util.Collection<ClassVariableSymbol> getClassVariableSet()
public java.util.Collection<ObjectVariableSymbol> getObjectVariableSet()
public java.util.Collection<Symbol> getReferencedUnits()
public void setClassTheory(TheorySymbol tsymbol)
tsymbol
- the theory symbol.public TheorySymbol getClassTheory()
public TheorySymbol getClassTheory(ErrorStream error)
error
- the error stream.public void setLocalTheory(TheorySymbol tsymbol)
tsymbol
- the theory symbol.public TheorySymbol getLocalTheory()
public void print(java.io.PrintWriter out)
out
- the output stream.public TaskFolder getTCCs()
public TaskFolder getTasks()
public ThisSymbol getThisSymbol()
public NamedType getType()
public void setInitFormula(Formula formula)
formula
- the formula.public Formula getInitFormula()