public abstract class Reader extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<AnnotationDiscoveryListener> |
annotationDiscoveryListeners
The annotation discovery listeners.
|
private List<String> |
validAnnotations
The valid annotations.
|
| Constructor and Description |
|---|
Reader()
Instantiates a new reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accumulateAnnotations(List<String> annotations,
javassist.bytecode.AnnotationsAttribute annatt)
Accumulate annotations.
|
void |
addAnnotationDiscoveryListeners(AnnotationDiscoveryListener annotationDiscoveryListener)
Adds the annotation discovery listeners.
|
void |
addValidAnnotations(String annotation)
Adds the valid annotations.
|
abstract URL[] |
findResources()
Find resources.
|
abstract InputStream[] |
findResourcesAsStream()
Find resources.
|
abstract URL[] |
findResourcesByClasspath()
Find resources by classpath.
|
List<AnnotationDiscoveryListener> |
getAnnotationDiscoveryListeners()
Gets the annotation discovery listeners.
|
abstract Filter |
getFilter()
Gets the filter.
|
ResourceIterator |
getResourceIterator(URL url,
Filter filter)
Gets the resource iterator.
|
List<String> |
getValidAnnotations()
Gets the valid annotations.
|
abstract void |
read()
Read.
|
void |
scanClass(InputStream bits)
Scan class.
|
private List<AnnotationDiscoveryListener> annotationDiscoveryListeners
public void scanClass(InputStream bits) throws IOException
bits - the bitsIOException - Signals that an I/O exception has occurred.public void accumulateAnnotations(List<String> annotations, javassist.bytecode.AnnotationsAttribute annatt)
annotations - the annotationsannatt - the annattpublic ResourceIterator getResourceIterator(URL url, Filter filter)
url - the urlfilter - the filterIOException - Signals that an I/O exception has occurred.public List<String> getValidAnnotations()
public void addValidAnnotations(String annotation)
annotation - the annotationpublic List<AnnotationDiscoveryListener> getAnnotationDiscoveryListeners()
public void addAnnotationDiscoveryListeners(AnnotationDiscoveryListener annotationDiscoveryListener)
annotationDiscoveryListener - the annotation discovery listenerpublic abstract void read()
public abstract Filter getFilter()
public abstract URL[] findResources()
public abstract InputStream[] findResourcesAsStream()
public abstract URL[] findResourcesByClasspath()
Copyright © 2015. All Rights Reserved.