jxl.enshell
Class ScriptedScope

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

public class ScriptedScope
extends AbstractScope

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

Field Summary
 
Fields inherited from class jxl.enshell.AbstractScope
UNDEFINED
 
Method Summary
 void addImport(java.lang.String name, boolean packageImport)
           
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)
           
static ScriptedScope newRootScope()
           
static ScriptedScope newRootScope(java.lang.ClassLoader cl)
           
protected static ScriptedScope newSubScope(AbstractScope parent)
           
 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
 

Method Detail

newRootScope

public static ScriptedScope newRootScope()

newRootScope

public static ScriptedScope newRootScope(java.lang.ClassLoader cl)

newSubScope

protected static final ScriptedScope newSubScope(AbstractScope parent)

addImport

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

doResolveClass

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

toString

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

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)
Specified by:
doGetVar in class AbstractScope

doSetVar

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

doIsVarDefined

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

doGetMethods

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

declareMethod

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