cs132.vapor.ast
Class VMemRef.Stack

java.lang.Object
  extended by cs132.vapor.ast.Node
      extended by cs132.vapor.ast.VMemRef
          extended by cs132.vapor.ast.VMemRef.Stack
Enclosing class:
VMemRef

public static final class VMemRef.Stack
extends VMemRef

A reference to some global memory location (either a segment or the heap). Ex: "in[2]" or "local[0]".


Nested Class Summary
static class VMemRef.Stack.Region
          The three possible stack regions.
 
Nested classes/interfaces inherited from class cs132.vapor.ast.VMemRef
VMemRef.Global, VMemRef.Stack
 
Field Summary
 int index
          The index into the array this stack memory reference is referring to.
 VMemRef.Stack.Region region
          The region this stack memory reference is referring to.
 
Fields inherited from class cs132.vapor.ast.Node
sourcePos
 
Constructor Summary
VMemRef.Stack(SourcePos sourcePos, VMemRef.Stack.Region region, int index)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

region

public final VMemRef.Stack.Region region
The region this stack memory reference is referring to.


index

public final int index
The index into the array this stack memory reference is referring to.

Constructor Detail

VMemRef.Stack

public VMemRef.Stack(SourcePos sourcePos,
                     VMemRef.Stack.Region region,
                     int index)