public abstract class SyntaxGraph extends java.lang.Object implements LabeledStructure, java.util.Observer
| Modifier and Type | Field and Description |
|---|---|
protected ObjectPoolList<LabelSet> |
labelSetPool |
protected int |
numberOfComponents |
protected SymbolTableHandler |
symbolTables |
| Constructor and Description |
|---|
SyntaxGraph(SymbolTableHandler symbolTables) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(Element element,
java.lang.String labelFunction,
java.lang.String label)
Adds a label label to the graph element element
|
void |
checkInLabelSet(LabelSet labelSet)
Checks in a label set.
|
LabelSet |
checkOutNewLabelSet()
Checks out a new label set from the structure.
|
void |
clear()
Resets the structure.
|
SymbolTableHandler |
getSymbolTables()
Returns the symbol table handler.
|
void |
setSymbolTables(SymbolTableHandler symbolTables)
Sets the symbol table handler.
|
protected SymbolTableHandler symbolTables
protected final ObjectPoolList<LabelSet> labelSetPool
protected int numberOfComponents
public SyntaxGraph(SymbolTableHandler symbolTables) throws MaltChainedException
MaltChainedExceptionpublic SymbolTableHandler getSymbolTables()
LabeledStructuregetSymbolTables in interface LabeledStructurepublic void setSymbolTables(SymbolTableHandler symbolTables)
LabeledStructuresetSymbolTables in interface LabeledStructuresymbolTables - a symbol table handler.public void addLabel(Element element, java.lang.String labelFunction, java.lang.String label) throws MaltChainedException
LabeledStructureaddLabel in interface LabeledStructureelement - a graph element element (a node or a edge).labelFunction - the name of the symbol table.label - the string value of the label.MaltChainedExceptionpublic LabelSet checkOutNewLabelSet() throws MaltChainedException
LabeledStructurecheckOutNewLabelSet in interface LabeledStructureMaltChainedExceptionpublic void checkInLabelSet(LabelSet labelSet) throws MaltChainedException
LabeledStructurecheckInLabelSet in interface LabeledStructurelabelSet - a label set.MaltChainedExceptionpublic void clear() throws MaltChainedException
LabeledStructureclear in interface LabeledStructureMaltChainedExceptionCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.