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, getWord
protected DefinitionTable(Dialect d, String sectionName, Collection<DefinitionTable> parents) throws DefinitionTable.DefinitionException
sectionName
- parents
- Definition tables of all direct parents of the new section.DefinitionTable.DefinitionException
protected <T extends InfoTable> void addParentTable(T table) throws InfoTable.InfoTableException
addParentTable
in class InfoTable
InfoTable.InfoTableException
public 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.