Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.BaseFunction
org.mozilla.javascript.NativeFunction
public abstract class NativeFunction
extends BaseFunction
Field Summary |
Fields inherited from class org.mozilla.javascript.ScriptableObject | |
CONST , DONTENUM , EMPTY , PERMANENT , READONLY , UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable | |
NOT_FOUND |
Method Summary | |
int |
|
DebuggableScript | |
String |
|
protected abstract int | |
int | |
protected abstract int |
|
protected abstract int |
|
protected boolean |
|
protected abstract String |
|
void |
|
String |
|
Object |
|
Methods inherited from class org.mozilla.javascript.BaseFunction | |
call , construct , createObject , execIdCall , fillConstructorProperties , findInstanceIdInfo , findPrototypeId , getArity , getClassName , getClassPrototype , getFunctionName , getInstanceIdName , getInstanceIdValue , getLength , getMaxInstanceId , hasInstance , initPrototypeId , setImmunePrototypeProperty , setInstanceIdValue |
Methods inherited from class org.mozilla.javascript.IdScriptableObject | |
activatePrototypeMap , addIdFunctionProperty , defaultGet , defaultPut , delete , execIdCall , exportAsJSClass , fillConstructorProperties , findInstanceIdInfo , findPrototypeId , get , getAttributes , getInstanceIdName , getInstanceIdValue , getMaxInstanceId , has , hasPrototypeMap , incompatibleCallError , initPrototypeConstructor , initPrototypeId , initPrototypeMethod , initPrototypeValue , instanceIdInfo , put , setAttributes , setInstanceIdValue |
public String getEncodedSource()
Get encoded source string.
protected abstract int getLanguageVersion()
protected abstract int getParamAndVarCount()
Get number of declared parameters and variables defined through var statements.
protected abstract int getParamCount()
Get number of declared parameters. It should be 0 for scripts.
protected boolean getParamOrVarConst(int index)
Get parameter or variable const-ness. If index <32getParamCount()
, then return the const-ness of the corresponding parameter. Otherwise return whether the variable is const.
protected abstract String getParamOrVarName(int index)
Get parameter or variable name. If index <32getParamCount()
, then return the name of the corresponding parameter. Otherwise return the name of variable.
public String jsGet_name()
Deprecated. Use
BaseFunction.getFunctionName()
instead. For backwards compatibility keep an old method name used by Batik and possibly others.
public Object resumeGenerator(Context cx, Scriptable scope, int operation, Object state, Object value)
Resume execution of a suspended generator.
- Parameters:
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).
- Returns:
- The next yielded value (if any)