Package ca.phon.ipa.tree
Class IpaTernaryTreeNode<V>
java.lang.Object
ca.phon.ipa.tree.IpaTernaryTreeNode<V>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionIpaTernaryTreeNode
(IpaTernaryTreeNode<V> parent, IPAElement ele) IpaTernaryTreeNode
(IpaTernaryTreeNode<V> parent, IPAElement ele, V value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptVisitFirst
(IpaTernaryTreeNodeVisitor<V> visitor) void
acceptVisitLast
(IpaTernaryTreeNodeVisitor<V> visitor) void
acceptVisitMiddle
(IpaTernaryTreeNodeVisitor<V> visitor) getChild
(IpaTernaryTreeNode.Position position) getEle()
getLeft()
getRight()
getValue()
boolean
isRoot()
boolean
A node is terminated if it has a database entry.void
setCenter
(IpaTernaryTreeNode<V> center) void
setChild
(IpaTernaryTreeNode<V> child, IpaTernaryTreeNode.Position position) void
setEle
(IPAElement ele) void
setLeft
(IpaTernaryTreeNode<V> left) void
setParent
(IpaTernaryTreeNode<V> parent) void
setRight
(IpaTernaryTreeNode<V> right)
-
Constructor Details
-
IpaTernaryTreeNode
-
IpaTernaryTreeNode
-
-
Method Details
-
isTerminated
public boolean isTerminated()A node is terminated if it has a database entry. (i.e., if the value is non-null
) -
isRoot
public boolean isRoot() -
getEle
-
setEle
-
getValue
-
setValue
-
getParent
-
setParent
-
getLeft
-
setLeft
-
getRight
-
setRight
-
getCenter
-
setCenter
-
getChild
-
setChild
-
getPrefix
-
acceptVisitMiddle
-
acceptVisitLast
-
acceptVisitFirst
-