public class BoundFunction extends BaseFunction
hasPrototypePropertyScriptableObject.KeyComparatorCONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description | 
|---|
| BoundFunction(Context cx,
             Scriptable scope,
             Callable targetFunction,
             Scriptable boundThis,
             java.lang.Object[] boundArgs) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | call(Context cx,
    Scriptable scope,
    Scriptable thisObj,
    java.lang.Object[] extraArgs)Should be overridden. | 
| Scriptable | construct(Context cx,
         Scriptable scope,
         java.lang.Object[] extraArgs)Call the function as a constructor. | 
| int | getLength() | 
| boolean | hasInstance(Scriptable instance)Implements the instanceof operator for JavaScript Function objects. | 
createObject, execIdCall, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, getArity, getClassName, getClassPrototype, getFunctionName, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getPrototypeProperty, getTypeOf, hasPrototypeProperty, initPrototypeId, setImmunePrototypeProperty, setInstanceIdAttributes, setInstanceIdValueactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, exportAsJSClass, findInstanceIdInfo, findPrototypeId, get, get, getAttributes, getOwnPropertyDescriptor, has, has, hasPrototypeMap, incompatibleCallError, 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, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, 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, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, delete, get, get, getDefaultValue, getIds, getParentScope, getPrototype, has, has, put, put, setParentScope, setPrototypepublic BoundFunction(Context cx, Scriptable scope, Callable targetFunction, Scriptable boundThis, java.lang.Object[] boundArgs)
public java.lang.Object call(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] extraArgs)
BaseFunctioncall in interface Callablecall in interface Functioncall in class BaseFunctioncx - the current Context for this threadscope - the scope to execute the function relative to. This is
              set to the value returned by getParentScope() except
              when the function is called from a closure.thisObj - the JavaScript this objectextraArgs - the array of argumentspublic Scriptable construct(Context cx, Scriptable scope, java.lang.Object[] extraArgs)
Functionnew operator.  This method is
 expected to create a new object and return it.construct in interface Functionconstruct in class BaseFunctioncx - the current Context for this threadscope - an enclosing scope of the caller except
              when the function is called from a closure.extraArgs - the array of argumentspublic boolean hasInstance(Scriptable instance)
BaseFunction
 
 foo = new Foo();
 foo instanceof Foo;  // true
 
hasInstance in interface ScriptablehasInstance in class BaseFunctioninstance - The value that appeared on the LHS of the instanceof
              operatorpublic int getLength()
getLength in class BaseFunction