Package aQute.bnd.make.component
Class ComponentAnnotationReader
- java.lang.Object
-
- aQute.bnd.osgi.ClassDataCollector
-
- aQute.bnd.make.component.ComponentAnnotationReader
-
public class ComponentAnnotationReader extends ClassDataCollector
This converts bnd style annotations to, roughly, the header format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
annotation(Annotation annotation)
void
classBegin(int access, Descriptors.TypeRef name)
Skip L and ; and replace / for .void
field(Clazz.FieldDef field)
void
finish()
static java.util.Map<java.lang.String,java.lang.String>
getDefinition(Clazz c)
static java.util.Map<java.lang.String,java.lang.String>
getDefinition(Clazz c, aQute.service.reporter.Reporter reporter)
aQute.service.reporter.Reporter
getReporter()
void
implementsInterfaces(Descriptors.TypeRef[] interfaces)
void
method(Clazz.MethodDef method)
void
setReporter(aQute.service.reporter.Reporter reporter)
-
Methods inherited from class aQute.bnd.osgi.ClassDataCollector
addReference, annotationDefault, annotationDefault, classEnd, classStart, classStart, constant, deprecated, enclosingMethod, extendsClass, innerClass, memberEnd, parameter, referenceMethod, referTo, signature, version
-
-
-
-
Method Detail
-
setReporter
public void setReporter(aQute.service.reporter.Reporter reporter)
-
getReporter
public aQute.service.reporter.Reporter getReporter()
-
getDefinition
public static java.util.Map<java.lang.String,java.lang.String> getDefinition(Clazz c) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDefinition
public static java.util.Map<java.lang.String,java.lang.String> getDefinition(Clazz c, aQute.service.reporter.Reporter reporter) throws java.lang.Exception
- Throws:
java.lang.Exception
-
annotation
public void annotation(Annotation annotation)
- Overrides:
annotation
in classClassDataCollector
-
classBegin
public void classBegin(int access, Descriptors.TypeRef name)
Skip L and ; and replace / for . in an object descriptor. A string like Lcom/acme/Foo; becomes com.acme.Foo- Overrides:
classBegin
in classClassDataCollector
-
implementsInterfaces
public void implementsInterfaces(Descriptors.TypeRef[] interfaces)
- Overrides:
implementsInterfaces
in classClassDataCollector
-
method
public void method(Clazz.MethodDef method)
- Overrides:
method
in classClassDataCollector
-
field
public void field(Clazz.FieldDef field)
- Overrides:
field
in classClassDataCollector
-
finish
public void finish()
-
-