public class TopLevelFunctions
extends org.mozilla.javascript.ImporterTopLevel
| Constructor and Description |
|---|
TopLevelFunctions(ExtensionContext ectx,
org.mozilla.javascript.Context cx,
java.net.URI duDir) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
activityName(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
This method is exposed to the JS environment and returns the activity
name of the running PI.
|
static org.mozilla.javascript.xml.XMLObject |
dom2js(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
This method is exposed to the JS environment and allows converting from
W3C DOM nodes to JavaScript E4X objects.
|
static java.lang.String |
domToString(org.w3c.dom.Node n) |
static org.w3c.dom.Node |
js2dom(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
This method is exposed to the JS environment and allows converting from
JavaScript E4X objects to W3C DOM nodes.
|
static void |
load(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
This methods is exposed to the JS environment and supports loading
JavaScript libraries from the deployment unit directory.
|
static long |
pid(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
This method is exposed to the JS environment and returns the process
instance ID of the running PI.
|
static void |
print(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Allows printing debug output to the console.
|
static void |
throwFault(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
This method is exposed to the JS environment and allows users to
throw BPEL faults.
|
execIdCall, findPrototypeId, get, getClassName, has, importPackage, init, initPrototypeId, initStandardObjectsactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultPut, delete, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdValueassociateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototypepublic TopLevelFunctions(ExtensionContext ectx, org.mozilla.javascript.Context cx, java.net.URI duDir) throws java.lang.Exception
java.lang.Exceptionpublic static void print(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
org.apache.ode.extension.e4x.JavaScriptConsole.
The target log level is INFO.public static void load(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static long pid(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static java.lang.String activityName(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static org.w3c.dom.Node js2dom(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static org.mozilla.javascript.xml.XMLObject dom2js(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static void throwFault(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
throws FaultException
FaultExceptionpublic static java.lang.String domToString(org.w3c.dom.Node n)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionCopyright © 2021 WSO2. All Rights Reserved.