public class CustomFunctionObject
extends org.mozilla.javascript.FunctionObject
JAVA_BOOLEAN_TYPE, JAVA_DOUBLE_TYPE, JAVA_INT_TYPE, JAVA_OBJECT_TYPE, JAVA_SCRIPTABLE_TYPE, JAVA_STRING_TYPE, JAVA_UNSUPPORTED_TYPEId_arguments, Id_arity, Id_length, Id_name, Id_prototype, MAX_INSTANCE_ID| Constructor and Description | 
|---|
CustomFunctionObject(java.lang.String name,
                    java.lang.reflect.Method method,
                    org.mozilla.javascript.Scriptable scope)
Extends the standard Rhino FunctionObject class by allowing to evaluate BSH script methods
 rather than calling builtin Java methods. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
call(org.mozilla.javascript.Context cx,
    org.mozilla.javascript.Scriptable scope,
    org.mozilla.javascript.Scriptable thisObj,
    java.lang.Object[] args)
Extends the call method of the standard Rhino FunctionObject class by evaluating script methods
 rather than builtin Java methods. 
 | 
addAsConstructor, addAsConstructor, convertArg, convertArg, createObject, getArity, getFunctionName, getLength, getMethodOrConstructor, getTypeTagconstruct, execIdCall, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, getClassName, getClassPrototype, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getPrototypeProperty, getTypeOf, hasInstance, hasPrototypeProperty, initPrototypeId, isGeneratorFunction, setImmunePrototypeProperty, setInstanceIdAttributes, setInstanceIdValue, setPrototypeProperty, setPrototypePropertyAttributes, setStandardPropertyAttributes, setupDefaultPrototypeactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, ensureType, exportAsJSClass, findInstanceIdInfo, findPrototypeId, get, get, getAttributes, getAttributes, getOwnPropertyDescriptor, has, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, put, setAttributesapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic CustomFunctionObject(java.lang.String name,
                            java.lang.reflect.Method method,
                            org.mozilla.javascript.Scriptable scope)
name - the name of the functionmethod - the methodscope - enclosing scope of functionpublic java.lang.Object call(org.mozilla.javascript.Context cx,
                             org.mozilla.javascript.Scriptable scope,
                             org.mozilla.javascript.Scriptable thisObj,
                             java.lang.Object[] args)
call in interface org.mozilla.javascript.Callablecall in interface org.mozilla.javascript.Functioncall in class org.mozilla.javascript.FunctionObjectcx - the contextscope - the scope to execute the function relative tothisObj - the JavaScript this objectargs - the argumentsCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence