|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.NativeObject
org.helma.javascript.ModuleScope
public class ModuleScope
A scriptable object that keeps track of the resource it has been loaded from so requests to load other stuff can look for local resources.
| Field Summary |
|---|
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
ModuleScope(Resource resource,
Repository repository,
org.mozilla.javascript.Scriptable prototype)
|
|
| Method Summary | |
|---|---|
void |
delete(int index)
|
void |
delete(java.lang.String name)
|
java.lang.Object |
get(int index,
org.mozilla.javascript.Scriptable start)
|
java.lang.Object |
get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
|
java.lang.Object |
getDefaultValue(java.lang.Class hint)
|
boolean |
getHasAdapterFunctions()
|
java.lang.Object[] |
getIds()
|
Repository |
getRepository()
|
boolean |
has(int index,
org.mozilla.javascript.Scriptable start)
|
boolean |
has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
|
void |
put(int index,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
|
void |
put(java.lang.String name,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
|
void |
setHasAdapterFunctions(boolean adapter)
|
java.lang.String |
toString()
|
| Methods inherited from class org.mozilla.javascript.NativeObject |
|---|
execIdCall, findPrototypeId, getClassName, initPrototypeId |
| Methods inherited from class org.mozilla.javascript.IdScriptableObject |
|---|
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultPut, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, setAttributes, setInstanceIdValue |
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, equivalentValues, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleScope(Resource resource,
Repository repository,
org.mozilla.javascript.Scriptable prototype)
| Method Detail |
|---|
public Repository getRepository()
public java.lang.String toString()
toString in class org.mozilla.javascript.NativeObjectpublic java.lang.Object getDefaultValue(java.lang.Class hint)
getDefaultValue in interface org.mozilla.javascript.ScriptablegetDefaultValue in class org.mozilla.javascript.ScriptableObjectpublic void setHasAdapterFunctions(boolean adapter)
public boolean getHasAdapterFunctions()
public java.lang.Object get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.IdScriptableObject
public java.lang.Object get(int index,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObject
public boolean has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.IdScriptableObject
public boolean has(int index,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObject
public void put(java.lang.String name,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.IdScriptableObject
public void put(int index,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectpublic void delete(java.lang.String name)
delete in interface org.mozilla.javascript.Scriptabledelete in class org.mozilla.javascript.IdScriptableObjectpublic void delete(int index)
delete in interface org.mozilla.javascript.Scriptabledelete in class org.mozilla.javascript.ScriptableObjectpublic java.lang.Object[] getIds()
getIds in interface org.mozilla.javascript.ScriptablegetIds in class org.mozilla.javascript.ScriptableObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||