net.sf.jelly.apt.tags
Class AnnotationFilterableDeclarationLoopTag<S extends AnnotationFilterableDeclarationLoopStrategy>

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jelly.apt.APTJellyTag<S>
          extended by net.sf.jelly.apt.tags.DeclarationLoopTag<S>
              extended by net.sf.jelly.apt.tags.AnnotationFilterableDeclarationLoopTag<S>
All Implemented Interfaces:
TemplateBlock, org.apache.commons.jelly.Tag
Direct Known Subclasses:
ForAllPackagesTag, ForAllParametersTag, ForAllTypesTag, MemberDeclarationLoopTag

public abstract class AnnotationFilterableDeclarationLoopTag<S extends AnnotationFilterableDeclarationLoopStrategy>
extends DeclarationLoopTag<S>

A declaration loop tag that is filterable by an annotation class.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.APTJellyTag
strategy
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
protected AnnotationFilterableDeclarationLoopTag(S strategy)
           
 
Method Summary
 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.
 
Methods inherited from class net.sf.jelly.apt.tags.DeclarationLoopTag
setIndexVar, setVar
 
Methods inherited from class net.sf.jelly.apt.APTJellyTag
doTag, getContext, getStrategy
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationFilterableDeclarationLoopTag

protected AnnotationFilterableDeclarationLoopTag(S strategy)
Method Detail

setAnnotation

public void setAnnotation(java.lang.String annotation)
Optional annotation by which to filter the classes.

Parameters:
annotation - Optional annotation by which to filter the classes.

setAnnotationVar

public void setAnnotationVar(java.lang.String annotationVar)
The context variable in which to store the annotation, if specified.

Parameters:
annotationVar - The context variable in which to store the annotation, if specified.

setExcludes

public void setExcludes(java.lang.String excludes)
Comma-separated list of annotations that will exclude the declaration from the loop.

Parameters:
excludes - Comma-separated list of annotations that will exclude the declaration from the loop.