public class TernaryNode extends Object
Constructor and Description |
---|
TernaryNode(char c)
Create a new ternary node with the supplied character.
|
Modifier and Type | Method and Description |
---|---|
TernaryNode |
getEqkid()
Returns the eqkid node in relation to this node.
|
TernaryNode |
getHikid()
Returns the hikid node in relation to this node.
|
TernaryNode |
getLokid()
Returns the lokid node in relation to this node.
|
char |
getSplitChar()
Returns the split character.
|
boolean |
isEndOfWord()
Returns whether this node is at the end of a word.
|
void |
setEndOfWord(boolean b)
Sets whether this node is at the end of a word.
|
void |
setEqkid(TernaryNode node)
Sets the eqkid node in relation to this node.
|
void |
setHikid(TernaryNode node)
Sets the hikid node in relation to this node.
|
void |
setLokid(TernaryNode node)
Sets the lokid node in relation to this node.
|
void |
setSplitChar(char c)
Sets the split character.
|
public TernaryNode(char c)
c
- characterpublic char getSplitChar()
public void setSplitChar(char c)
c
- characterpublic boolean isEndOfWord()
public void setEndOfWord(boolean b)
b
- whether this node is at the end of a wordpublic TernaryNode getLokid()
public void setLokid(TernaryNode node)
node
- ternary nodepublic TernaryNode getEqkid()
public void setEqkid(TernaryNode node)
node
- ternary nodepublic TernaryNode getHikid()
public void setHikid(TernaryNode node)
node
- ternary nodeCopyright © 2003-2024 Virginia Tech. All Rights Reserved.