com.mindoo.xpages2eclipse.tools
Class JavaScriptPrinter

java.lang.Object
  extended by com.mindoo.xpages2eclipse.tools.JavaScriptPrinter

public class JavaScriptPrinter
extends java.lang.Object

Helper class that can be used to get the source code for a SSJS function of IBM's JavaScript engine


Constructor Summary
JavaScriptPrinter()
           
 
Method Summary
static java.lang.String[] getJSCode(java.lang.Object o)
          The method returns an array of two String: element 1 is the name of the passed JavaScript function, element 2 is the actual source code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptPrinter

public JavaScriptPrinter()
Method Detail

getJSCode

public static java.lang.String[] getJSCode(java.lang.Object o)
                                    throws InterpretException
The method returns an array of two String: element 1 is the name of the passed JavaScript function, element 2 is the actual source code

Parameters:
func - JavaScript function
Returns:
array [javascript function name, javascript function source]
Throws:
InterpretException