public abstract class NativeFunction extends BaseFunction
ScriptableObject.KeyComparator
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
NativeFunction() |
Modifier and Type | Method and Description |
---|---|
int |
getArity() |
DebuggableScript |
getDebuggableView() |
java.lang.String |
getEncodedSource()
Get encoded source string.
|
int |
getLength() |
void |
initScriptFunction(Context cx,
Scriptable scope) |
void |
initScriptFunction(Context cx,
Scriptable scope,
boolean es6GeneratorFunction) |
java.lang.String |
jsGet_name()
Deprecated.
Use
BaseFunction.getFunctionName() instead.
For backwards compatibility keep an old method name used by
Batik and possibly others. |
java.lang.Object |
resumeGenerator(Context cx,
Scriptable scope,
int operation,
java.lang.Object state,
java.lang.Object value)
Resume execution of a suspended generator.
|
call, construct, createObject, execIdCall, getClassName, getFunctionName, getTypeOf, hasInstance, setImmunePrototypeProperty
activatePrototypeMap, defineOwnProperty, delete, delete, exportAsJSClass, get, get, getAttributes, getAttributes, has, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, put, put, setAttributes
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, hasProperty, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, delete, get, get, getDefaultValue, getIds, getParentScope, getPrototype, has, has, put, put, setParentScope, setPrototype
public final void initScriptFunction(Context cx, Scriptable scope)
public final void initScriptFunction(Context cx, Scriptable scope, boolean es6GeneratorFunction)
public int getLength()
getLength
in class BaseFunction
public int getArity()
getArity
in class BaseFunction
@Deprecated public java.lang.String jsGet_name()
BaseFunction.getFunctionName()
instead.
For backwards compatibility keep an old method name used by
Batik and possibly others.public java.lang.String getEncodedSource()
public DebuggableScript getDebuggableView()
public java.lang.Object resumeGenerator(Context cx, Scriptable scope, int operation, java.lang.Object state, java.lang.Object value)
cx
- The current contextscope
- Scope for the parent generator functionoperation
- The resumption operation (next, send, etc.. )state
- The generator state (has locals, stack, etc.)value
- The return value of yield (if required).Copyright © 2010 - 2023 Adobe. All Rights Reserved