1 4 package com.tc.aspectwerkz.reflect; 5 6 import com.tc.backport175.bytecode.AnnotationReader; 7 import com.tc.backport175.bytecode.AnnotationElement; 8 9 14 public interface ClassInfo extends ReflectionInfo { 15 16 final static AnnotationElement.Annotation[] EMPTY_ANNOTATION_ARRAY = new AnnotationElement.Annotation[0]; 17 18 25 ConstructorInfo getConstructor(int hash); 26 27 33 ConstructorInfo[] getConstructors(); 34 35 42 MethodInfo getMethod(int hash); 43 44 50 MethodInfo[] getMethods(); 51 52 59 FieldInfo getField(int hash); 60 61 67 FieldInfo[] getFields(); 68 69 74 ClassLoader getClassLoader(); 75 76 81 boolean hasStaticInitializer(); 82 83 88 StaticInitializationInfo staticInitializer(); 89 90 95 ClassInfo[] getInterfaces(); 96 97 102 ClassInfo getSuperclass(); 103 104 109 ClassInfo getComponentType(); 110 111 116 boolean isInterface(); 117 118 123 boolean isPrimitive(); 124 125 130 boolean isArray(); 131 132 135 AnnotationReader getAnnotationReader(); 136 137 public static class NullClassInfo implements ClassInfo { 138 139 public ConstructorInfo getConstructor(int hash) { 140 return null; 141 } 142 143 public ConstructorInfo[] getConstructors() { 144 return new ConstructorInfo[0]; 145 } 146 147 public MethodInfo getMethod(int hash) { 148 return null; 149 } 150 151 public MethodInfo[] getMethods() { 152 return new MethodInfo[0]; 153 } 154 155 public FieldInfo getField(int hash) { 156 return null; 157 } 158 159 public FieldInfo[] getFields() { 160 return new FieldInfo[0]; 161 } 162 163 public boolean hasStaticInitializer() { 164 return false; 165 } 166 167 170 public StaticInitializationInfo staticInitializer() { 171 return null; 172 } 173 174 public ClassInfo[] getInterfaces() { 175 return new ClassInfo[0]; 176 } 177 178 public ClassInfo getSuperclass() { 179 return null; 180 } 181 182 public ClassLoader getClassLoader() { 183 return null; 184 } 185 186 public ClassInfo getComponentType() { 187 return null; 188 } 189 190 public boolean isInterface() { 191 return false; 192 } 193 194 public boolean isPrimitive() { 195 return false; 196 } 197 198 public boolean isArray() { 199 return false; 200 } 201 202 public String getName() { 203 return null; 204 } 205 206 public String getSignature() { 207 return null; 208 } 209 210 public String getGenericsSignature() { 211 return null; 212 } 213 214 public int getModifiers() { 215 return 0; 216 } 217 218 public AnnotationElement.Annotation[] getAnnotations() { 219 return EMPTY_ANNOTATION_ARRAY; 220 } 221 222 public AnnotationReader getAnnotationReader() { 223 return null; 224 } 225 } 226 } 227 228 | Popular Tags |