|
||||||||||
| 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<M,B>
net.sf.jelly.apt.strategies.MemberDeclarationLoopStrategy<M,B>
public abstract class MemberDeclarationLoopStrategy<M extends com.sun.mirror.declaration.MemberDeclaration,B extends TemplateBlock>
Loop tag through a collection of MemberDeclarations. Options are available to
include the superclasses and superinterfaces. By default, the members of superclasses and superinterfaces will
not be included in the loop.
| Constructor Summary | |
|---|---|
MemberDeclarationLoopStrategy()
|
|
| Method Summary | |
|---|---|
java.util.Collection<M> |
getAllDeclarationsToConsiderForAnnotationFiltering()
Get the list of all declarations to consider. |
protected com.sun.mirror.apt.AnnotationProcessorEnvironment |
getAnnotationProcessorEnvironment()
The current annotation processing environment. |
protected com.sun.mirror.declaration.TypeDeclaration |
getCurrentTypeDeclaration()
Gets the current declaration (in a loop). |
com.sun.mirror.declaration.TypeDeclaration |
getDeclaration()
The specified declaration. |
protected abstract java.util.Collection<M> |
getMemberDeclarations(com.sun.mirror.declaration.TypeDeclaration declaration)
Get the desired member declarations of a given declaration. |
protected java.util.Collection<M> |
getSuperclassesMemberDeclarations(com.sun.mirror.declaration.ClassDeclaration type)
Get the member declarations for all superclasses of type. |
protected java.util.Collection<M> |
getSuperinterfacesMemberDeclarations(com.sun.mirror.declaration.TypeDeclaration type)
Get the member declarations for all superinterfaces of type. |
protected boolean |
hidden(M declaration,
java.util.ArrayList<M> declarations)
Determines whether a declaration is hidden by any declaration in the given list. |
boolean |
isIncludeSuperclasses()
Whether to include superclasses. |
boolean |
isIncludeSuperinterfaces()
Whether to include superinterfaces. |
void |
setDeclaration(com.sun.mirror.declaration.TypeDeclaration declaration)
The specified declaration. |
void |
setIncludeSuperclasses(boolean includeSuperclasses)
Whether to include superclasses. |
void |
setIncludeSuperinterfaces(boolean includeSuperinterfaces)
Whether to include superinterfaces. |
| 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 |
|---|
getCurrentDeclaration, 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 MemberDeclarationLoopStrategy()
| Method Detail |
|---|
public java.util.Collection<M> getAllDeclarationsToConsiderForAnnotationFiltering()
throws MissingParameterException
AnnotationFilterableDeclarationLoopStrategy
getAllDeclarationsToConsiderForAnnotationFiltering in class AnnotationFilterableDeclarationLoopStrategy<M extends com.sun.mirror.declaration.MemberDeclaration,B extends TemplateBlock>MissingParameterException
protected boolean hidden(M declaration,
java.util.ArrayList<M> declarations)
declaration - The declaration.declarations - The declaration list.
protected com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
protected java.util.Collection<M> getSuperclassesMemberDeclarations(com.sun.mirror.declaration.ClassDeclaration type)
throws MissingParameterException
type.
type - The class declaration for which to get the member declarations of all superclasses.
MissingParameterException
protected java.util.Collection<M> getSuperinterfacesMemberDeclarations(com.sun.mirror.declaration.TypeDeclaration type)
throws MissingParameterException
type.
type - The class declaration for which to get the member declarations of all superinterfaces.
MissingParameterException
protected abstract java.util.Collection<M> getMemberDeclarations(com.sun.mirror.declaration.TypeDeclaration declaration)
throws MissingParameterException
declaration - The declaration.
MissingParameterExceptionpublic boolean isIncludeSuperclasses()
public void setIncludeSuperclasses(boolean includeSuperclasses)
includeSuperclasses - Whether to include superclasses.public boolean isIncludeSuperinterfaces()
public void setIncludeSuperinterfaces(boolean includeSuperinterfaces)
includeSuperinterfaces - Whether to include superinterfaces.public com.sun.mirror.declaration.TypeDeclaration getDeclaration()
public void setDeclaration(com.sun.mirror.declaration.TypeDeclaration declaration)
declaration - The specified declaration.protected com.sun.mirror.declaration.TypeDeclaration getCurrentTypeDeclaration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||