org.problets.domain.model.implement
Class StackModel

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<E>
              extended by java.util.Stack
                  extended by org.problets.domain.model.implement.StackModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class StackModel
extends java.util.Stack

To maintain call stack for the program

Author:
Amruth Kumar
See Also:
Serialized Form

Constructor Summary
StackModel()
           
 
Method Summary
 java.util.Vector getFunctionActivationRecords()
           
static void main(java.lang.String[] args)
           
 java.lang.Object pop()
           
 void print()
          Print the entire contents of the stack
 void push(ActivationRecord element)
           
 
Methods inherited from class java.util.Stack
empty, peek, 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, 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
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

StackModel

public StackModel()
Method Detail

getFunctionActivationRecords

public java.util.Vector getFunctionActivationRecords()

push

public void push(ActivationRecord element)

pop

public java.lang.Object pop()
Overrides:
pop in class java.util.Stack

print

public void print()
Print the entire contents of the stack


main

public static void main(java.lang.String[] args)