org.mozilla.javascript
Class NativeJavaConstructor
- Callable, DebuggableObject, Function, IdFunctionCall, Scriptable, Serializable
public class NativeJavaConstructor
This class reflects a single Java constructor into the JavaScript
environment. It satisfies a request for an overloaded constructor,
as introduced in LiveConnect 3.
All NativeJavaConstructors behave as JSRef `bound' methods, in that they
always construct the same NativeJavaClass regardless of any reparenting
that may occur.
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 , defineFunctionProperties , defineProperty , defineProperty , defineProperty , defineProperty , delete , delete , deleteProperty , deleteProperty , equivalentValues , get , get , getAllIds , getAssociatedValue , getAttributes , getAttributes , getAttributes , getAttributes , getClassName , getClassPrototype , getDefaultValue , getFunctionPrototype , getIds , getObjectPrototype , getParentScope , getProperty , getProperty , getPropertyIds , getPrototype , getTopLevelScope , getTopScopeValue , has , has , hasInstance , hasProperty , hasProperty , isSealed , put , put , putProperty , putProperty , sealObject , setAttributes , setAttributes , setAttributes , setAttributes , setParentScope , setPrototype |
NativeJavaConstructor
public NativeJavaConstructor(org.mozilla.javascript.MemberBox ctor)
call
public Object call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Perform the call.
- call in interface Function
- call in interface Callable
- call in interface BaseFunction
cx
- the current Context for this threadscope
- the scope to use to resolve properties.thisObj
- the JavaScript this
objectargs
- the array of arguments
toString
public String toString()