1 8 package org.codehaus.aspectwerkz.reflect; 9 10 import java.util.List ; 11 import java.util.ArrayList ; 12 13 18 public interface ClassInfo extends ReflectionInfo { 19 26 ConstructorInfo getConstructor(int hash); 27 28 34 ConstructorInfo[] getConstructors(); 35 36 43 MethodInfo getMethod(int hash); 44 45 51 MethodInfo[] getMethods(); 52 53 60 FieldInfo getField(int hash); 61 62 68 FieldInfo[] getFields(); 69 70 75 ClassLoader getClassLoader(); 76 77 82 boolean hasStaticInitializer(); 83 84 89 StaticInitializationInfo staticInitializer(); 90 91 96 ClassInfo[] getInterfaces(); 97 98 103 ClassInfo getSuperclass(); 104 105 110 ClassInfo getComponentType(); 111 112 117 boolean isInterface(); 118 119 124 boolean isPrimitive(); 125 126 131 boolean isArray(); 132 133 public static class NullClassInfo implements ClassInfo { 134 135 public ConstructorInfo getConstructor(int hash) { 136 return null; } 138 139 public ConstructorInfo[] getConstructors() { 140 return new ConstructorInfo[0]; } 142 143 public MethodInfo getMethod(int hash) { 144 return null; } 146 147 public MethodInfo[] getMethods() { 148 return new MethodInfo[0]; } 150 151 public FieldInfo getField(int hash) { 152 return null; } 154 155 public FieldInfo[] getFields() { 156 return new FieldInfo[0]; } 158 159 public boolean hasStaticInitializer() { 160 return false; 161 } 162 163 166 public StaticInitializationInfo staticInitializer() { 167 return null; 168 } 169 170 public ClassInfo[] getInterfaces() { 171 return new ClassInfo[0]; } 173 174 public ClassInfo getSuperclass() { 175 return null; } 177 178 public ClassLoader getClassLoader() { 179 return null; 180 } 181 182 public ClassInfo getComponentType() { 183 return null; } 185 186 public boolean isInterface() { 187 return false; } 189 190 public boolean isPrimitive() { 191 return false; } 193 194 public boolean isArray() { 195 return false; } 197 198 public String getName() { 199 return null; } 201 202 public String getSignature() { 203 return null; } 205 206 public int getModifiers() { 207 return 0; } 209 210 public List getAnnotations() { 211 return new ArrayList (); 212 } 213 } 214 } | Popular Tags |