1 12 package org.aspectj.lang.reflect; 13 14 import java.lang.reflect.AnnotatedElement ; 15 import java.lang.reflect.Constructor ; 16 import java.lang.reflect.Field ; 17 import java.lang.reflect.Method ; 18 import java.lang.reflect.Type ; 19 import java.lang.reflect.TypeVariable ; 20 21 25 public interface AjType<T> extends Type , AnnotatedElement { 26 27 30 public String getName(); 31 32 35 public Package getPackage(); 36 37 40 public AjType<?>[] getInterfaces(); 41 42 46 public int getModifiers(); 47 48 51 public Class <T> getJavaClass(); 52 53 55 59 public AjType<?> getSupertype(); 60 61 64 public Type getGenericSupertype(); 65 66 70 public Method getEnclosingMethod(); 71 72 76 public Constructor getEnclosingConstructor(); 77 78 81 public AjType<?> getEnclosingType(); 82 83 87 public AjType<?> getDeclaringType(); 88 89 93 public PerClause getPerClause(); 94 95 99 public AjType<?>[] getAjTypes(); 100 101 104 public AjType<?>[] getDeclaredAjTypes(); 105 106 108 111 public Constructor getConstructor(AjType<?>... parameterTypes) throws NoSuchMethodException ; 112 113 116 public Constructor [] getConstructors(); 117 118 121 public Constructor getDeclaredConstructor(AjType<?>... parameterTypes) throws NoSuchMethodException ; 122 123 126 public Constructor [] getDeclaredConstructors(); 127 128 130 133 public Field getDeclaredField(String name) throws NoSuchFieldException ; 134 135 138 public Field [] getDeclaredFields(); 139 140 143 public Field getField(String name) throws NoSuchFieldException ; 144 145 148 public Field [] getFields(); 149 150 152 155 public Method getDeclaredMethod(String name, AjType<?>... parameterTypes) throws NoSuchMethodException ; 156 157 160 public Method getMethod(String name, AjType<?>... parameterTypes) throws NoSuchMethodException ; 161 162 165 public Method [] getDeclaredMethods(); 166 167 170 public Method [] getMethods(); 171 172 174 177 public Pointcut getDeclaredPointcut(String name) throws NoSuchPointcutException; 178 179 182 public Pointcut getPointcut(String name) throws NoSuchPointcutException; 183 184 187 public Pointcut[] getDeclaredPointcuts(); 188 189 192 public Pointcut[] getPointcuts(); 193 194 196 200 public Advice[] getDeclaredAdvice(AdviceKind... ofTypes); 201 202 206 public Advice[] getAdvice(AdviceKind... ofTypes); 207 208 213 public Advice getAdvice(String name) throws NoSuchAdviceException; 214 215 220 public Advice getDeclaredAdvice(String name) throws NoSuchAdviceException; 221 222 224 227 public InterTypeMethodDeclaration getDeclaredITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException ; 228 229 232 public InterTypeMethodDeclaration[] getDeclaredITDMethods(); 233 234 237 public InterTypeMethodDeclaration getITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException ; 238 239 242 public InterTypeMethodDeclaration[] getITDMethods(); 243 244 247 public InterTypeConstructorDeclaration getDeclaredITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException ; 248 249 252 public InterTypeConstructorDeclaration[] getDeclaredITDConstructors(); 253 254 257 public InterTypeConstructorDeclaration getITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException ; 258 259 262 public InterTypeConstructorDeclaration[] getITDConstructors(); 263 264 267 public InterTypeFieldDeclaration getDeclaredITDField(String name, AjType<?> target) throws NoSuchFieldException ; 268 269 272 public InterTypeFieldDeclaration[] getDeclaredITDFields(); 273 274 277 public InterTypeFieldDeclaration getITDField(String name, AjType<?> target) throws NoSuchFieldException ; 278 279 282 public InterTypeFieldDeclaration[] getITDFields(); 283 284 289 public DeclareErrorOrWarning[] getDeclareErrorOrWarnings(); 290 291 295 public DeclareParents[] getDeclareParents(); 296 297 301 public DeclareSoft[] getDeclareSofts(); 302 303 307 public DeclareAnnotation[] getDeclareAnnotations(); 308 309 313 public DeclarePrecedence[] getDeclarePrecedence(); 314 315 317 321 public T[] getEnumConstants(); 322 323 327 public TypeVariable <Class <T>>[] getTypeParameters(); 328 329 332 public boolean isEnum(); 333 334 338 public boolean isInstance(Object o); 339 340 343 public boolean isInterface(); 344 345 348 public boolean isLocalClass(); 349 350 353 public boolean isMemberClass(); 354 355 358 public boolean isArray(); 359 360 363 public boolean isPrimitive(); 364 365 368 public boolean isAspect(); 369 370 373 public boolean isMemberAspect(); 374 375 378 public boolean isPrivileged(); 379 380 } 381 | Popular Tags |