Class BinaryTree

java.lang.Object
org.gvsig.remoteclient.wfs.filters.BinaryTree

public class BinaryTree extends Object
This class implements a binary tree (not ordered) that is used to build a sintactic tree for the SQL language.
Author:
Jorge Piera Llodrá (piera_jor@gva.es), Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
  • Constructor Details

    • BinaryTree

      public BinaryTree()
  • Method Details

    • addTerm

      public void addTerm(String value)
      This method is called for each term that is on the SQL query. It's supposed that the value is a valid expression, otherwise will launch an exception.
      Parameters:
      value - expression formatted
    • addTerm

      public void addTerm(String value, String operationTree)
      Adds a new term to the tree
      Parameters:
      value -
      operationTree -
      name -
      operationPair -
    • printTree

      public void printTree()
      Print all the tree
    • getRoot

      public BinaryTree.Node getRoot()
      Returns:
      Returns the root.