com.ibm.adt.ovf.ext.qualifier.ast
Class AbstractASTNodeList

java.lang.Object
  extended by com.ibm.adt.ovf.ext.qualifier.ast.ASTNode
      extended by com.ibm.adt.ovf.ext.qualifier.ast.AbstractASTNodeList

public abstract class AbstractASTNodeList
extends ASTNode


Field Summary
 
Fields inherited from class com.ibm.adt.ovf.ext.qualifier.ast.ASTNode
leftIToken, parent, rightIToken
 
Constructor Summary
AbstractASTNodeList(ASTNode element, boolean leftRecursive)
           
AbstractASTNodeList(IToken leftIToken, IToken rightIToken, boolean leftRecursive)
           
 
Method Summary
 void add(ASTNode element)
           
 java.util.ArrayList getAllChildren()
          Make a copy of the list and return it.
 java.util.ArrayList getArrayList()
           
 ASTNode getElementAt(int i)
           
 int size()
           
 
Methods inherited from class com.ibm.adt.ovf.ext.qualifier.ast.ASTNode
accept, accept, accept, accept, acceptAll, equals, getChildren, getFollowingAdjuncts, getLeftIToken, getNextAst, getParent, getPrecedingAdjuncts, getRightIToken, hashCode, setParent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractASTNodeList

public AbstractASTNodeList(IToken leftIToken,
                           IToken rightIToken,
                           boolean leftRecursive)

AbstractASTNodeList

public AbstractASTNodeList(ASTNode element,
                           boolean leftRecursive)
Method Detail

size

public int size()

getElementAt

public ASTNode getElementAt(int i)

getArrayList

public java.util.ArrayList getArrayList()

add

public void add(ASTNode element)

getAllChildren

public java.util.ArrayList getAllChildren()
Make a copy of the list and return it. Note that we obtain the local list by invoking getArrayList so as to make sure that the list we return is in proper order.

Specified by:
getAllChildren in class ASTNode


© Copyright 2008 IBM Corp. 2008 All Rights Reserved