|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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>
public class TypeDeclarationLoopStrategy<B extends TemplateBlock>
Evaluates its body for each type declaration
.
ClassDeclaration
s will be included and InterfaceDeclaration
s will NOT be included.
Constructor Summary | |
---|---|
TypeDeclarationLoopStrategy()
|
Method Summary | |
---|---|
java.util.Collection<com.sun.mirror.declaration.TypeDeclaration> |
getAllDeclarationsToConsiderForAnnotationFiltering()
The base collection of types over which to iterate. |
protected java.util.Collection<com.sun.mirror.declaration.TypeDeclaration> |
getAllTypeDeclarations()
Get all type declarations from the annotation
processor environment . |
protected com.sun.mirror.apt.AnnotationProcessorEnvironment |
getAnnotationProcessorEnvironment()
The current annotation processor environment. |
com.sun.mirror.declaration.TypeDeclaration |
getCurrentDeclaration()
The current declaration in the loop. |
protected com.sun.mirror.declaration.PackageDeclaration |
getCurrentPackageDeclaration()
Gets the current declaration (in a loop). |
com.sun.mirror.declaration.PackageDeclaration |
getPackage()
The package declaration containing the types. |
boolean |
isIncludeClasses()
Whether to include classes in the collection of types over which to iterate. |
boolean |
isIncludeInterfaces()
Whether to include interfaces in the collection of types over which to iterate. |
void |
setIncludeClasses(boolean includeClasses)
Whether to include classes in the collection of types over which to iterate. |
void |
setIncludeInterfaces(boolean includeInterfaces)
Whether to include interfaces in the collection of types over which to iterate. |
void |
setPackage(com.sun.mirror.declaration.PackageDeclaration pckg)
The package declaration containing the types. |
Methods inherited from class net.sf.jelly.apt.strategies.AnnotationFilterableDeclarationLoopStrategy |
---|
getAnnotation, getAnnotationVar, getDeclarations, getExcludes, hasAnnotation, setAnnotation, setAnnotationVar, setExcludes, setupModelForLoop |
Methods inherited from class net.sf.jelly.apt.strategies.DeclarationLoopStrategy |
---|
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 TypeDeclarationLoopStrategy()
Method Detail |
---|
public java.util.Collection<com.sun.mirror.declaration.TypeDeclaration> getAllDeclarationsToConsiderForAnnotationFiltering() throws MissingParameterException
getAllDeclarationsToConsiderForAnnotationFiltering
in class AnnotationFilterableDeclarationLoopStrategy<com.sun.mirror.declaration.TypeDeclaration,B extends TemplateBlock>
MissingParameterException
protected java.util.Collection<com.sun.mirror.declaration.TypeDeclaration> getAllTypeDeclarations() throws MissingParameterException
annotation
processor environment
.
MissingParameterException
protected com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
public boolean isIncludeInterfaces()
public void setIncludeInterfaces(boolean includeInterfaces)
includeInterfaces
- Whether to include interfaces in the collection of types over which to iterate.public boolean isIncludeClasses()
public void setIncludeClasses(boolean includeClasses)
includeClasses
- Whether to include classes in the collection of types over which to iterate.public com.sun.mirror.declaration.PackageDeclaration getPackage()
public void setPackage(com.sun.mirror.declaration.PackageDeclaration pckg)
pckg
- The package declaration containing the types.public com.sun.mirror.declaration.TypeDeclaration getCurrentDeclaration()
DeclarationLoopStrategy
getCurrentDeclaration
in class DeclarationLoopStrategy<com.sun.mirror.declaration.TypeDeclaration,B extends TemplateBlock>
protected com.sun.mirror.declaration.PackageDeclaration getCurrentPackageDeclaration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |