| com.gargoylesoftware.htmlunit.javascript.MethodWrapper
MethodWrapper | public class MethodWrapper extends ScriptableObject implements Function(Code) | | Wraps a java method to make it available as a javascript function
(more flexible than Rhino's
FunctionObject .
version: $Revision: 2132 $ author: Marc Guillemot |
MethodWrapper | MethodWrapper(String methodName, Class clazz) throws NoSuchMethodException(Code) | | Facility constructor to wrap a method without arguments
Parameters: methodName - the name of the method to wrap Parameters: clazz - the class declaring the method throws: NoSuchMethodException - if the method is no found |
MethodWrapper | MethodWrapper(String methodName, Class clazz, Class[] parameterTypes) throws NoSuchMethodException(Code) | | Wraps a method as a javascript function.
Parameters: methodName - the name of the method to wrap Parameters: clazz - the class declaring the method Parameters: parameterTypes - the types of the method's parameter throws: NoSuchMethodException - if the method is no found |
call | public Object call(Context context, Scriptable scope, Scriptable thisObj, Object[] args)(Code) | | See Also: org.mozilla.javascript.Function.call(ContextScriptableScriptableObject[]) |
construct | public Scriptable construct(Context context, Scriptable scope, Object[] args)(Code) | | See Also: org.mozilla.javascript.Function.construct(ContextScriptableObject[]) |
convertJSArgsToJavaArgs | Object[] convertJSArgsToJavaArgs(Context context, Scriptable scope, Object[] jsArgs)(Code) | | Converts js arguments to java arguments
Parameters: context - the current context Parameters: scope - the current scope Parameters: jsArgs - the javascript arguments the java arguments |
getClassName | public String getClassName()(Code) | | See Also: org.mozilla.javascript.ScriptableObject.getClassName a name based on the method name |
|
|