public interface Scope
SymbolResolver
to partition
library objects and user variables registered by clients of the expression
engine. Whenever a worker library or user variable is registered, a
Scope
instance must be provided by the registering client.
This instance is associated with the library or variable for the lifetime
of the resolver.
When and expression is parsed and compiled, the resolver's current scope
is requested via SymbolResolver.getCurrentScope()
. The instance of
Scope
returned by that call is used as a key to resolve
library and variable references as they are encountered in the expression.
Only references contained within the current scope or within an enclosing
scope (or within its enclosing scope, and so on...) are correctly
resolved.
Scope is also used when resetting the values of variables in a variable pool.
Modifier and Type | Method and Description |
---|---|
Scope |
getEnclosingScope()
This method must return the object which represents the scope context
which encloses this scope, if this scope is nested within a broader
scope.
|
Scope getEnclosingScope()
null
if this scope
represents the broadest scope available.