Package aQute.bnd.component
Class DSAnnotationReader.ComponentPropertyTypeDataCollector
- java.lang.Object
-
- aQute.bnd.osgi.ClassDataCollector
-
- aQute.bnd.component.DSAnnotationReader.ComponentPropertyTypeDataCollector
-
- Enclosing class:
- DSAnnotationReader
final class DSAnnotationReader.ComponentPropertyTypeDataCollector extends ClassDataCollector
-
-
Field Summary
Fields Modifier and Type Field Description private DeclarativeServicesAnnotationError
details
private boolean
hasMethods
private int
hasNoDefault
private boolean
hasValue
private java.lang.String
memberDescriptor
private Clazz.FieldDef
prefixField
private PropertyDef
propertyDef
private java.lang.String
propertyDefKey
private Descriptors.TypeRef
typeRef
-
Constructor Summary
Constructors Constructor Description ComponentPropertyTypeDataCollector(java.lang.String propertyDefKey, Annotation componentPropertyAnnotation, DeclarativeServicesAnnotationError details)
ComponentPropertyTypeDataCollector(java.lang.String propertyDefKey, java.lang.String memberDescriptor, DeclarativeServicesAnnotationError details)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
annotationDefault(Clazz.MethodDef defined, java.lang.Object value)
void
classBegin(int access, Descriptors.TypeRef name)
void
classEnd()
void
field(Clazz.FieldDef defined)
private void
handleValue(java.lang.String name, java.lang.Object value, boolean isClass, java.lang.Class<?> typeClass)
This method relies onConcreteRef#toString()
returningDescriptors.TypeRef.getFQN()
private java.lang.String
identifierToPropertyName(java.lang.String name)
void
method(Clazz.MethodDef defined)
private java.lang.String
valueType(java.lang.Class<?> typeClass, java.lang.Object value, boolean isClass)
-
Methods inherited from class aQute.bnd.osgi.ClassDataCollector
addReference, annotation, annotationDefault, classStart, classStart, constant, deprecated, enclosingMethod, extendsClass, implementsInterfaces, innerClass, memberEnd, methodParameters, parameter, referenceMethod, referTo, signature, typeuse, version
-
-
-
-
Field Detail
-
propertyDefKey
private final java.lang.String propertyDefKey
-
memberDescriptor
private final java.lang.String memberDescriptor
-
details
private final DeclarativeServicesAnnotationError details
-
propertyDef
private final PropertyDef propertyDef
-
hasNoDefault
private int hasNoDefault
-
hasValue
private boolean hasValue
-
hasMethods
private boolean hasMethods
-
prefixField
private Clazz.FieldDef prefixField
-
typeRef
private Descriptors.TypeRef typeRef
-
-
Constructor Detail
-
ComponentPropertyTypeDataCollector
ComponentPropertyTypeDataCollector(java.lang.String propertyDefKey, java.lang.String memberDescriptor, DeclarativeServicesAnnotationError details)
-
ComponentPropertyTypeDataCollector
ComponentPropertyTypeDataCollector(java.lang.String propertyDefKey, Annotation componentPropertyAnnotation, DeclarativeServicesAnnotationError details)
-
-
Method Detail
-
classBegin
public void classBegin(int access, Descriptors.TypeRef name)
- Overrides:
classBegin
in classClassDataCollector
-
field
public void field(Clazz.FieldDef defined)
- Overrides:
field
in classClassDataCollector
-
method
public void method(Clazz.MethodDef defined)
- Overrides:
method
in classClassDataCollector
-
annotationDefault
public void annotationDefault(Clazz.MethodDef defined, java.lang.Object value)
- Overrides:
annotationDefault
in classClassDataCollector
-
classEnd
public void classEnd() throws java.lang.Exception
- Overrides:
classEnd
in classClassDataCollector
- Throws:
java.lang.Exception
-
handleValue
private void handleValue(java.lang.String name, java.lang.Object value, boolean isClass, java.lang.Class<?> typeClass)
This method relies onConcreteRef#toString()
returningDescriptors.TypeRef.getFQN()
-
valueType
private java.lang.String valueType(java.lang.Class<?> typeClass, java.lang.Object value, boolean isClass)
-
identifierToPropertyName
private java.lang.String identifierToPropertyName(java.lang.String name)
-
-