com.osbcp.jjsw
Class Generator

java.lang.Object
  extended by com.osbcp.jjsw.Generator

public final class Generator
extends java.lang.Object

Generates JavaScript functions to a JavaScript source file based on JavaScriptFunctions.

Author:
Christoffer Pettersson

Method Summary
static void generateTo(java.util.List<java.lang.Class<?>> classes, java.io.File javaScriptFile, boolean addJavaScriptComments)
          Generates JavaScript functions to a JavaScript source file based on JavaScriptFunctions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateTo

public static void generateTo(java.util.List<java.lang.Class<?>> classes,
                              java.io.File javaScriptFile,
                              boolean addJavaScriptComments)
                       throws java.lang.Exception
Generates JavaScript functions to a JavaScript source file based on JavaScriptFunctions.

Parameters:
classes - A list of classes which JavaScript methods that should be exported
javaScriptFile - File where the generated JavaScript source file that should be written
addJavaScriptComments - If additional comments should be added in the generated JavaScript source file
Throws:
java.lang.Exception - If any error occurs