jxl.enshell
Class AbstractScope
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNDEFINED
public static final java.lang.Object UNDEFINED
AbstractScope
public AbstractScope(AbstractScope parent)
- Creates a new instance of AbstractScope
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)