|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elang.interp.ScopeSetup
Untamed: The initial namespaces seen by the E language programmer.
Field Summary | |
static ConstSet |
NonShadowable
Enabled: Return the set of variable names defined in the safe scope that may not be shadowed (ie, redefined). |
(package private) static int |
OUTER_SPACE
|
Constructor Summary | |
ScopeSetup()
Enabled: |
Method Summary | |
private static Class |
getClass(String fqName)
return null if not found |
static Loader |
import__uriGetter(String fqnPrefix)
Enabled: Gets an import__uriGetter evaluated in its own safeScope. |
static OuterScope |
privileged(String fqnPrefix,
boolean interactive,
TextWriter altout,
TextWriter alterr,
CmdLoop interp)
Enabled: Returns a fresh instantiation of the privileged scope. |
static OuterScope |
privileged(String fqnPrefix,
boolean interactive,
TextWriter altout,
TextWriter alterr,
ConstMap props,
Object interpVow,
Vat optVat)
Enabled: If the interp isn't resolved yet, the props and vat must be provided explicitly. |
private static ScopeMaker |
safeMaker(String fqnPrefix)
|
static OuterScope |
safeScope(String fqnPrefix)
Enabled: Returns a fresh instantiation of the safe scope. |
private static ScopeMaker |
universalMaker(Ref safeScopeVow)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int OUTER_SPACE
public static final ConstSet NonShadowable
This currently includes all names in the safeScope, but should only
include those names generated by the
E expansion
and a few
others, as explained in the source code in this class.
Constructor Detail |
public ScopeSetup()
Method Detail |
private static Class getClass(String fqName)
private static ScopeMaker universalMaker(Ref safeScopeVow)
private static ScopeMaker safeMaker(String fqnPrefix)
public static OuterScope safeScope(String fqnPrefix)
public static Loader import__uriGetter(String fqnPrefix)
public static OuterScope privileged(String fqnPrefix, boolean interactive, TextWriter altout, TextWriter alterr, CmdLoop interp)
This scope contains the root magic powers, so should only be given to fully trusted entities.
public static OuterScope privileged(String fqnPrefix, boolean interactive, TextWriter altout, TextWriter alterr, ConstMap props, Object interpVow, Vat optVat)
optVat
- If null, uses the current vat.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |