|
||||||||||
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.WrapIfPrimitiveStrategy<B>
public class WrapIfPrimitiveStrategy<B extends TemplateBlock>
Writes out code that boxes its body in a wrapper object constructor if the specified type is primitive.
Constructor Summary | |
---|---|
WrapIfPrimitiveStrategy()
|
Method Summary | |
---|---|
com.sun.mirror.type.TypeMirror |
getType()
The type to check for primitiveness. |
void |
postProcess(B block,
TemplateOutput<B> output,
TemplateModel model)
Pops this strategy off the stack. |
boolean |
preProcess(B block,
TemplateOutput<B> output,
TemplateModel model)
Pushes this strategy on the stack and redirects the output. |
void |
setType(com.sun.mirror.type.TypeMirror type)
The type to check for primitiveness. |
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 WrapIfPrimitiveStrategy()
Method Detail |
---|
public boolean preProcess(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
TemplateBlockStrategy
preProcess
in class TemplateBlockStrategy<B extends TemplateBlock>
block
- The block.output
- The output.model
- The model.
java.io.IOException
TemplateException
public void postProcess(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
TemplateBlockStrategy
postProcess
in class TemplateBlockStrategy<B extends TemplateBlock>
block
- The block.output
- The output.model
- The model.
java.io.IOException
TemplateException
public com.sun.mirror.type.TypeMirror getType()
public void setType(com.sun.mirror.type.TypeMirror type)
type
- The type to check for primitiveness.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |