|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of information stored about the slotpublic interface StaticScope<T>
The StaticScope
interface must be implemented by any object that
defines variables for the purposes of static analysis. It is distinguished
from the Scriptable
class that Rhino normally uses to represent a
runtime scope.
Method Summary | |
---|---|
StaticSlot<T> |
getOwnSlot(String name)
Like getSlot but does not recurse into parent scopes. |
StaticScope<T> |
getParentScope()
Returns the scope enclosing this one or null if none. |
Node |
getRootNode()
Returns the root node associated with this scope. |
StaticSlot<T> |
getSlot(String name)
Returns any defined slot within this scope for this name. |
T |
getTypeOfThis()
Returns the expected type of this in the current scope. |
Method Detail |
---|
Node getRootNode()
StaticScope<T> getParentScope()
StaticSlot<T> getSlot(String name)
name
- The name of the variable slot to look up.
null
if no
definition exists.StaticSlot<T> getOwnSlot(String name)
getSlot
but does not recurse into parent scopes.
T getTypeOfThis()
this
in the current scope.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |