|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoscript.data.Value
oscript.data.Scope
oscript.data.BasicScope
oscript.data.GlobalScope
public class GlobalScope
Each interpreter instance has a single global scope, which serves to terminate the scope chain.
| Field Summary | |
|---|---|
static Value |
TYPE
|
| Fields inherited from class oscript.data.BasicScope |
|---|
members, mixins, smit |
| Fields inherited from class oscript.data.Scope |
|---|
previous |
| Fields inherited from class oscript.data.Value |
|---|
DEBUG, MEMBER_NAMES, NULL, PARENT_TYPE_NAME, TYPE_NAME, UNDEFINED |
| Constructor Summary | |
|---|---|
GlobalScope()
Class Constructor. |
|
| Method Summary | |
|---|---|
Scope |
getSafeCopy()
In case a scope has any resource allocated from a source which will no long be valid after a stack frame has returned (ie. |
Value |
getSuper()
Lookup the "super" within a scope. |
Value |
getThis()
Lookup the "this" within a scope. |
Value |
getThis(Value val)
Lookup the qualified "this" within a scope. |
protected Value |
getTypeImpl()
Get the type of this object. |
Value |
lookupInScope(int id)
Get a member from this scope. |
| Methods inherited from class oscript.data.BasicScope |
|---|
__getInstanceMember, createMember, free, getInstanceMemberImpl, getMember, getMemberImpl, getType, isSafe, mixin, populateMemberSet, reset |
| Methods inherited from class oscript.data.Scope |
|---|
__setJavaObject, createMember, createMember, findDesc, getCallee, getPreviousScope, lookupInScope, lookupInScope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Value TYPE
| Constructor Detail |
|---|
public GlobalScope()
| Method Detail |
|---|
protected Value getTypeImpl()
BasicScope.getType().
getTypeImpl in class BasicScopepublic Scope getSafeCopy()
getSafeCopy in class BasicScopepublic Value getSuper()
getSuper in class Scopepublic Value getThis()
getThis in class Scopepublic Value getThis(Value val)
getThis in class Scopeval - the type that the "this" qualifies
public Value lookupInScope(int id)
throws PackagedScriptObjectException
previous
node in the scope chain is checked.
lookupInScope in class BasicScopeid - the id of the symbol that maps to the member
PackagedScriptObjectException(NoSuchMemberException)
PackagedScriptObjectException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||