SandMark version 2.0


sandmark.obfuscate.boolsplitter.dtree
Class Tree.StmtList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.AbstractSequentialList
                    |
                    +--java.util.LinkedList
                          |
                          +--sandmark.obfuscate.boolsplitter.dtree.Tree.StmtList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable
Enclosing class:
Tree

class Tree.StmtList
extends java.util.LinkedList

StmtList is a linked list of statements. A number of methods are overridden because some adjustments may need to be made to the Nodes in the tree when certain operations are performed.


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
(package private) Tree.StmtList()
           
 
Method Summary
 void clear()
          Clear the contents of this statement list.
 java.util.Iterator iterator()
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
 java.lang.Object remove(int index)
          Removes the statement at index
 boolean remove(java.lang.Object o)
          Remove a statement from the list and clean up afterwards.
 boolean removeAll(java.util.Collection c)
          Remove all of the statements in a Collection from this statement list.
 boolean retainAll(java.util.Collection c)
          Remove all statements in this list except those that are in a specified Collection.
 java.lang.Object set(int index, java.lang.Object element)
          Set the value of a given statement.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, removeFirst, removeLast, size, toArray, toArray
 
Methods inherited from class java.util.AbstractList
equals, hashCode, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, subList
 

Constructor Detail

Tree.StmtList

Tree.StmtList()
Method Detail

clear

public void clear()
Clear the contents of this statement list.

Specified by:
clear in interface java.util.List
Overrides:
clear in class java.util.LinkedList

remove

public boolean remove(java.lang.Object o)
Remove a statement from the list and clean up afterwards.

Specified by:
remove in interface java.util.List
Overrides:
remove in class java.util.LinkedList

removeAll

public boolean removeAll(java.util.Collection c)
Remove all of the statements in a Collection from this statement list.

Specified by:
removeAll in interface java.util.List
Overrides:
removeAll in class java.util.AbstractCollection
Parameters:
c - A Collection containing the statements to remove.
Returns:
True, if the contents of this statement list changed.

retainAll

public boolean retainAll(java.util.Collection c)
Remove all statements in this list except those that are in a specified Collection.

Specified by:
retainAll in interface java.util.List
Overrides:
retainAll in class java.util.AbstractCollection
Parameters:
c - The statements to keep.
Returns:
True, if the contents of this statement list changed.

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Set the value of a given statement.

Specified by:
set in interface java.util.List
Overrides:
set in class java.util.LinkedList
Parameters:
index - Index of the statement to change.
element - New value of statement at index.
Returns:
Statement previously at position index.

remove

public java.lang.Object remove(int index)
Removes the statement at index

Specified by:
remove in interface java.util.List
Overrides:
remove in class java.util.LinkedList
Returns:
Statement previously at position index.

listIterator

public java.util.ListIterator listIterator()
Specified by:
listIterator in interface java.util.List
Overrides:
listIterator in class java.util.AbstractList
Returns:
A ListIterator starting with the first statement in the statement list.

listIterator

public java.util.ListIterator listIterator(int index)
Specified by:
listIterator in interface java.util.List
Overrides:
listIterator in class java.util.LinkedList
Returns:
A ListIterator starting a given index.

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.List
Overrides:
iterator in class java.util.AbstractSequentialList
Returns:
An Iterator over this statement list.

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002