org.firej.writers.velocity
Class VelocityWriter

java.lang.Object
  extended by org.firej.writers.Writer
      extended by org.firej.writers.velocity.VelocityWriter
Direct Known Subclasses:
BytecodeDirectWriter, BytecodeVelocityWriter, FileVelocityWriter, JavaVelocityWriter

public abstract class VelocityWriter
extends Writer

Author:
Vassilios Karakoidas (bkarak@aueb.gr)

Field Summary
protected  VelocityEngine engine
           
protected  java.lang.String template
           
 
Fields inherited from class org.firej.writers.Writer
WORK_DIR
 
Constructor Summary
protected VelocityWriter(java.lang.String template)
           
 
Method Summary
 Regex compile(DFA dfa, java.lang.String regex)
           
 java.lang.String getDescription()
          Returns a description for the writer
protected  java.io.StringWriter prepare(DFA dfa, java.lang.String regex, java.lang.String filename)
           
 
Methods inherited from class org.firej.writers.Writer
compile, getName, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

protected VelocityEngine engine

template

protected java.lang.String template
Constructor Detail

VelocityWriter

protected VelocityWriter(java.lang.String template)
Method Detail

prepare

protected java.io.StringWriter prepare(DFA dfa,
                                       java.lang.String regex,
                                       java.lang.String filename)

compile

public Regex compile(DFA dfa,
                     java.lang.String regex)
Overrides:
compile in class Writer

getDescription

public java.lang.String getDescription()
Description copied from class: Writer
Returns a description for the writer

Specified by:
getDescription in class Writer