|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaQute.lib.osgi.ClassDataCollector
org.apache.felix.dm.annotation.plugin.bnd.AnnotationCollector
public class AnnotationCollector
This is the scanner which does all the annotation parsing on a given class. To start the parsing, just invoke the parseClassFileWithCollector and finish methods. Once parsed, the corresponding component descriptors can be built using the "writeTo" method.
Constructor Summary | |
---|---|
AnnotationCollector(aQute.libg.reporter.Reporter reporter,
MetaType metaType)
Makes a new Collector for parsing a given class. |
Method Summary | |
---|---|
void |
annotation(aQute.lib.osgi.Annotation annotation)
An annotation has been parsed. |
void |
classBegin(int access,
String name)
Parses the name of the class. |
void |
field(int access,
String name,
String descriptor)
Parses a field. |
boolean |
finish()
Finishes up the class parsing. |
aQute.libg.reporter.Reporter |
getReporter()
Returns the log reporter. |
void |
implementsInterfaces(String[] interfaces)
Parses the implemented interfaces ("/" separated). |
void |
method(int access,
String name,
String descriptor)
Parses a method. |
void |
writeTo(PrintWriter pw)
Writes the generated component descriptor in the given print writer. |
Methods inherited from class aQute.lib.osgi.ClassDataCollector |
---|
addReference, classEnd, classStart, constructor, extendsClass, field, method, parameter, reference, reference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationCollector(aQute.libg.reporter.Reporter reporter, MetaType metaType)
reporter
- the object used to report logs.Method Detail |
---|
public aQute.libg.reporter.Reporter getReporter()
public void classBegin(int access, String name)
classBegin
in class aQute.lib.osgi.ClassDataCollector
access
- the class accessname
- the class name (package are "/" separated).public void implementsInterfaces(String[] interfaces)
implementsInterfaces
in class aQute.lib.osgi.ClassDataCollector
public void method(int access, String name, String descriptor)
method
in class aQute.lib.osgi.ClassDataCollector
public void field(int access, String name, String descriptor)
field
in class aQute.lib.osgi.ClassDataCollector
public void annotation(aQute.lib.osgi.Annotation annotation)
annotation
in class aQute.lib.osgi.ClassDataCollector
public boolean finish()
public void writeTo(PrintWriter pw)
pw
- the writer where the component descriptor will be written.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |