net.sf.jelly.apt.strategies
Class JavaSourceStrategy<B extends TemplateBlock>

java.lang.Object
  extended by net.sf.jelly.apt.strategies.TemplateStrategyControl<B>
      extended by net.sf.jelly.apt.strategies.TemplateBlockStrategy<B>
          extended by net.sf.jelly.apt.strategies.TemplateOutputRedirectionStrategy<B>
              extended by net.sf.jelly.apt.strategies.JavaSourceStrategy<B>
All Implemented Interfaces:
TemplateStrategy<B>

public class JavaSourceStrategy<B extends TemplateBlock>
extends TemplateOutputRedirectionStrategy<B>

Strategy for getting the output to a new java source file.

Author:
Ryan Heaton

Constructor Summary
JavaSourceStrategy()
           
 
Method Summary
protected  com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
          The current annotation processor environment.
 java.lang.String getName()
          Canonical (fully qualified) name of class whose source is to be written.
 java.io.PrintWriter getWriter()
          Get the writer for the specified java source file.
 void setName(java.lang.String name)
          Canonical (fully qualified) name of class whose source is to be written.
 
Methods inherited from class net.sf.jelly.apt.strategies.TemplateOutputRedirectionStrategy
postProcess, preProcess
 
Methods inherited from class net.sf.jelly.apt.strategies.TemplateBlockStrategy
processBody
 
Methods inherited from class net.sf.jelly.apt.strategies.TemplateStrategyControl
invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSourceStrategy

public JavaSourceStrategy()
Method Detail

getWriter

public java.io.PrintWriter getWriter()
                              throws MissingParameterException,
                                     java.io.IOException
Get the writer for the specified java source file.

Specified by:
getWriter in class TemplateOutputRedirectionStrategy<B extends TemplateBlock>
Returns:
the writer for the specified java source file.
Throws:
MissingParameterException
java.io.IOException

getAnnotationProcessorEnvironment

protected com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
The current annotation processor environment.

Returns:
The current annotation processor environment.

getName

public java.lang.String getName()
Canonical (fully qualified) name of class whose source is to be written.

Returns:
Canonical (fully qualified) name of class whose source is to be written.

setName

public void setName(java.lang.String name)
Canonical (fully qualified) name of class whose source is to be written.

Parameters:
name - Canonical (fully qualified) name of class whose source is to be written.