add --shared
[pylucene.git] / lucene-java-3.4.0 / lucene / contrib / spellchecker / src / java / org / apache / lucene / search / suggest / tst / TernaryTreeNode.java
1 package org.apache.lucene.search.suggest.tst;
2
3 /**
4  * The class creates a TST node.
5  */
6
7 public class TernaryTreeNode {
8   /** the character stored by a node. */
9         char splitchar;
10         /** a reference object to the node containing character smaller than this node's character. */
11         TernaryTreeNode loKid;
12         /** 
13          *  a reference object to the node containing character next to this node's character as 
14          *  occurring in the inserted token.
15          */
16         TernaryTreeNode eqKid;
17         /** a reference object to the node containing character higher than this node's character. */
18         TernaryTreeNode hiKid;
19         /** 
20          * used by leaf nodes to store the complete tokens to be added to suggest list while 
21          * auto-completing the prefix.
22          */
23         String token;
24         Object val;
25 }