Package aQute.bnd.component
Class AnnotationReader
- java.lang.Object
-
- aQute.bnd.osgi.ClassDataCollector
-
- aQute.bnd.component.AnnotationReader
-
public class AnnotationReader extends ClassDataCollector
Processes spec DS annotations into xml.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidannotation(Annotation annotation)voidclassBegin(int access, Descriptors.TypeRef name)Are called during class parsingvoidclassEnd()protected voiddoActivate()protected voiddoComponent(org.osgi.service.component.annotations.Component comp, Annotation annotation)protected voiddoDeactivate()protected voiddoDesignate(org.osgi.service.metatype.annotations.Designate a)protected voiddoModified()protected voiddoReference(org.osgi.service.component.annotations.Reference reference, Annotation raw)voidextendsClass(Descriptors.TypeRef name)voidfield(Clazz.FieldDef field)static aQute.bnd.component.ComponentDefgetDefinition(Clazz c, Analyzer analyzer, java.util.EnumSet<DSAnnotations.Options> options, XMLAttributeFinder finder, Version minVersion)voidimplementsInterfaces(Descriptors.TypeRef[] interfaces)voidmemberEnd()voidmethod(Clazz.MethodDef method)protected java.lang.StringreferredMethod(Analyzer analyzer, aQute.bnd.component.ReferenceDef rdef, java.lang.String value, java.lang.String... matches)-
Methods inherited from class aQute.bnd.osgi.ClassDataCollector
addReference, annotationDefault, annotationDefault, classStart, classStart, constant, deprecated, enclosingMethod, innerClass, parameter, referenceMethod, referTo, signature, version
-
-
-
-
Method Detail
-
getDefinition
public static aQute.bnd.component.ComponentDef getDefinition(Clazz c, Analyzer analyzer, java.util.EnumSet<DSAnnotations.Options> options, XMLAttributeFinder finder, Version minVersion) throws java.lang.Exception
- Throws:
java.lang.Exception
-
referredMethod
protected java.lang.String referredMethod(Analyzer analyzer, aQute.bnd.component.ReferenceDef rdef, java.lang.String value, java.lang.String... matches)
- Parameters:
analyzer-rdef-
-
classEnd
public void classEnd() throws java.lang.Exception- Overrides:
classEndin classClassDataCollector- Throws:
java.lang.Exception
-
memberEnd
public void memberEnd()
- Overrides:
memberEndin classClassDataCollector
-
annotation
public void annotation(Annotation annotation)
- Overrides:
annotationin classClassDataCollector
-
doDesignate
protected void doDesignate(org.osgi.service.metatype.annotations.Designate a)
-
doActivate
protected void doActivate()
-
doDeactivate
protected void doDeactivate()
-
doModified
protected void doModified()
-
doReference
protected void doReference(org.osgi.service.component.annotations.Reference reference, Annotation raw) throws java.lang.Exception- Parameters:
reference-raw-- Throws:
java.lang.Exception
-
doComponent
protected void doComponent(org.osgi.service.component.annotations.Component comp, Annotation annotation) throws java.lang.Exception- Parameters:
annotation-- Throws:
java.lang.Exception
-
classBegin
public void classBegin(int access, Descriptors.TypeRef name)Are called during class parsing- Overrides:
classBeginin classClassDataCollector
-
implementsInterfaces
public void implementsInterfaces(Descriptors.TypeRef[] interfaces)
- Overrides:
implementsInterfacesin classClassDataCollector
-
method
public void method(Clazz.MethodDef method)
- Overrides:
methodin classClassDataCollector
-
field
public void field(Clazz.FieldDef field)
- Overrides:
fieldin classClassDataCollector
-
extendsClass
public void extendsClass(Descriptors.TypeRef name)
- Overrides:
extendsClassin classClassDataCollector
-
-