Class QueryTreeNodeVector<E extends QueryTreeNode>

java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.QueryTreeNodeVector<E>
All Implemented Interfaces:
Iterable<E>, Visitable
Direct Known Subclasses:
FromList, OrderedColumnList, PredicateList, ResultColumnList, SubqueryList, TableElementList, ValueNodeList, WindowList

class QueryTreeNodeVector<E extends QueryTreeNode> extends QueryTreeNode implements Iterable<E>
QueryTreeNodeVector is the root class for all lists of query tree nodes. It provides a wrapper for java.util.ArrayList. All lists of query tree nodes inherit from QueryTreeNodeVector.
  • Field Details

  • Constructor Details

  • Method Details

    • size

      public final int size()
    • elementAt

      final E elementAt(int index)
    • addElement

      void addElement(E qt)
    • removeElementAt

      final E removeElementAt(int index)
    • removeElement

      final void removeElement(E qt)
    • indexOf

      final int indexOf(E qt)
    • setElementAt

      final void setElementAt(E qt, int index)
    • destructiveAppend

      final void destructiveAppend(QueryTreeNodeVector<E> qtnv)
    • nondestructiveAppend

      final void nondestructiveAppend(QueryTreeNodeVector<E> qtnv)
    • removeAllElements

      final void removeAllElements()
    • insertElementAt

      final void insertElementAt(E qt, int index)
    • printSubNodes

      void printSubNodes(int depth)
      Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.
      Overrides:
      printSubNodes in class QueryTreeNode
      Parameters:
      depth - The depth to indent the sub-nodes
    • acceptChildren

      void acceptChildren(Visitor v) throws StandardException
      Accept the visitor for all visitable children of this node.
      Overrides:
      acceptChildren in class QueryTreeNode
      Parameters:
      v - the visitor
      Throws:
      StandardException - on error
    • iterator

      public final Iterator<E> iterator()
      Specified by:
      iterator in interface Iterable<E extends QueryTreeNode>