cgp.translators
Class ContextScopeStack

java.lang.Object
  |
  +--cgp.translators.ContextScopeStack

public class ContextScopeStack
extends java.lang.Object


Field Summary
private  java.util.LinkedList stack
           
 
Constructor Summary
ContextScopeStack()
           
 
Method Summary
 int depth()
           
 notio.Concept find(java.lang.String name)
          Search this stack of scopes in FILO order for the specified name.
 ContextScope getFrame(int i)
          Return the ith frame.
 ContextScope peek()
           
 ContextScope pop()
           
 ContextScope push(ContextScope s)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

stack

private java.util.LinkedList stack
Constructor Detail

ContextScopeStack

public ContextScopeStack()
Method Detail

depth

public int depth()

push

public ContextScope push(ContextScope s)

pop

public ContextScope pop()

peek

public ContextScope peek()

getFrame

public ContextScope getFrame(int i)
Return the ith frame. Precondition: i is >= 0 or < stack depth.

find

public notio.Concept find(java.lang.String name)
Search this stack of scopes in FILO order for the specified name.