|
||||||||||
| 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.TemplateLoopStrategy<com.sun.mirror.type.ReferenceType,B>
net.sf.jelly.apt.strategies.ThrownTypeLoopStrategy<B>
public class ThrownTypeLoopStrategy<B extends TemplateBlock>
Iterates through each thrown type of the specified executable declaration.
| Constructor Summary | |
|---|---|
ThrownTypeLoopStrategy()
|
|
| Method Summary | |
|---|---|
protected com.sun.mirror.declaration.ExecutableDeclaration |
getCurrentExecutableDeclaration()
Gets the current declaration (in a loop). |
com.sun.mirror.declaration.ExecutableDeclaration |
getDeclaration()
The specified declaration. |
java.lang.String |
getIndexVar()
Variable in which to store the value of the index. |
protected java.util.Iterator<com.sun.mirror.type.ReferenceType> |
getLoop(TemplateModel model)
Get the loop. |
protected java.util.Collection<com.sun.mirror.type.ReferenceType> |
getThrownTypes()
Get the thrown types. |
java.lang.String |
getVar()
The variable into which to store the current thrown type. |
void |
setDeclaration(com.sun.mirror.declaration.ExecutableDeclaration declaration)
The specified declaration. |
void |
setIndexVar(java.lang.String indexVar)
Variable in which to store the value of the index. |
protected void |
setupModelForLoop(TemplateModel model,
com.sun.mirror.type.ReferenceType thrownType,
int index)
Sets up the model for the current loop. |
void |
setVar(java.lang.String var)
The variable into which to store the current thrown type. |
| Methods inherited from class net.sf.jelly.apt.strategies.TemplateLoopStrategy |
|---|
preProcess, processBody |
| Methods inherited from class net.sf.jelly.apt.strategies.TemplateBlockStrategy |
|---|
postProcess |
| 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 ThrownTypeLoopStrategy()
| Method Detail |
|---|
protected java.util.Iterator<com.sun.mirror.type.ReferenceType> getLoop(TemplateModel model)
throws TemplateException
TemplateLoopStrategy
getLoop in class TemplateLoopStrategy<com.sun.mirror.type.ReferenceType,B extends TemplateBlock>model - The model to use as necessary.
TemplateException
protected void setupModelForLoop(TemplateModel model,
com.sun.mirror.type.ReferenceType thrownType,
int index)
throws TemplateException
TemplateLoopStrategy
setupModelForLoop in class TemplateLoopStrategy<com.sun.mirror.type.ReferenceType,B extends TemplateBlock>model - The model.thrownType - The loop variable.index - The loop index.
TemplateException
protected java.util.Collection<com.sun.mirror.type.ReferenceType> getThrownTypes()
throws MissingParameterException
MissingParameterExceptionpublic java.lang.String getVar()
public void setVar(java.lang.String var)
var - The variable into which to store the current thrown type.public java.lang.String getIndexVar()
public void setIndexVar(java.lang.String indexVar)
indexVar - Variable in which to store the value of the index.public com.sun.mirror.declaration.ExecutableDeclaration getDeclaration()
public void setDeclaration(com.sun.mirror.declaration.ExecutableDeclaration declaration)
declaration - The specified declaration.protected com.sun.mirror.declaration.ExecutableDeclaration getCurrentExecutableDeclaration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||