aQute.bnd.osgi
Class ClassDataCollector

java.lang.Object
  extended by aQute.bnd.osgi.ClassDataCollector
Direct Known Subclasses:
AnnotationReader, ComponentAnnotationReader, DesignateReader, OCDReader

public class ClassDataCollector
extends Object


Constructor Summary
ClassDataCollector()
           
 
Method Summary
 void addReference(Descriptors.TypeRef ref)
           
 void annotation(Annotation annotation)
           
 void annotationDefault(Clazz.MethodDef last)
           
 void classBegin(int access, Descriptors.TypeRef name)
           
 void classEnd()
           
 boolean classStart(Clazz c)
           
 boolean classStart(int access, Descriptors.TypeRef className)
           
 void constant(Object object)
           
 void deprecated()
           
 void enclosingMethod(Descriptors.TypeRef cName, String mName, String mDescriptor)
          The EnclosingMethod attribute
 void extendsClass(Descriptors.TypeRef zuper)
           
 void field(Clazz.FieldDef defined)
           
 void implementsInterfaces(Descriptors.TypeRef[] interfaces)
           
 void innerClass(Descriptors.TypeRef innerClass, Descriptors.TypeRef outerClass, String innerName, int innerClassAccessFlags)
          The InnerClass attribute
 void memberEnd()
           
 void method(Clazz.MethodDef defined)
           
 void parameter(int p)
           
 void referenceMethod(int access, Descriptors.TypeRef className, String method, String descriptor)
           
 void referTo(Descriptors.TypeRef typeRef, int modifiers)
          A reference to a type from method or field.
 void signature(String signature)
           
 void version(int minor, int major)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDataCollector

public ClassDataCollector()
Method Detail

classBegin

public void classBegin(int access,
                       Descriptors.TypeRef name)

classStart

public boolean classStart(int access,
                          Descriptors.TypeRef className)

classStart

public boolean classStart(Clazz c)

extendsClass

public void extendsClass(Descriptors.TypeRef zuper)
                  throws Exception
Throws:
Exception

implementsInterfaces

public void implementsInterfaces(Descriptors.TypeRef[] interfaces)
                          throws Exception
Throws:
Exception

addReference

public void addReference(Descriptors.TypeRef ref)

annotation

public void annotation(Annotation annotation)
                throws Exception
Throws:
Exception

parameter

public void parameter(int p)

method

public void method(Clazz.MethodDef defined)

field

public void field(Clazz.FieldDef defined)

classEnd

public void classEnd()
              throws Exception
Throws:
Exception

deprecated

public void deprecated()
                throws Exception
Throws:
Exception

enclosingMethod

public void enclosingMethod(Descriptors.TypeRef cName,
                            String mName,
                            String mDescriptor)
The EnclosingMethod attribute

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 null
mDescriptor - The descriptor of this type

innerClass

public void innerClass(Descriptors.TypeRef innerClass,
                       Descriptors.TypeRef outerClass,
                       String innerName,
                       int innerClassAccessFlags)
                throws Exception
The InnerClass attribute

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.
modifiers - The access flags
Throws:
Exception

signature

public void signature(String signature)

constant

public void constant(Object object)

memberEnd

public void memberEnd()

version

public void version(int minor,
                    int major)

referenceMethod

public void referenceMethod(int access,
                            Descriptors.TypeRef className,
                            String method,
                            String descriptor)

referTo

public void referTo(Descriptors.TypeRef typeRef,
                    int modifiers)
A reference to a type from method or field. The modifiers indicate the access level of the parent method/field.

Parameters:
typeRef -
modifiers -

annotationDefault

public void annotationDefault(Clazz.MethodDef last)


Copyright © 2014 aQute SARL. All rights reserved.