All Packages Class Hierarchy This Package Previous Next Index
Class aioli.vtp.TreeStack
java.lang.Object
|
+----aioli.vtp.TreeStack
- public class TreeStack
- extends Object
Just a simple tree stack
-
TreeStack()
- Creates an empty stack
-
pop()
- Pops the top of the stack
-
push(Tree)
- Pushes an element ontop of the stack
-
top()
-
Returns the top of the stack
TreeStack
public TreeStack()
- Creates an empty stack
pop
public Tree pop()
- Pops the top of the stack
- Returns:
- the top of the stack, or null if the stack is empty
push
public void push(Tree tree)
- Pushes an element ontop of the stack
- Parameters:
- tree - the tree to be pushed
top
public Tree top()
- Returns the top of the stack
- Returns:
- the top of the stack, or null if the stack is empty
All Packages Class Hierarchy This Package Previous Next Index