|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.BaseFunction
org.mozilla.javascript.NativeFunction
public abstract class NativeFunction
This class implements the Function native object. See ECMA 15.3.
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 |
Constructor Summary | |
---|---|
NativeFunction()
|
Method Summary | |
---|---|
int |
getArity()
|
DebuggableScript |
getDebuggableView()
|
java.lang.String |
getEncodedSource()
Get encoded source string. |
protected abstract int |
getLanguageVersion()
|
int |
getLength()
|
protected abstract int |
getParamAndVarCount()
Get number of declared parameters and variables defined through var statements. |
protected abstract int |
getParamCount()
Get number of declared parameters. |
protected abstract boolean |
getParamOrVarConst(int index)
Get parameter or variable const-ness. |
protected abstract java.lang.String |
getParamOrVarName(int index)
Get parameter or variable name. |
void |
initScriptFunction(Context cx,
Scriptable scope)
|
java.lang.String |
jsGet_name()
Deprecated. Use BaseFunction.getFunctionName() instead.
For backwards compatibility keep an old method name used by
Batik and possibly others. |
Methods inherited from class org.mozilla.javascript.BaseFunction |
---|
call, construct, createObject, execIdCall, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, getClassName, getClassPrototype, getFunctionName, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, hasInstance, initPrototypeId, setImmunePrototypeProperty, setInstanceIdValue |
Methods inherited from class org.mozilla.javascript.IdScriptableObject |
---|
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultPut, delete, exportAsJSClass, get, getAttributes, has, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, put, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mozilla.javascript.Scriptable |
---|
delete, delete, get, get, getDefaultValue, getIds, getParentScope, getPrototype, has, has, put, put, setParentScope, setPrototype |
Constructor Detail |
---|
public NativeFunction()
Method Detail |
---|
public final void initScriptFunction(Context cx, Scriptable scope)
public int getLength()
getLength
in class BaseFunction
public int getArity()
getArity
in class BaseFunction
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()
protected abstract int getLanguageVersion()
protected abstract int getParamCount()
protected abstract int getParamAndVarCount()
protected abstract java.lang.String getParamOrVarName(int index)
getParamCount()
, then return the name of the
corresponding parameter. Otherwise return the name of variable.
protected abstract boolean getParamOrVarConst(int index)
getParamCount()
, then return the const-ness
of the corresponding parameter. Otherwise return whether the variable is
const.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |