cz.cuni.amis.pogamut.sposh.engine
Class ElementStackTrace
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<cz.cuni.amis.pogamut.sposh.engine.StackElement>
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
|
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 |
push(cz.cuni.amis.pogamut.sposh.engine.StackElement element)
|
void |
removeAllElements()
|
| 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 |
ElementStackTrace
public ElementStackTrace()
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 -
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.