org.mozilla.javascript

Class NativeJavaMethod

public class NativeJavaMethod extends BaseFunction

This class reflects Java methods into the JavaScript environment and handles overloading of methods.

Author: Mike Shaver

See Also: NativeJavaArray NativeJavaPackage NativeJavaClass

Constructor Summary
NativeJavaMethod(Method method, String name)
Method Summary
Objectcall(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
StringgetFunctionName()
StringtoString()

Constructor Detail

NativeJavaMethod

public NativeJavaMethod(Method method, String name)

Method Detail

call

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

getFunctionName

public String getFunctionName()

toString

public String toString()