public class DefinitionTable extends InfoTable
| Modifier and Type | Class and Description |
|---|---|
static class |
DefinitionTable.Definition
This defines a definition, but without the name.
|
static class |
DefinitionTable.DefinitionException |
static interface |
DefinitionTable.DefinitionVisitor<T>
This interface allows visitors to visit definitions.
|
InfoTable.Info, InfoTable.InfoTableException| Modifier | Constructor and Description |
|---|---|
protected |
DefinitionTable(Dialect d,
String sectionName,
Collection<DefinitionTable> parents)
Constructs a definition table for a new section.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(String defName,
DefinitionTable.Definition def)
Adds a new definition.
|
protected <T extends InfoTable> |
addParentTable(T table) |
DefinitionTable.Definition |
lookup(String defname)
Looks up a definition to see if it is defined
in this section or in any of the ancestor sections.
|
String |
toString() |
addParents, getDialect, getSectionName, getWordprotected DefinitionTable(Dialect d, String sectionName, Collection<DefinitionTable> parents) throws DefinitionTable.DefinitionException
sectionName - parents - Definition tables of all direct parents of the new section.DefinitionTable.DefinitionExceptionprotected <T extends InfoTable> void addParentTable(T table) throws InfoTable.InfoTableException
addParentTable in class InfoTableInfoTable.InfoTableExceptionpublic DefinitionTable.Definition lookup(String defname)
defname - The definition name.null if defname
is not defined.protected void add(String defName, DefinitionTable.Definition def) throws DefinitionTable.DefinitionException
defName - def - DefinitionTable.DefinitionException - if definition is incompatible
with existing definitions.Copyright © 2003–2016 Community Z Tools Project. All rights reserved.