java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<PsyObject>
,Collection<PsyObject>
,List<PsyObject>
,RandomAccess
,SequencedCollection<PsyObject>
An interpreter’s execution stack.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
ExecutionStack
public ExecutionStack()Constructs an empty stack.
-
-
Method Details
-
enterLoop
public void enterLoop()Enters the loop environment. Pushes the loop mark onto this stack. -
checkLoop
public boolean checkLoop() -
exitLoop
Exits the innermost loop environment. Pops all the elements from this stack upto the first loop mark.- Throws:
PsyInvalidExitException
- when there is not loop mark on this stack.
-
enterStop
public void enterStop()Enters the stopped environment. Pushes the stop mark onto this stack. -
checkStop
public boolean checkStop() -
exitStop
public void exitStop() -
clone
-