blob: c2daba704e626ec8610041b96b54ce0becfb3713 [file] [log] [blame]
Stuart McCulloch42151ee2012-07-16 13:43:38 +00001package aQute.bnd.osgi;
Stuart McCullochf3173222012-06-07 21:57:32 +00002
Stuart McCulloch42151ee2012-07-16 13:43:38 +00003import aQute.bnd.osgi.Descriptors.TypeRef;
Stuart McCullochf3173222012-06-07 21:57:32 +00004
5public class ClassDataCollector {
Stuart McCulloch669423b2012-06-26 16:34:24 +00006 public void classBegin(@SuppressWarnings("unused") int access, @SuppressWarnings("unused") TypeRef name) {}
Stuart McCullochf3173222012-06-07 21:57:32 +00007
Stuart McCulloch4482c702012-06-15 13:27:53 +00008 public boolean classStart(int access, TypeRef className) {
9 classBegin(access, className);
10 return true;
11 }
Stuart McCullochf3173222012-06-07 21:57:32 +000012
Stuart McCulloch669423b2012-06-26 16:34:24 +000013 public void extendsClass(@SuppressWarnings("unused") TypeRef zuper) throws Exception {}
Stuart McCullochf3173222012-06-07 21:57:32 +000014
Stuart McCulloch669423b2012-06-26 16:34:24 +000015 public void implementsInterfaces(@SuppressWarnings("unused") TypeRef[] interfaces) throws Exception {}
Stuart McCullochf3173222012-06-07 21:57:32 +000016
Stuart McCulloch669423b2012-06-26 16:34:24 +000017 public void addReference(@SuppressWarnings("unused") TypeRef ref) {}
Stuart McCullochf3173222012-06-07 21:57:32 +000018
Stuart McCulloch669423b2012-06-26 16:34:24 +000019 public void annotation(@SuppressWarnings("unused") Annotation annotation) {}
Stuart McCullochf3173222012-06-07 21:57:32 +000020
Stuart McCulloch669423b2012-06-26 16:34:24 +000021 public void parameter(@SuppressWarnings("unused") int p) {}
Stuart McCullochf3173222012-06-07 21:57:32 +000022
Stuart McCulloch669423b2012-06-26 16:34:24 +000023 public void method(@SuppressWarnings("unused") Clazz.MethodDef defined) {}
Stuart McCullochf3173222012-06-07 21:57:32 +000024
Stuart McCulloch669423b2012-06-26 16:34:24 +000025 public void field(@SuppressWarnings("unused") Clazz.FieldDef defined) {}
Stuart McCullochf3173222012-06-07 21:57:32 +000026
Stuart McCullochf3173222012-06-07 21:57:32 +000027
Stuart McCulloch4482c702012-06-15 13:27:53 +000028 public void classEnd() throws Exception {}
Stuart McCullochf3173222012-06-07 21:57:32 +000029
Stuart McCulloch4482c702012-06-15 13:27:53 +000030 public void deprecated() throws Exception {}
Stuart McCullochf3173222012-06-07 21:57:32 +000031
Stuart McCulloch4482c702012-06-15 13:27:53 +000032 /**
33 * The EnclosingMethod attribute
34 *
35 * @param cName
36 * The name of the enclosing class, never null. Name is with
37 * slashes.
38 * @param mName
39 * The name of the enclosing method in the class with cName or
40 * null
41 * @param mDescriptor
42 * The descriptor of this type
43 */
Stuart McCullochf3173222012-06-07 21:57:32 +000044 public void enclosingMethod(TypeRef cName, String mName, String mDescriptor) {
Stuart McCulloch4482c702012-06-15 13:27:53 +000045
Stuart McCullochf3173222012-06-07 21:57:32 +000046 }
47
48 /**
49 * The InnerClass attribute
50 *
Stuart McCulloch4482c702012-06-15 13:27:53 +000051 * @param innerClass
52 * The name of the inner class (with slashes). Can be null.
53 * @param outerClass
54 * The name of the outer class (with slashes) Can be null.
55 * @param innerName
56 * The name inside the outer class, can be null.
57 * @param modifiers
58 * The access flags
59 * @throws Exception
Stuart McCullochf3173222012-06-07 21:57:32 +000060 */
Stuart McCulloch669423b2012-06-26 16:34:24 +000061 public void innerClass(TypeRef innerClass, TypeRef outerClass, String innerName, @SuppressWarnings("unused") int innerClassAccessFlags)
Stuart McCulloch4482c702012-06-15 13:27:53 +000062 throws Exception {}
Stuart McCullochf3173222012-06-07 21:57:32 +000063
Stuart McCulloch669423b2012-06-26 16:34:24 +000064 public void signature(@SuppressWarnings("unused") String signature) {}
Stuart McCullochf3173222012-06-07 21:57:32 +000065
Stuart McCulloch669423b2012-06-26 16:34:24 +000066 public void constant(@SuppressWarnings("unused") Object object) {}
Stuart McCullochf3173222012-06-07 21:57:32 +000067
Stuart McCulloch4482c702012-06-15 13:27:53 +000068 public void memberEnd() {}
Stuart McCullochf3173222012-06-07 21:57:32 +000069
Stuart McCulloch669423b2012-06-26 16:34:24 +000070 public void version(@SuppressWarnings("unused") int minor, @SuppressWarnings("unused") int major) {
Stuart McCullochf3173222012-06-07 21:57:32 +000071 // TODO Auto-generated method stub
Stuart McCulloch4482c702012-06-15 13:27:53 +000072
Stuart McCullochf3173222012-06-07 21:57:32 +000073 }
74
Stuart McCulloch669423b2012-06-26 16:34:24 +000075 public void referenceMethod(@SuppressWarnings("unused")
76 int access, @SuppressWarnings("unused")
77 TypeRef className, @SuppressWarnings("unused")
78 String method, @SuppressWarnings("unused") String descriptor) {
Stuart McCullochf3173222012-06-07 21:57:32 +000079 // TODO Auto-generated method stub
Stuart McCulloch4482c702012-06-15 13:27:53 +000080
Stuart McCullochf3173222012-06-07 21:57:32 +000081 }
82
Stuart McCullochb32291a2012-07-16 14:10:57 +000083 /**
84 * A reference to a type from method or field. The modifiers indicate the
85 * access level of the parent method/field.
86 *
87 * @param typeRef
88 * @param modifiers
89 */
90 public void referTo(TypeRef typeRef, int modifiers) {
91
92 }
93
Stuart McCullochf3173222012-06-07 21:57:32 +000094}