|
||||||||||
| 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.IfHasDeclarationStrategy<B>
public class IfHasDeclarationStrategy<B extends TemplateBlock>
Evalute the body of the tag if the specified type has a declaration. If the specified type is an array type, the body will not be evaluated.
| Constructor Summary | |
|---|---|
IfHasDeclarationStrategy()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDeclarationVar()
The variable to which to assign the declaration variable, if it exists. |
com.sun.mirror.type.TypeMirror |
getType()
The type on which to check for a declaration. |
boolean |
preProcess(B block,
TemplateOutput<B> output,
TemplateModel model)
Pushes this strategy on the stack and redirects the output. |
void |
setDeclarationVar(java.lang.String declarationVar)
The variable to which to assign the declaration variable, if it exists. |
void |
setType(com.sun.mirror.type.TypeMirror type)
The type on which to check for a declaration. |
| Methods inherited from class net.sf.jelly.apt.strategies.TemplateBlockStrategy |
|---|
postProcess, 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 IfHasDeclarationStrategy()
| 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
TemplateExceptionpublic com.sun.mirror.type.TypeMirror getType()
public void setType(com.sun.mirror.type.TypeMirror type)
type - The type on which to check for a declaration.public java.lang.String getDeclarationVar()
public void setDeclarationVar(java.lang.String declarationVar)
declarationVar - The variable to which to assign the declaration variable, if it exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||