jxl.enshell
Class ObjectScope

java.lang.Object
  extended by jxl.enshell.AbstractScope
      extended by jxl.enshell.ObjectScope

public class ObjectScope
extends AbstractScope

Author:
Alex Lynch (jxlynch@users.sf.net)

Field Summary
 
Fields inherited from class jxl.enshell.AbstractScope
UNDEFINED
 
Constructor Summary
ObjectScope(AbstractScope parent, java.lang.Object subject)
          Creates a new instance of ObjectScope
 
Method Summary
 void addImport(java.lang.String name, boolean pack)
           
protected  void declareMethod(AbstractMethod meth)
           
 void defineVar(java.lang.String name, java.lang.Object val)
           
 java.util.Set<AbstractMethod> doGetMethods()
           
 java.lang.Object doGetVar(java.lang.String name)
           
 boolean doIsVarDefined(java.lang.String name)
           
 java.lang.Class doResolveClass(java.lang.String name)
           
 void doSetVar(java.lang.String name, java.lang.Object val)
           
 java.lang.String toString()
           
 
Methods inherited from class jxl.enshell.AbstractScope
getMethods, getSubScope, getVar, isVarDeclared, resolveClass, setVar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectScope

public ObjectScope(AbstractScope parent,
                   java.lang.Object subject)
Creates a new instance of ObjectScope

Method Detail

declareMethod

protected void declareMethod(AbstractMethod meth)
Specified by:
declareMethod in class AbstractScope

addImport

public void addImport(java.lang.String name,
                      boolean pack)
Specified by:
addImport in class AbstractScope

defineVar

public void defineVar(java.lang.String name,
                      java.lang.Object val)
Specified by:
defineVar in class AbstractScope

doGetVar

public java.lang.Object doGetVar(java.lang.String name)
                          throws EvalException
Specified by:
doGetVar in class AbstractScope
Throws:
EvalException

doIsVarDefined

public boolean doIsVarDefined(java.lang.String name)
Specified by:
doIsVarDefined in class AbstractScope

doResolveClass

public java.lang.Class doResolveClass(java.lang.String name)
Specified by:
doResolveClass in class AbstractScope

doSetVar

public void doSetVar(java.lang.String name,
                     java.lang.Object val)
              throws EvalException
Specified by:
doSetVar in class AbstractScope
Throws:
EvalException

doGetMethods

public java.util.Set<AbstractMethod> doGetMethods()
Specified by:
doGetMethods in class AbstractScope

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object