net.sf.jelly.apt.strategies
Class JavaSourceStrategy<B extends TemplateBlock>
java.lang.Object
net.sf.jelly.apt.strategies.TemplateStrategyControl<B>
net.sf.jelly.apt.strategies.TemplateBlockStrategy<B>
net.sf.jelly.apt.strategies.TemplateOutputRedirectionStrategy<B>
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaSourceStrategy
public JavaSourceStrategy()
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.