blob: 12e9a37807557c3477eceaa656d3bebc5c99858e [file] [log] [blame]
Stuart McCulloch26e7a5a2011-10-17 10:31:43 +00001package aQute.lib.osgi;
2
3public class ClassDataCollector {
4 public void classBegin(int access, String name) {
5 }
6
7 public boolean classStart(int access, String name) {
8 classBegin(access,name);
9 return true;
10 }
11
12 public void extendsClass(String name) {
13 }
14
15 public void implementsInterfaces(String name[]) {
16 }
17
18 public void addReference(String token) {
19 }
20
21 public void annotation(Annotation annotation) {
22 }
23
24 public void parameter(int p) {
25 }
26
27 public void method(Clazz.MethodDef defined) {
28 if (defined.isConstructor())
29 constructor(defined.access, defined.descriptor);
30 else
31 method(defined.access, defined.name, defined.descriptor);
32 }
33
34 public void field(Clazz.FieldDef defined) {
35 field(defined.access, defined.name, defined.descriptor);
36 }
37
38 public void reference(Clazz.MethodDef referenced) {
39 }
40
41 public void reference(Clazz.FieldDef referenced) {
42 }
43
44 public void classEnd() {
45 }
46
47 @Deprecated // Will really be removed!
48 public void field(int access, String name, String descriptor) {
49 }
50
51 @Deprecated // Will really be removed!
52 public void constructor(int access, String descriptor) {
53 }
54
55 @Deprecated // Will really be removed!
56 public void method(int access, String name, String descriptor) {
57 }
58
59 /**
60 * The EnclosingMethod attribute
61 *
62 * @param cName The name of the enclosing class, never null. Name is with slashes.
63 * @param mName The name of the enclosing method in the class with cName or null
64 * @param mDescriptor The descriptor of this type
65 */
66 public void enclosingMethod(String cName, String mName, String mDescriptor) {
67
68 }
69
70 /**
71 * The InnerClass attribute
72 *
73 * @param innerClass The name of the inner class (with slashes). Can be null.
74 * @param outerClass The name of the outer class (with slashes) Can be null.
75 * @param innerName The name inside the outer class, can be null.
76 * @param modifiers The access flags
77 */
78 public void innerClass(String innerClass, String outerClass, String innerName,
79 int innerClassAccessFlags) {
80 }
81
82 public void signature(String signature) {
83 }
84
85 public void constant(Object object) {
86 }
87
88}