net.sf.jelly.apt.tags
Class IfHasDeclarationTag

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

public class IfHasDeclarationTag
extends APTJellyTag<IfHasDeclarationStrategy>

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.

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
IfHasDeclarationTag()
           
 
Method Summary
 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.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

IfHasDeclarationTag

public IfHasDeclarationTag()
Method Detail

setType

public void setType(com.sun.mirror.type.TypeMirror type)
The type on which to check for a declaration.

Parameters:
type - The type on which to check for a declaration.

setDeclarationVar

public void setDeclarationVar(java.lang.String declarationVar)
The variable to which to assign the declaration variable, if it exists.

Parameters:
declarationVar - The variable to which to assign the declaration variable, if it exists.