org.sf.codejen.js
Class JsTemplateProcessor

java.lang.Object
  extended by org.sf.codejen.js.JsWorker
      extended by org.sf.codejen.js.JsTemplateProcessor
All Implemented Interfaces:
TemplateProcessor

public class JsTemplateProcessor
extends JsWorker
implements TemplateProcessor

JavaScript-able TemplateProcessor

Author:
Shane Ng
See Also:
TemplateProcessor, JsWorker

Constructor Summary
JsTemplateProcessor()
           
 
Method Summary
 void process(Template template)
          Processes the template.
 
Methods inherited from class org.sf.codejen.js.JsWorker
exec, setModelName, setScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsTemplateProcessor

public JsTemplateProcessor()
Method Detail

process

public void process(Template template)
             throws TemplateException
Description copied from interface: TemplateProcessor
Processes the template.

Specified by:
process in interface TemplateProcessor
Parameters:
template - the template to be processed.
Throws:
TemplateException - if any error is encoutered during process. Code Generator should use Throwable.getCause() to access the wrapped exception.
See Also:
TemplateProcessor.process(Template)