Inheritance diagram for BinaryTree::

Public Methods | |
| void | toStringBuffer (String indentation, StringBuffer buffer) |
Private Methods | |
| BinaryTree (String op, LogicTree leftSubtree, LogicTree rightSubtree) | |
Private Attributes | |
| String | op |
| LogicTree | leftSubtree |
| LogicTree | rightSubtree |
Definition at line 170 of file LogicTree.java.
|
|
Construct a logic tree with a generic binary operator. Definition at line 196 of file LogicTree.java. 00197 {
00198 this.op = op;
00199 this.leftSubtree = leftSubtree;
00200 this.rightSubtree = rightSubtree;
00201 }
|
|
|
Put the tree's representation into a StringBuffer. Reimplemented from LogicTree. Definition at line 203 of file LogicTree.java. 00204 {
00205 buffer.append(indentation);
00206 buffer.append(op);
00207 buffer.append("\n");
00208 leftSubtree.toStringBuffer(indentation + additionalIndentation, buffer);
00209 rightSubtree.toStringBuffer(indentation + additionalIndentation, buffer);
00210 }
|
|
|
the left subtree of this tree Definition at line 182 of file LogicTree.java. |
|
|
the operator Definition at line 176 of file LogicTree.java. |
|
|
the right subtree of this tree Definition at line 189 of file LogicTree.java. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001