uk.ac.man.cs.rainbow.compiler.rasm
Class LocalDeclarationStack

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.compiler.CompilerThing
        |
        +--uk.ac.man.cs.rainbow.compiler.rasm.LocalDeclarationStack
All Implemented Interfaces:
Cloneable

public class LocalDeclarationStack
extends CompilerThing
implements Cloneable


Constructor Summary
LocalDeclarationStack()
           
 
Method Summary
 void clear()
           
 LocalDeclarationStack cloneLocalDeclarationStack()
           
 boolean empty()
           
 int find_local(String id)
           
 int get_next_stack_pos()
           
 void pop()
           
 void push(LocalDeclaration decl)
           
 void set_next_stack_pos(int n)
           
 String toString()
           
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.CompilerThing
className, crashHere, getSerial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalDeclarationStack

public LocalDeclarationStack()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

cloneLocalDeclarationStack

public LocalDeclarationStack cloneLocalDeclarationStack()

clear

public void clear()

get_next_stack_pos

public int get_next_stack_pos()

set_next_stack_pos

public void set_next_stack_pos(int n)

empty

public boolean empty()

push

public void push(LocalDeclaration decl)

pop

public void pop()

find_local

public int find_local(String id)