01: package ro.infoiasi.donald.compiler.simple;
02:
03: /** An interface representing a node in an binary tree */
04: public interface BinTreeNode {
05: /** Associates the specified object with this node. */
06: void put(Object obj);
07:
08: /** Returns the object corresponding to this node. */
09: Object get();
10:
11: /** Returns the parent of this node. */
12: BinTreeNode parent();
13:
14: /** Returns the left child of this node. */
15: BinTreeNode left();
16:
17: /** Returns the right child of this node. */
18: BinTreeNode right();
19: }
|