public final class PackageSymbol extends GlobalSymbolBase
Constructor and Description |
---|
PackageSymbol(Identifier name,
ErrorStream error,
java.io.File dir)
Construct symbol for top-level package.
|
PackageSymbol(PackageSymbol parent,
Identifier name,
ErrorStream error)
Construct symbol for subpackage of another package.
|
Modifier and Type | Method and Description |
---|---|
SymbolTable<ClassSymbol> |
getClasses()
Get set of classes held by package.
|
java.util.Collection<ClassSymbol> |
getClassSet()
Get set of classes held by package as collection.
|
LogicTypeTable |
getLogicTypeTable()
Get logic type table of package.
|
PackageSymbol |
getPackage(Name name)
Return symbol for package denoted by name in current package;
an error message is printed if the lookup fails.
|
PackageSymbol |
getPackage(Name name,
boolean verbose)
Return symbol for package denoted by name in current package.
|
SymbolTable<PackageSymbol> |
getPackages()
Get set of packages held by package.
|
java.util.Collection<PackageSymbol> |
getPackageSet()
Get set of packages held by package as collection.
|
PackageSymbol |
getParent()
Get parent package.
|
TaskFolder |
getTasks()
Get the folder of tasks related to this package.
|
SymbolTable<TheorySymbol> |
getTheories()
Get set of theories held by package.
|
java.util.Collection<TheorySymbol> |
getTheorySet()
Get set of theories held by package as collection.
|
PackageSymbol |
getTopPackage()
Get top-level package of package
|
TypeTable |
getTypeTable()
Get type table of package.
|
TypeTranslator |
getTypeTranslator()
Get type translator of package.
|
void |
print(java.io.PrintWriter out)
Print symbol on output stream.
|
void |
setDirectory(java.io.File dir)
Set directory associated to package.
|
getLongName
getDeclaration, getName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaration, getName
public PackageSymbol(Identifier name, ErrorStream error, java.io.File dir)
name
- the name of the packageerror
- the stream for printing error messagesdir
- directory for writing informationpublic PackageSymbol(PackageSymbol parent, Identifier name, ErrorStream error)
parent
- the parent package.name
- the short name of the package.error
- the stream for printing error messagespublic PackageSymbol getParent()
public PackageSymbol getTopPackage()
public TypeTable getTypeTable()
public LogicTypeTable getLogicTypeTable()
public TypeTranslator getTypeTranslator()
public SymbolTable<PackageSymbol> getPackages()
public java.util.Collection<PackageSymbol> getPackageSet()
public SymbolTable<ClassSymbol> getClasses()
public java.util.Collection<ClassSymbol> getClassSet()
public SymbolTable<TheorySymbol> getTheories()
public java.util.Collection<TheorySymbol> getTheorySet()
public void setDirectory(java.io.File dir)
dir
- the directory.public void print(java.io.PrintWriter out)
out
- the output stream.public PackageSymbol getPackage(Name name)
name
- a name which should denote a package.public PackageSymbol getPackage(Name name, boolean verbose)
name
- a name which should denote a package.verbose
- true if an error message is printed if the lookup fails.public TaskFolder getTasks()