Main Page   Class Hierarchy   Compound List   File List   Compound Members  

BinaryTree Class Reference

Inheritance diagram for BinaryTree::

LogicTree And Iff Implies Or List of all members.

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

Detailed Description

a logic tree with a generic binary operator

Definition at line 170 of file LogicTree.java.


Constructor & Destructor Documentation

BinaryTree::BinaryTree ( String op,
LogicTree leftSubtree,
LogicTree rightSubtree ) [inline, private]
 

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   }


Member Function Documentation

void BinaryTree::toStringBuffer ( String indentation,
StringBuffer buffer ) [inline, virtual]
 

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   }


Member Data Documentation

LogicTree BinaryTree::leftSubtree [private]
 

the left subtree of this tree

Definition at line 182 of file LogicTree.java.

String BinaryTree::op [private]
 

the operator

Definition at line 176 of file LogicTree.java.

LogicTree BinaryTree::rightSubtree [private]
 

the right subtree of this tree

Definition at line 189 of file LogicTree.java.


The documentation for this class was generated from the following file:
Generated at Wed Mar 26 13:57:26 2003 for LogicParserSupportFiles by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001