net.sf.jelly.apt.tags
Class IfHasAnnotationTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jelly.apt.APTJellyTag<IfHasAnnotationStrategy>
          extended by net.sf.jelly.apt.tags.IfHasAnnotationTag
All Implemented Interfaces:
TemplateBlock, org.apache.commons.jelly.Tag

public class IfHasAnnotationTag
extends APTJellyTag<IfHasAnnotationStrategy>

Evalute the body of the tag if the current declaration (in a loop) has a given annotation.

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
IfHasAnnotationTag()
           
 
Method Summary
 void setAnnotation(java.lang.String annotation)
          The annotation to check for.
 void setDeclaration(com.sun.mirror.declaration.Declaration declaration)
          The declaration on which to evaluate whether exists the annotation.
 void setVar(java.lang.String var)
          The name of the variable to which to assign the annotation.
 
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

IfHasAnnotationTag

public IfHasAnnotationTag()
Method Detail

setAnnotation

public void setAnnotation(java.lang.String annotation)
The annotation to check for.

Parameters:
annotation - The annotation to check for.

setVar

public void setVar(java.lang.String var)
The name of the variable to which to assign the annotation.

Parameters:
var - The name of the variable to which to assign the annotation.

setDeclaration

public void setDeclaration(com.sun.mirror.declaration.Declaration declaration)
The declaration on which to evaluate whether exists the annotation.

Parameters:
declaration - The declaration on which to evaluate whether exists the annotation.