org.mozilla.javascript

Class NativeJavaConstructor

public class NativeJavaConstructor extends BaseFunction

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.

Author: Frank Mitchell

See Also: NativeJavaMethod NativeJavaPackage NativeJavaClass

Constructor Summary
NativeJavaConstructor(MemberBox ctor)
Method Summary
Objectcall(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
StringgetFunctionName()
StringtoString()

Constructor Detail

NativeJavaConstructor

public NativeJavaConstructor(MemberBox ctor)

Method Detail

call

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

getFunctionName

public String getFunctionName()

toString

public String toString()