|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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.FileStrategy<B>
public class FileStrategy<B extends TemplateBlock>
Strategy for getting the output to a new file relative to the output directory specified for APT.
| Constructor Summary | |
|---|---|
FileStrategy()
|
|
| Method Summary | |
|---|---|
protected com.sun.mirror.apt.AnnotationProcessorEnvironment |
getAnnotationProcessorEnvironment()
The current annotation processor environment. |
java.lang.String |
getCharset()
The name of the charset to use. |
java.lang.String |
getName()
The name of the file. |
java.lang.String |
getPackage()
Package relative to which the file should be named, or the empty string if none. |
java.io.PrintWriter |
getWriter()
Return the writer to the specified file. |
void |
setCharset(java.lang.String charset)
The name of the charset to use. |
void |
setName(java.lang.String name)
The name of the file. |
void |
setPackage(java.lang.String pkg)
Package relative to which the file should be named, or the empty string if none. |
| 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 |
|---|
public FileStrategy()
| Method Detail |
|---|
public java.io.PrintWriter getWriter()
throws java.io.IOException,
MissingParameterException
getWriter in class TemplateOutputRedirectionStrategy<B extends TemplateBlock>java.io.IOException
MissingParameterExceptionprotected com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the file.public java.lang.String getPackage()
public void setPackage(java.lang.String pkg)
pkg - Package relative to which the file should be named, or the empty string if none.public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
charset - The name of the charset to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||