org.mozilla.javascript

Class IdFunctionObject

Implemented Interfaces:
Callable, ConstProperties, DebuggableObject, Function, IdFunctionCall, Scriptable, Serializable

public class IdFunctionObject
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

Constructor Summary

IdFunctionObject(IdFunctionCall idcall, Object tag, int id, String name, int arity, Scriptable scope)
IdFunctionObject(IdFunctionCall idcall, Object tag, int id, int arity)

Method Summary

@Override
Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
@Override
Scriptable createObject(Context cx, Scriptable scope)
@Override
Scriptable getPrototype()
@Override
String getFunctionName()
void
addAsProperty(Scriptable target)
void
exportAsScopeProperty()
boolean
hasTag(Object tag)
void
initFunction(String name, Scriptable scope)
@Override
int getArity()
@Override
int getLength()
void
markAsConstructor(Scriptable prototypeProperty)
int
methodId()
RuntimeException
unknown()

Methods inherited from class org.mozilla.javascript.BaseFunction

Object execIdCall, Object getInstanceIdValue, String getClassName, String getInstanceIdName, boolean hasInstance, call, construct, createObject, getArity, getClassPrototype, getFunctionName, getLength, int findInstanceIdInfo, int findPrototypeId, int getMaxInstanceId, setImmunePrototypeProperty, void fillConstructorProperties, void initPrototypeId, void setInstanceIdValue

Methods inherited from class org.mozilla.javascript.IdScriptableObject

Object get, activatePrototypeMap, addIdFunctionProperty, boolean has, defaultGet, defaultPut, execIdCall, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeId, initPrototypeMethod, initPrototypeValue, instanceIdInfo, int getAttributes, setInstanceIdValue, void delete, void put, void setAttributes

Methods inherited from class org.mozilla.javascript.ScriptableObject

associateValue, avoidObjectDetection, callMethod, callMethod, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, extends Scriptable> String defineClass, extends Scriptable> void defineClass, extends Scriptable> void defineClass, 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, isGetterOrSetter, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype

Constructor Details

IdFunctionObject

public IdFunctionObject(IdFunctionCall idcall,
                        Object tag,
                        int id,
                        String name,
                        int arity,
                        Scriptable scope)

IdFunctionObject

public IdFunctionObject(IdFunctionCall idcall,
                        Object tag,
                        int id,
                        int arity)

Method Details

Object call

public @Override Object call(Context cx,
                             Scriptable scope,
                             Scriptable thisObj,
                             Object[] args)

Scriptable createObject

public @Override Scriptable createObject(Context cx,
                                         Scriptable scope)

Scriptable getPrototype

public @Override Scriptable getPrototype()

String getFunctionName

public @Override String getFunctionName()

addAsProperty

public final void addAsProperty(Scriptable target)

exportAsScopeProperty

public void exportAsScopeProperty()

hasTag

public final boolean hasTag(Object tag)

initFunction

public void initFunction(String name,
                         Scriptable scope)

int getArity

public @Override int getArity()

int getLength

public @Override int getLength()

markAsConstructor

public final void markAsConstructor(Scriptable prototypeProperty)

methodId

public final int methodId()

unknown

public final RuntimeException unknown()