org.mozilla.javascript
Class NativeFunction
- Callable, ConstProperties, DebuggableObject, Function, IdFunctionCall, Scriptable, Serializable
public abstract class NativeFunction
This class implements the Function native object.
See ECMA 15.3.
call , construct , createObject , execIdCall , fillConstructorProperties , findInstanceIdInfo , findPrototypeId , getArity , getClassName , getClassPrototype , getFunctionName , getInstanceIdName , getInstanceIdValue , getLength , getMaxInstanceId , hasInstance , initPrototypeId , setImmunePrototypeProperty , setInstanceIdValue |
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 |
associateValue , callMethod , callMethod , defineClass , defineClass , defineClass , defineConst , defineConstProperty , defineFunctionProperties , defineProperty , defineProperty , defineProperty , defineProperty , delete , delete , deleteProperty , deleteProperty , equivalentValues , get , get , getAllIds , getAssociatedValue , getAttributes , getAttributes , getAttributes , getAttributes , getClassName , getClassPrototype , getDefaultValue , getDefaultValue , getFunctionPrototype , getGetterOrSetter , getIds , getObjectPrototype , getParentScope , getProperty , getProperty , getPropertyIds , getPrototype , getTopLevelScope , getTopScopeValue , has , has , hasInstance , hasProperty , hasProperty , isConst , isSealed , put , put , putConst , putConstProperty , putProperty , putProperty , redefineProperty , sealObject , setAttributes , setAttributes , setAttributes , setAttributes , setGetterOrSetter , setParentScope , setPrototype |
getEncodedSource
public String getEncodedSource()
Get encoded source string.
getLanguageVersion
protected abstract int getLanguageVersion()
getParamAndVarCount
protected abstract int getParamAndVarCount()
Get number of declared parameters and variables defined through var
statements.
getParamCount
protected abstract int getParamCount()
Get number of declared parameters. It should be 0 for scripts.
getParamOrVarConst
protected abstract 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.
getParamOrVarName
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.
jsGet_name
public String jsGet_name()
Use BaseFunction.getFunctionName()
instead.
For backwards compatibility keep an old method name used by
Batik and possibly others.