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
-
-
Constructor Summary
Constructors Constructor Description Collectors(Clazz clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReference(Descriptors.TypeRef ref)
void
annotation(Annotation annotation)
void
classBegin(int access, Descriptors.TypeRef name)
void
classEnd()
boolean
classStart(int access, Descriptors.TypeRef className)
boolean
classStart(Clazz clazz)
void
constant(java.lang.Object object)
void
deprecated()
void
enclosingMethod(Descriptors.TypeRef cName, java.lang.String mName, java.lang.String mDescriptor)
The EnclosingMethod attributevoid
extendsClass(Descriptors.TypeRef zuper)
void
field(Clazz.FieldDef defined)
void
implementsInterfaces(Descriptors.TypeRef[] interfaces)
void
innerClass(Descriptors.TypeRef innerClass, Descriptors.TypeRef outerClass, java.lang.String innerName, int innerClassAccessFlags)
The InnerClass attributevoid
memberEnd()
void
method(Clazz.MethodDef defined)
void
parameter(int p)
void
referenceMethod(int access, Descriptors.TypeRef className, java.lang.String method, java.lang.String descriptor)
void
referTo(Descriptors.TypeRef typeRef, int modifiers)
A reference to a type from method or field.void
signature(java.lang.String signature)
void
version(int minor, int major)
-
Methods inherited from class aQute.bnd.osgi.ClassDataCollector
annotationDefault, annotationDefault
-
-
-
-
Field Detail
-
clazz
private final Clazz clazz
-
-
Constructor Detail
-
Collectors
Collectors(Clazz clazz)
-
-
Method Detail
-
classBegin
public void classBegin(int access, Descriptors.TypeRef name)
- Overrides:
classBegin
in classClassDataCollector
-
classStart
public boolean classStart(int access, Descriptors.TypeRef className)
- Overrides:
classStart
in classClassDataCollector
-
classStart
public boolean classStart(Clazz clazz)
- Overrides:
classStart
in classClassDataCollector
-
extendsClass
public void extendsClass(Descriptors.TypeRef zuper) throws java.lang.Exception
- Overrides:
extendsClass
in classClassDataCollector
- Throws:
java.lang.Exception
-
implementsInterfaces
public void implementsInterfaces(Descriptors.TypeRef[] interfaces) throws java.lang.Exception
- Overrides:
implementsInterfaces
in classClassDataCollector
- Throws:
java.lang.Exception
-
addReference
public void addReference(Descriptors.TypeRef ref)
- Overrides:
addReference
in classClassDataCollector
-
annotation
public void annotation(Annotation annotation)
- Overrides:
annotation
in classClassDataCollector
-
parameter
public void parameter(int p)
- Overrides:
parameter
in classClassDataCollector
-
method
public void method(Clazz.MethodDef defined)
- Overrides:
method
in classClassDataCollector
-
field
public void field(Clazz.FieldDef defined)
- Overrides:
field
in classClassDataCollector
-
classEnd
public void classEnd() throws java.lang.Exception
- Overrides:
classEnd
in classClassDataCollector
- Throws:
java.lang.Exception
-
deprecated
public void deprecated() throws java.lang.Exception
- Overrides:
deprecated
in classClassDataCollector
- Throws:
java.lang.Exception
-
enclosingMethod
public void enclosingMethod(Descriptors.TypeRef cName, java.lang.String mName, java.lang.String mDescriptor)
Description copied from class:ClassDataCollector
The EnclosingMethod attribute- Overrides:
enclosingMethod
in 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:ClassDataCollector
The InnerClass attribute- Overrides:
innerClass
in 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:
signature
in classClassDataCollector
-
constant
public void constant(java.lang.Object object)
- Overrides:
constant
in classClassDataCollector
-
memberEnd
public void memberEnd()
- Overrides:
memberEnd
in classClassDataCollector
-
version
public void version(int minor, int major)
- Overrides:
version
in classClassDataCollector
-
referenceMethod
public void referenceMethod(int access, Descriptors.TypeRef className, java.lang.String method, java.lang.String descriptor)
- Overrides:
referenceMethod
in classClassDataCollector
-
referTo
public void referTo(Descriptors.TypeRef typeRef, int modifiers)
Description copied from class:ClassDataCollector
A reference to a type from method or field. The modifiers indicate the access level of the parent method/field.- Overrides:
referTo
in classClassDataCollector
-
-