cz.cuni.amis.pogamut.sposh.engine
Class ElementStackTrace

Package class diagram package ElementStackTrace
java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<cz.cuni.amis.pogamut.sposh.engine.StackElement>
              extended by cz.cuni.amis.pogamut.sposh.engine.ElementStackTrace
All Implemented Interfaces:
Serializable, Cloneable, Iterable<cz.cuni.amis.pogamut.sposh.engine.StackElement>, Collection<cz.cuni.amis.pogamut.sposh.engine.StackElement>, List<cz.cuni.amis.pogamut.sposh.engine.StackElement>, RandomAccess

public final class ElementStackTrace
extends ArrayList<cz.cuni.amis.pogamut.sposh.engine.StackElement>

Callstack used for storing info what was call hiearchy of elements.

Author:
Honza
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ElementStackTrace()
           
 
Method Summary
 void cutDownToExcluding(cz.cuni.amis.pogamut.sposh.engine.ElementExecutor executor)
          Pops all elements until 'executor' is encountered.
 void cutDownToIncluding(cz.cuni.amis.pogamut.sposh.engine.ElementExecutor executor)
          Pops all elements until 'executor' is encountered.
 cz.cuni.amis.pogamut.sposh.engine.StackElement peek()
           
 cz.cuni.amis.pogamut.sposh.engine.StackElement pop()
           
 void printStackTrace()
           
 void push(cz.cuni.amis.pogamut.sposh.engine.StackElement element)
           
 void removeAllElements()
           
 String toString()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ElementStackTrace

public ElementStackTrace()
Method Detail

printStackTrace

public void printStackTrace()

push

public void push(cz.cuni.amis.pogamut.sposh.engine.StackElement element)

pop

public cz.cuni.amis.pogamut.sposh.engine.StackElement pop()

peek

public cz.cuni.amis.pogamut.sposh.engine.StackElement peek()

removeAllElements

public void removeAllElements()

cutDownToIncluding

public void cutDownToIncluding(cz.cuni.amis.pogamut.sposh.engine.ElementExecutor executor)
Pops all elements until 'executor' is encountered. Pops 'executor' out of the stack as well. If 'null' is passed as 'executor', removes whole stack.

Parameters:
executor -

cutDownToExcluding

public void cutDownToExcluding(cz.cuni.amis.pogamut.sposh.engine.ElementExecutor executor)
Pops all elements until 'executor' is encountered. Leaves 'executor' on the stack. If 'null' is passed as 'executor', removes whole stack.

Parameters:
executor -

toString

public String toString()
Overrides:
toString in class AbstractCollection<cz.cuni.amis.pogamut.sposh.engine.StackElement>


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.