jxl.enshell
Class AbstractScope

java.lang.Object
  extended by jxl.enshell.AbstractScope
Direct Known Subclasses:
ObjectScope, ScriptedScope, StaticScope

public abstract class AbstractScope
extends java.lang.Object

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

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

Field Detail

UNDEFINED

public static final java.lang.Object UNDEFINED
Constructor Detail

AbstractScope

public AbstractScope(AbstractScope parent)
Creates a new instance of AbstractScope

Method Detail

getSubScope

public AbstractScope getSubScope()

getMethods

public final java.util.Set<AbstractMethod> getMethods()

getVar

public final java.lang.Object getVar(java.lang.String name)
                              throws EvalException
Throws:
EvalException

setVar

public final boolean setVar(java.lang.String name,
                            java.lang.Object val)
                     throws EvalException
Throws:
EvalException

resolveClass

public final java.lang.Class resolveClass(java.lang.String name)

isVarDeclared

public final boolean isVarDeclared(java.lang.String name)

defineVar

public abstract void defineVar(java.lang.String name,
                               java.lang.Object val)

addImport

public abstract void addImport(java.lang.String name,
                               boolean pack)

declareMethod

protected abstract void declareMethod(AbstractMethod meth)

doGetMethods

protected abstract java.util.Set<AbstractMethod> doGetMethods()

doIsVarDefined

protected abstract boolean doIsVarDefined(java.lang.String name)

doGetVar

protected abstract java.lang.Object doGetVar(java.lang.String name)
                                      throws EvalException
Throws:
EvalException

doSetVar

protected abstract void doSetVar(java.lang.String name,
                                 java.lang.Object val)
                          throws EvalException
Throws:
EvalException

doResolveClass

protected abstract java.lang.Class doResolveClass(java.lang.String name)