Package net.sf.basedb.util.annotations
Class InheritAnnotationsManager.AnnotationTypeFilter
- java.lang.Object
-
- net.sf.basedb.util.annotations.InheritAnnotationsManager.AnnotationTypeFilter
-
- All Implemented Interfaces:
Filter<AnnotationSnapshot>
- Enclosing class:
- InheritAnnotationsManager
static class InheritAnnotationsManager.AnnotationTypeFilter extends Object implements Filter<AnnotationSnapshot>
Filter for finding annotation types to process.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<Integer>
annotationTypes
private Annotation.Source
source
-
Constructor Summary
Constructors Constructor Description AnnotationTypeFilter(Annotation.Source source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(InheritSpecification spec)
boolean
evaluate(AnnotationSnapshot snapshot)
Evaluate if the given object should pass the filter or not.
-
-
-
Field Detail
-
source
private final Annotation.Source source
-
-
Constructor Detail
-
AnnotationTypeFilter
AnnotationTypeFilter(Annotation.Source source)
-
-
Method Detail
-
evaluate
public boolean evaluate(AnnotationSnapshot snapshot)
Description copied from interface:Filter
Evaluate if the given object should pass the filter or not.- Specified by:
evaluate
in interfaceFilter<AnnotationSnapshot>
- Parameters:
snapshot
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-
add
void add(InheritSpecification spec)
-
-