|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--java.util.Stack | +--Interpreter.Sexp.Utils.SexpStack
Un oggetto SexpStack realizza uno stack per le s-expressions.
Fields inherited from class java.util.Vector |
capacityIncrement,
elementCount,
elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
SexpStack()
|
Method Summary | |
NumToken |
popNum()
Fa una pop dallo stack controllando che sia un NumToken e lo restituisce. |
Sexp |
popSexp()
Toglie la Sexp che si trova in cima allo stack e la restituisce. |
Sexp |
pushSexp(Sexp s)
Aggiunge la Sexp specificata in cima allo stack. |
Methods inherited from class java.util.Stack |
empty,
peek,
pop,
push,
search |
Methods inherited from class java.util.Vector |
add,
add,
addAll,
addAll,
addElement,
capacity,
clear,
clone,
contains,
containsAll,
copyInto,
elementAt,
elements,
ensureCapacity,
equals,
firstElement,
get,
hashCode,
indexOf,
indexOf,
insertElementAt,
isEmpty,
lastElement,
lastIndexOf,
lastIndexOf,
remove,
remove,
removeAll,
removeAllElements,
removeElement,
removeElementAt,
removeRange,
retainAll,
set,
setElementAt,
setSize,
size,
subList,
toArray,
toArray,
toString,
trimToSize |
Methods inherited from class java.util.AbstractList |
iterator,
listIterator,
listIterator |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SexpStack()
Method Detail |
public Sexp pushSexp(Sexp s)
s
- oggetto della classe Sexp che viene aggiunto allo stack.public Sexp popSexp() throws InterpreterException
public NumToken popNum() throws InterpreterException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |