public static class NativeModule.NativeImpl
extends org.mozilla.javascript.ScriptableObject
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
static String |
WRAP_POSTFIX |
static String |
WRAP_PREFIX |
| Constructor and Description |
|---|
NativeModule.NativeImpl() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
exists(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
org.mozilla.javascript.Scriptable |
getCache() |
static Object |
getCached(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
String |
getClassName() |
org.mozilla.javascript.Scriptable |
getExports() |
String |
getFileName() |
String |
getId() |
static Object |
getSource(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
Object |
getWrapper() |
org.mozilla.javascript.Scriptable |
internalRequire(String name,
org.mozilla.javascript.Context cx)
This function is called by "require" on this internal module and also by any internal code
that wishes to look up another module via ScriptRunner.require.
|
boolean |
isLoaded() |
static Object |
require(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
void |
setExports(org.mozilla.javascript.Scriptable s) |
static String |
wrap(String source) |
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic static final String WRAP_PREFIX
public static final String WRAP_POSTFIX
public static final String CLASS_NAME
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObject@JSGetter(value="filename") public String getFileName()
@JSGetter(value="id") public String getId()
@JSGetter(value="loaded") public boolean isLoaded()
@JSGetter(value="exports") public org.mozilla.javascript.Scriptable getExports()
@JSSetter(value="exports") public void setExports(org.mozilla.javascript.Scriptable s)
@JSGetter(value="_cache") public org.mozilla.javascript.Scriptable getCache()
@JSFunction public static Object require(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func) throws InvocationTargetException, InstantiationException, IllegalAccessException
public org.mozilla.javascript.Scriptable internalRequire(String name, org.mozilla.javascript.Context cx) throws InstantiationException, IllegalAccessException, InvocationTargetException
@JSFunction public static Object getCached(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func)
@JSFunction
public static boolean exists(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func)
@JSFunction public static Object getSource(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func)
@JSGetter(value="wrapper") public Object getWrapper()
Copyright © 2016 Apigee Corporation. All Rights Reserved.