|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jelly.apt.strategies.TemplateStrategyControl<B> net.sf.jelly.apt.strategies.TemplateBlockStrategy<B> net.sf.jelly.apt.strategies.TemplateLoopStrategy<D,B> net.sf.jelly.apt.strategies.DeclarationLoopStrategy<D,B> net.sf.jelly.apt.strategies.AnnotationFilterableDeclarationLoopStrategy<D,B>
public abstract class AnnotationFilterableDeclarationLoopStrategy<D extends com.sun.mirror.declaration.Declaration,B extends TemplateBlock>
A declaration loop that is filterable by an annotation class.
Constructor Summary | |
---|---|
AnnotationFilterableDeclarationLoopStrategy()
|
Method Summary | |
---|---|
abstract java.util.Collection<D> |
getAllDeclarationsToConsiderForAnnotationFiltering()
Get the list of all declarations to consider. |
java.lang.String |
getAnnotation()
Optional annotation by which to filter the classes. |
java.lang.String |
getAnnotationVar()
The context variable in which to store the annotation, if specified . |
java.util.Collection<D> |
getDeclarations()
The filtered list of declarations. |
java.lang.String |
getExcludes()
Comma-separated list of annotations that will exclude the declaration from the loop. |
protected boolean |
hasAnnotation(D declaration,
java.lang.String annotationName)
Whether the given declaration is annotated with an annotation that has the given (fully-qualified) annotation name. |
void |
setAnnotation(java.lang.String annotation)
Optional annotation by which to filter the classes. |
void |
setAnnotationVar(java.lang.String annotationVar)
The context variable in which to store the annotation, if specified . |
void |
setExcludes(java.lang.String excludes)
Comma-separated list of annotations that will exclude the declaration from the loop. |
protected void |
setupModelForLoop(TemplateModel model,
D declaration,
int index)
Sets up the model for the current loop. |
Methods inherited from class net.sf.jelly.apt.strategies.DeclarationLoopStrategy |
---|
getCurrentDeclaration, getIndexVar, getLoop, getVar, setIndexVar, setVar |
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 AnnotationFilterableDeclarationLoopStrategy()
Method Detail |
---|
protected void setupModelForLoop(TemplateModel model, D declaration, int index) throws TemplateException
TemplateLoopStrategy
setupModelForLoop
in class DeclarationLoopStrategy<D extends com.sun.mirror.declaration.Declaration,B extends TemplateBlock>
model
- The model.declaration
- The loop variable.index
- The loop index.
TemplateException
public abstract java.util.Collection<D> getAllDeclarationsToConsiderForAnnotationFiltering() throws MissingParameterException
MissingParameterException
public java.util.Collection<D> getDeclarations() throws MissingParameterException
getDeclarations
in class DeclarationLoopStrategy<D extends com.sun.mirror.declaration.Declaration,B extends TemplateBlock>
MissingParameterException
protected boolean hasAnnotation(D declaration, java.lang.String annotationName)
declaration
- The declaration.annotationName
- The annotation name.
public java.lang.String getAnnotation()
public void setAnnotation(java.lang.String annotation)
annotation
- Optional annotation by which to filter the classes.public java.lang.String getAnnotationVar()
specified
.
specified
.public void setAnnotationVar(java.lang.String annotationVar)
specified
.
annotationVar
- The context variable in which to store the annotation, if specified
.public java.lang.String getExcludes()
public void setExcludes(java.lang.String excludes)
excludes
- Comma-separated list of annotations that will exclude the declaration from the loop.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |