|
MaltParser 1.4.1 | |||||||||
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 | |
---|---|
boolean |
equals(Object obj)
|
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,
int code)
Adds and/or retrieve a child trie node. |
TrieNode |
getParent()
Returns the parent node |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, 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, 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 tocode
- 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()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |