|
MaltParser 1.0.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.maltparser.core.symbol.trie.TrieNode
public class TrieNode
Constructor Summary | |
---|---|
TrieNode(char character,
TrieNode parent)
Constructs a trie node |
Method Summary | |
---|---|
char |
getCharacter()
Returns the character of the trie node |
TrieNode |
getChild(char c)
Returns the child node that corresponds to the character |
TrieEntry |
getEntry(TrieSymbolTable table)
Returns the entry of the symbol table 'table' |
TrieNode |
getOrAddChild(boolean isWord,
char c,
TrieSymbolTable table,
TrieNode parent,
int code)
Adds and/or retrieve a child trie node. |
TrieNode |
getParent()
Returns the parent node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrieNode(char character, TrieNode parent)
character
- which character that the trie node belongs toparent
- the parent trie nodeMethod Detail |
---|
public TrieNode getOrAddChild(boolean isWord, char c, TrieSymbolTable table, TrieNode parent, int code) throws SymbolException
isWord
- true if it is a word (entry), otherwise falsec
- the character to the child nodetable
- which symbol table to look in or add toparent
- the parent trie nodecode
- the integer representation of the string value
SymbolException
public TrieNode getChild(char c)
c
- the character of the child node
public TrieEntry getEntry(TrieSymbolTable table)
table
- which symbol table
public char getCharacter()
public TrieNode getParent()
|
MaltParser 1.0.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |