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

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

public class PrimitiveWrapperStrategy<B extends TemplateBlock>
extends TemplateValueStrategy<B>

Outputs the name of the wrapper for the primitive specified by the "type" parameter.

Author:
Ryan Heaton

Constructor Summary
PrimitiveWrapperStrategy()
           
 
Method Summary
 com.sun.mirror.type.TypeMirror getType()
          The type to check for primitiveness.
protected  java.lang.String getValue()
          Get the value to write to the template output.
 void setType(com.sun.mirror.type.TypeMirror type)
          The type to check for primitiveness.
 
Methods inherited from class net.sf.jelly.apt.strategies.TemplateValueStrategy
postProcess, preProcess, 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

PrimitiveWrapperStrategy

public PrimitiveWrapperStrategy()
Method Detail

getValue

protected java.lang.String getValue()
                             throws TemplateException
Description copied from class: TemplateValueStrategy
Get the value to write to the template output.

Specified by:
getValue in class TemplateValueStrategy<B extends TemplateBlock>
Returns:
The value to write to the template output.
Throws:
TemplateException

getType

public com.sun.mirror.type.TypeMirror getType()
The type to check for primitiveness.

Returns:
The type to check for primitiveness.

setType

public void setType(com.sun.mirror.type.TypeMirror type)
The type to check for primitiveness.

Parameters:
type - The type to check for primitiveness.