org.erights.e.elang.scope
Class EvalContext

java.lang.Object
  |
  +--org.erights.e.elang.scope.EvalContext

public class EvalContext
extends Object

Untamed:


Field Summary
private static int LOCAL_COUNT
           
private  Object[] myFields
           
private  Object[] myLocals
           
private  OuterScope myOuters
           
private static Object[] NO_FIELDS
           
 
Constructor Summary
private EvalContext(Object[] locals, Object[] fields, OuterScope outers)
           
 
Method Summary
 EvalContext extended(int localCount)
          Enabled: returns a new Scope that inherits from this one.
 Object field(int index)
          Enabled:
 void initField(int index, Object value)
          Enabled:
 void initLocal(int index, Object value)
          Enabled:
 void initOuter(int index, Slot value)
          Enabled:
 Object local(int index)
          Enabled:
static EvalContext make(int localCount, Object[] fields, OuterScope outers)
          Enabled:
static EvalContext make(int localCount, OuterScope outers)
          Enabled:
 Slot outer(int index)
          Enabled:
 OuterScope outers()
          Enabled:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_COUNT

private static final int LOCAL_COUNT

NO_FIELDS

private static final Object[] NO_FIELDS

myLocals

private final Object[] myLocals

myFields

private final Object[] myFields

myOuters

private final OuterScope myOuters
Constructor Detail

EvalContext

private EvalContext(Object[] locals,
                    Object[] fields,
                    OuterScope outers)
Method Detail

make

public static EvalContext make(int localCount,
                               Object[] fields,
                               OuterScope outers)
Enabled:


make

public static EvalContext make(int localCount,
                               OuterScope outers)
Enabled:


extended

public EvalContext extended(int localCount)
Enabled: returns a new Scope that inherits from this one. This new Scope has an empty set of locals.


local

public Object local(int index)
Enabled:


field

public Object field(int index)
Enabled:


outer

public Slot outer(int index)
Enabled:


outers

public OuterScope outers()
Enabled:


initLocal

public void initLocal(int index,
                      Object value)
Enabled:


initField

public void initField(int index,
                      Object value)
Enabled:


initOuter

public void initOuter(int index,
                      Slot value)
Enabled:



comments?