org.maltparser.parser.history.container
Class TableContainer
java.lang.Object
org.maltparser.parser.history.container.TableContainer
- Direct Known Subclasses:
- CombinedTableContainer
public class TableContainer
- extends Object
- Since:
- 1.1
- Author:
- Johan Hall
cachedCode
protected int cachedCode
cachedSymbol
protected StringBuilder cachedSymbol
table
protected Table table
name
protected String name
relationToNextDecision
protected TableContainer.RelationToNextDecision relationToNextDecision
TableContainer
public TableContainer(Table table,
String name,
char decisionSeparator)
clearCache
public void clearCache()
getSymbol
public String getSymbol(int code)
throws MaltChainedException
- Throws:
MaltChainedException
getCode
public int getCode(String symbol)
throws MaltChainedException
- Throws:
MaltChainedException
containCode
public boolean containCode(int code)
throws MaltChainedException
- Throws:
MaltChainedException
containSymbol
public boolean containSymbol(String symbol)
throws MaltChainedException
- Throws:
MaltChainedException
continueWithNextDecision
public boolean continueWithNextDecision(int code)
throws MaltChainedException
- Throws:
MaltChainedException
continueWithNextDecision
public boolean continueWithNextDecision(String symbol)
throws MaltChainedException
- Throws:
MaltChainedException
getTable
public Table getTable()
getTableName
public String getTableName()
getTableContainerName
public String getTableContainerName()
getRelationToNextDecision
public TableContainer.RelationToNextDecision getRelationToNextDecision()
setRelationToNextDecision
protected void setRelationToNextDecision(char decisionSeparator)
setTable
protected void setTable(Table table)
setName
protected void setName(String name)
size
public int size()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.