Stuart McCulloch | 42151ee | 2012-07-16 13:43:38 +0000 | [diff] [blame] | 1 | package aQute.bnd.osgi; |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 2 | |
Stuart McCulloch | 42151ee | 2012-07-16 13:43:38 +0000 | [diff] [blame] | 3 | import aQute.bnd.osgi.Descriptors.TypeRef; |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 4 | |
| 5 | public class ClassDataCollector { |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 6 | public void classBegin(@SuppressWarnings("unused") int access, @SuppressWarnings("unused") TypeRef name) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 7 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 8 | public boolean classStart(int access, TypeRef className) { |
| 9 | classBegin(access, className); |
| 10 | return true; |
| 11 | } |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 12 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 13 | public void extendsClass(@SuppressWarnings("unused") TypeRef zuper) throws Exception {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 14 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 15 | public void implementsInterfaces(@SuppressWarnings("unused") TypeRef[] interfaces) throws Exception {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 16 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 17 | public void addReference(@SuppressWarnings("unused") TypeRef ref) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 18 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 19 | public void annotation(@SuppressWarnings("unused") Annotation annotation) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 20 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 21 | public void parameter(@SuppressWarnings("unused") int p) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 22 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 23 | public void method(@SuppressWarnings("unused") Clazz.MethodDef defined) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 24 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 25 | public void field(@SuppressWarnings("unused") Clazz.FieldDef defined) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 26 | |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 27 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 28 | public void classEnd() throws Exception {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 29 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 30 | public void deprecated() throws Exception {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 31 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 32 | /** |
| 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 McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 44 | public void enclosingMethod(TypeRef cName, String mName, String mDescriptor) { |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 45 | |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | /** |
| 49 | * The InnerClass attribute |
| 50 | * |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 51 | * @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 McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 60 | */ |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 61 | public void innerClass(TypeRef innerClass, TypeRef outerClass, String innerName, @SuppressWarnings("unused") int innerClassAccessFlags) |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 62 | throws Exception {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 63 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 64 | public void signature(@SuppressWarnings("unused") String signature) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 65 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 66 | public void constant(@SuppressWarnings("unused") Object object) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 67 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 68 | public void memberEnd() {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 69 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 70 | public void version(@SuppressWarnings("unused") int minor, @SuppressWarnings("unused") int major) { |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 71 | // TODO Auto-generated method stub |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 72 | |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 73 | } |
| 74 | |
Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame] | 75 | public void referenceMethod(@SuppressWarnings("unused") |
| 76 | int access, @SuppressWarnings("unused") |
| 77 | TypeRef className, @SuppressWarnings("unused") |
| 78 | String method, @SuppressWarnings("unused") String descriptor) { |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 79 | // TODO Auto-generated method stub |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 80 | |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 81 | } |
| 82 | |
Stuart McCulloch | b32291a | 2012-07-16 14:10:57 +0000 | [diff] [blame^] | 83 | /** |
| 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 McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 94 | } |