Package aQute.bnd.osgi
Class ClassDataCollectors.Collectors
- java.lang.Object
-
- aQute.bnd.osgi.ClassDataCollector
-
- aQute.bnd.osgi.ClassDataCollectors.Collectors
-
- Enclosing class:
- ClassDataCollectors
private class ClassDataCollectors.Collectors extends ClassDataCollector
-
-
Field Summary
Fields Modifier and Type Field Description private Clazzclazzprivate java.util.List<ClassDataCollector>shortlist
-
Constructor Summary
Constructors Constructor Description Collectors(Clazz clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReference(Descriptors.TypeRef ref)voidannotation(Annotation annotation)voidannotationDefault(Clazz.MethodDef method)voidannotationDefault(Clazz.MethodDef method, java.lang.Object value)voidclassBegin(int access, Descriptors.TypeRef name)voidclassEnd()booleanclassStart(int access, Descriptors.TypeRef className)booleanclassStart(Clazz clazz)voidconstant(java.lang.Object object)voiddeprecated()voidenclosingMethod(Descriptors.TypeRef cName, java.lang.String mName, java.lang.String mDescriptor)The EnclosingMethod attributevoidextendsClass(Descriptors.TypeRef zuper)voidfield(Clazz.FieldDef field)voidimplementsInterfaces(Descriptors.TypeRef[] interfaces)voidinnerClass(Descriptors.TypeRef innerClass, Descriptors.TypeRef outerClass, java.lang.String innerName, int innerClassAccessFlags)The InnerClass attributevoidmemberEnd()voidmethod(Clazz.MethodDef method)voidmethodParameters(Clazz.MethodDef method, Clazz.MethodParameter[] parameters)voidparameter(int p)voidreferenceMethod(int access, Descriptors.TypeRef className, java.lang.String method, java.lang.String descriptor)voidreferTo(Descriptors.TypeRef typeRef, int modifiers)A reference to a type from method or field.voidsignature(java.lang.String signature)voidtypeuse(int target_type, int target_index, byte[] target_info, byte[] type_path)voidversion(int minor, int major)
-
-
-
Field Detail
-
clazz
private final Clazz clazz
-
shortlist
private final java.util.List<ClassDataCollector> shortlist
-
-
Constructor Detail
-
Collectors
Collectors(Clazz clazz)
-
-
Method Detail
-
classBegin
public void classBegin(int access, Descriptors.TypeRef name)- Overrides:
classBeginin classClassDataCollector
-
classStart
public boolean classStart(int access, Descriptors.TypeRef className)- Overrides:
classStartin classClassDataCollector
-
classStart
public boolean classStart(Clazz clazz)
- Overrides:
classStartin classClassDataCollector
-
extendsClass
public void extendsClass(Descriptors.TypeRef zuper) throws java.lang.Exception
- Overrides:
extendsClassin classClassDataCollector- Throws:
java.lang.Exception
-
implementsInterfaces
public void implementsInterfaces(Descriptors.TypeRef[] interfaces) throws java.lang.Exception
- Overrides:
implementsInterfacesin classClassDataCollector- Throws:
java.lang.Exception
-
addReference
public void addReference(Descriptors.TypeRef ref)
- Overrides:
addReferencein classClassDataCollector
-
annotation
public void annotation(Annotation annotation)
- Overrides:
annotationin classClassDataCollector
-
parameter
public void parameter(int p)
- Overrides:
parameterin classClassDataCollector
-
method
public void method(Clazz.MethodDef method)
- Overrides:
methodin classClassDataCollector
-
field
public void field(Clazz.FieldDef field)
- Overrides:
fieldin classClassDataCollector
-
classEnd
public void classEnd() throws java.lang.Exception- Overrides:
classEndin classClassDataCollector- Throws:
java.lang.Exception
-
deprecated
public void deprecated() throws java.lang.Exception- Overrides:
deprecatedin classClassDataCollector- Throws:
java.lang.Exception
-
enclosingMethod
public void enclosingMethod(Descriptors.TypeRef cName, java.lang.String mName, java.lang.String mDescriptor)
Description copied from class:ClassDataCollectorThe EnclosingMethod attribute- Overrides:
enclosingMethodin classClassDataCollector- Parameters:
cName- The name of the enclosing class, never null. Name is with slashes.mName- The name of the enclosing method in the class with cName or nullmDescriptor- The descriptor of this type
-
innerClass
public void innerClass(Descriptors.TypeRef innerClass, Descriptors.TypeRef outerClass, java.lang.String innerName, int innerClassAccessFlags) throws java.lang.Exception
Description copied from class:ClassDataCollectorThe InnerClass attribute- Overrides:
innerClassin classClassDataCollector- Parameters:
innerClass- The name of the inner class (with slashes). Can be null.outerClass- The name of the outer class (with slashes) Can be null.innerName- The name inside the outer class, can be null.innerClassAccessFlags- The access flags- Throws:
java.lang.Exception
-
signature
public void signature(java.lang.String signature)
- Overrides:
signaturein classClassDataCollector
-
constant
public void constant(java.lang.Object object)
- Overrides:
constantin classClassDataCollector
-
memberEnd
public void memberEnd()
- Overrides:
memberEndin classClassDataCollector
-
version
public void version(int minor, int major)- Overrides:
versionin classClassDataCollector
-
referenceMethod
public void referenceMethod(int access, Descriptors.TypeRef className, java.lang.String method, java.lang.String descriptor)- Overrides:
referenceMethodin classClassDataCollector
-
referTo
public void referTo(Descriptors.TypeRef typeRef, int modifiers)
Description copied from class:ClassDataCollectorA reference to a type from method or field. The modifiers indicate the access level of the parent method/field.- Overrides:
referToin classClassDataCollector
-
annotationDefault
public void annotationDefault(Clazz.MethodDef method)
- Overrides:
annotationDefaultin classClassDataCollector
-
annotationDefault
public void annotationDefault(Clazz.MethodDef method, java.lang.Object value)
- Overrides:
annotationDefaultin classClassDataCollector
-
typeuse
public void typeuse(int target_type, int target_index, byte[] target_info, byte[] type_path)- Overrides:
typeusein classClassDataCollector
-
methodParameters
public void methodParameters(Clazz.MethodDef method, Clazz.MethodParameter[] parameters)
- Overrides:
methodParametersin classClassDataCollector
-
-