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 void
annotation(Annotation annotation)
void
classBegin(int access, Descriptors.TypeRef name)
Are called during class parsingvoid
classEnd()
protected void
doActivate()
protected void
doComponent(org.osgi.service.component.annotations.Component comp, Annotation annotation)
protected void
doDeactivate()
protected void
doDesignate(org.osgi.service.metatype.annotations.Designate a)
protected void
doModified()
protected void
doReference(org.osgi.service.component.annotations.Reference reference, Annotation raw)
void
extendsClass(Descriptors.TypeRef name)
void
field(Clazz.FieldDef field)
static aQute.bnd.component.ComponentDef
getDefinition(Clazz c, Analyzer analyzer, java.util.EnumSet<DSAnnotations.Options> options, XMLAttributeFinder finder, Version minVersion)
void
implementsInterfaces(Descriptors.TypeRef[] interfaces)
void
memberEnd()
void
method(Clazz.MethodDef method)
protected java.lang.String
referredMethod(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:
classEnd
in classClassDataCollector
- Throws:
java.lang.Exception
-
memberEnd
public void memberEnd()
- Overrides:
memberEnd
in classClassDataCollector
-
annotation
public void annotation(Annotation annotation)
- Overrides:
annotation
in 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:
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
-
extendsClass
public void extendsClass(Descriptors.TypeRef name)
- Overrides:
extendsClass
in classClassDataCollector
-
-