public abstract class AbstractAnnotationScanner extends Object implements AnnotationScanner
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
annotations
holds the annotations of interest to the specific type of scanner
|
Constructor and Description |
---|
AbstractAnnotationScanner()
Creates a new instance of AbstractAnnotationScanner
|
Modifier and Type | Method and Description |
---|---|
static Set<String> |
constantPoolToFQCN(Set<String> annotations)
For a set of annotations removes first and last character and replaces any / with .
|
Set<String> |
getAnnotations()
Returns a list of FQCN of annotations we are interested in.
|
protected abstract void |
init(Set<String> annotationsSet)
Invoked so the concrete subclass can populate the annotations set.
|
boolean |
isAnnotation(String value)
Test if the passed constant pool string is a reference to
a Type.TYPE annotation of a J2EE component
|
public AbstractAnnotationScanner()
protected abstract void init(Set<String> annotationsSet)
Concrete implementations of this method should add to the set one or more Strings corresponding to the annotations of interest.
annotationsSet
- the Set object to be populatedpublic boolean isAnnotation(String value)
isAnnotation
in interface AnnotationScanner
public Set<String> getAnnotations()
AnnotationScanner
getAnnotations
in interface AnnotationScanner
Copyright © 2020. All rights reserved.