FESI.jslib
Class JSFunctionAdapter
java.lang.Object
|
+--FESI.jslib.JSFunctionAdapter
- All Implemented Interfaces:
- JSFunction
- public class JSFunctionAdapter
- extends java.lang.Object
- implements JSFunction
Implements a default class to ease the implementation of
function objects.
Method Summary |
java.lang.Object |
doCall(JSObject thisObject,
java.lang.Object[] args)
Call the specified EcmaScript method of this object |
java.lang.Object |
doNew(JSObject thisObject,
java.lang.Object[] args)
Create a new object, using the specified EcmaScript method of this object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSFunctionAdapter
public JSFunctionAdapter()
doCall
public java.lang.Object doCall(JSObject thisObject,
java.lang.Object[] args)
throws JSException
- Call the specified EcmaScript method of this object
- Specified by:
doCall
in interface JSFunction
- Parameters:
thisObject
- The object for which the function is called.args
- An array of parameters.
- Returns:
- The result of the evaluation
- Throws:
JSException
- For any error during interpretation
doNew
public java.lang.Object doNew(JSObject thisObject,
java.lang.Object[] args)
throws JSException
- Create a new object, using the specified EcmaScript method of this object
- Specified by:
doNew
in interface JSFunction
- Parameters:
thisObject
- The object for which the function is called.args
- An array of parameters.
- Returns:
- The result of the evaluation
- Throws:
JSException
- For any error during interpretation
IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights
reserved. US Government Users Restricted Rights
Use, duplication or disclosure restricted by GSA ADP Schedule
Contract with IBM Corp.