org.lobobrowser.js

Class JavaFunctionObject

Implemented Interfaces:
Function

public class JavaFunctionObject
extends ScriptableObject
implements Function

Constructor Summary

JavaFunctionObject(String name)

Method Summary

void
addMethod(Method m)
Object
call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
Scriptable
construct(Context cx, Scriptable scope, Object[] args)
String
getClassName()
java.lang.Object
getDefaultValue(java.lang.Class hint)

Constructor Details

JavaFunctionObject

public JavaFunctionObject(String name)

Method Details

addMethod

public void addMethod(Method m)

call

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

construct

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

getClassName

public String getClassName()

getDefaultValue

public java.lang.Object getDefaultValue(java.lang.Class hint)