net.sf.jelly.apt.strategies
Class NestedTypeDeclarationLoopStrategy<B extends TemplateBlock>
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<com.sun.mirror.declaration.TypeDeclaration,B>
net.sf.jelly.apt.strategies.TypeDeclarationLoopStrategy<B>
net.sf.jelly.apt.strategies.NestedTypeDeclarationLoopStrategy<B>
- All Implemented Interfaces:
- TemplateStrategy<B>
public class NestedTypeDeclarationLoopStrategy<B extends TemplateBlock>
- extends TypeDeclarationLoopStrategy<B>
Evaluates its body for all nested types in a type declaration.
- Author:
- Ryan Heaton
Method Summary |
protected java.util.Collection<com.sun.mirror.declaration.TypeDeclaration> |
getAllTypeDeclarations()
Limits the loop to all type declarations of the current type declaration. |
protected com.sun.mirror.declaration.TypeDeclaration |
getCurrentTypeDeclaration()
Gets the current declaration (in a loop). |
com.sun.mirror.declaration.TypeDeclaration |
getDeclaration()
The declaration for which to iterate over all nested types. |
void |
setDeclaration(com.sun.mirror.declaration.TypeDeclaration declaration)
The declaration for which to iterate over all nested types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NestedTypeDeclarationLoopStrategy
public NestedTypeDeclarationLoopStrategy()
getAllTypeDeclarations
protected java.util.Collection<com.sun.mirror.declaration.TypeDeclaration> getAllTypeDeclarations()
throws MissingParameterException
- Limits the loop to all type declarations of the current type declaration.
- Overrides:
getAllTypeDeclarations
in class TypeDeclarationLoopStrategy<B extends TemplateBlock>
- Returns:
- The collection of nested types.
- Throws:
MissingParameterException
getDeclaration
public com.sun.mirror.declaration.TypeDeclaration getDeclaration()
- The declaration for which to iterate over all nested types.
- Returns:
- The declaration for which to iterate over all nested types.
setDeclaration
public void setDeclaration(com.sun.mirror.declaration.TypeDeclaration declaration)
- The declaration for which to iterate over all nested types.
- Parameters:
declaration
- The declaration for which to iterate over all nested types.
getCurrentTypeDeclaration
protected com.sun.mirror.declaration.TypeDeclaration getCurrentTypeDeclaration()
- Gets the current declaration (in a loop).
- Returns:
- the current declaration (in a loop).