|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.lang.Value
edu.iu.cnets.klatsch.lang.VStack
public class VStack
This value represents a push-down stack (i.e., LIFO).
Field Summary | |
---|---|
(package private) java.util.Stack<Value> |
s
the values actually being stored |
Constructor Summary | |
---|---|
VStack(java.util.Stack<Value> s)
|
Method Summary | |
---|---|
Value |
method_empty(Value... args)
empty() : Returns true if the stack is empty. |
Value |
method_len(Value... args)
len() : Returns the length of the stack. |
Value |
method_list(Value... args)
list() : Converts the stack to a list. |
Value |
method_peek(Value... args)
peek() : Returns the top element without popping it. |
Value |
method_pop(Value... args)
pop() : Remove and return the top element in the stack. |
Value |
method_push(Value... args)
push(v) : Pushes the value v onto the top of the stack. |
Value |
method_stream(Value... args)
stream() : Converts the stack to a stream. |
java.lang.String |
toString()
|
Methods inherited from class edu.iu.cnets.klatsch.lang.Value |
---|
require, requireCount, requireType, toJson |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.Stack<Value> s
Constructor Detail |
---|
public VStack(java.util.Stack<Value> s)
Method Detail |
---|
public java.lang.String toString()
toString
in class Value
public Value method_empty(Value... args) throws EvaluationException
EvaluationException
public Value method_len(Value... args) throws EvaluationException
EvaluationException
public Value method_list(Value... args) throws EvaluationException
EvaluationException
public Value method_peek(Value... args) throws EvaluationException
EvaluationException
public Value method_pop(Value... args) throws EvaluationException
EvaluationException
public Value method_push(Value... args) throws EvaluationException
EvaluationException
public Value method_stream(Value... args) throws EvaluationException
EvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |