Class AjTypeImpl<T>
- java.lang.Object
-
- org.aspectj.internal.lang.reflect.AjTypeImpl<T>
-
- All Implemented Interfaces:
AnnotatedElement,Type,AjType<T>
public class AjTypeImpl<T> extends Object implements AjType<T>
-
-
Constructor Summary
Constructors Constructor Description AjTypeImpl(Class<T> fromClass)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Method Detail
-
getPackage
public Package getPackage()
- Specified by:
getPackagein interfaceAjType<T>
-
getInterfaces
public AjType<?>[] getInterfaces()
- Specified by:
getInterfacesin interfaceAjType<T>
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceAjType<T>
-
getJavaClass
public Class<T> getJavaClass()
- Specified by:
getJavaClassin interfaceAjType<T>
-
getSupertype
public AjType<? super T> getSupertype()
- Specified by:
getSupertypein interfaceAjType<T>
-
getGenericSupertype
public Type getGenericSupertype()
- Specified by:
getGenericSupertypein interfaceAjType<T>
-
getEnclosingMethod
public Method getEnclosingMethod()
- Specified by:
getEnclosingMethodin interfaceAjType<T>
-
getEnclosingConstructor
public Constructor getEnclosingConstructor()
- Specified by:
getEnclosingConstructorin interfaceAjType<T>
-
getEnclosingType
public AjType<?> getEnclosingType()
- Specified by:
getEnclosingTypein interfaceAjType<T>
-
getDeclaringType
public AjType<?> getDeclaringType()
- Specified by:
getDeclaringTypein interfaceAjType<T>
-
getPerClause
public PerClause getPerClause()
- Specified by:
getPerClausein interfaceAjType<T>
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
getAjTypes
public AjType<?>[] getAjTypes()
- Specified by:
getAjTypesin interfaceAjType<T>
-
getDeclaredAjTypes
public AjType<?>[] getDeclaredAjTypes()
- Specified by:
getDeclaredAjTypesin interfaceAjType<T>
-
getConstructor
public Constructor getConstructor(AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getConstructorin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getConstructors
public Constructor[] getConstructors()
- Specified by:
getConstructorsin interfaceAjType<T>
-
getDeclaredConstructor
public Constructor getDeclaredConstructor(AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getDeclaredConstructorin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getDeclaredConstructors
public Constructor[] getDeclaredConstructors()
- Specified by:
getDeclaredConstructorsin interfaceAjType<T>
-
getDeclaredField
public Field getDeclaredField(String name) throws NoSuchFieldException
- Specified by:
getDeclaredFieldin interfaceAjType<T>- Throws:
NoSuchFieldException
-
getDeclaredFields
public Field[] getDeclaredFields()
- Specified by:
getDeclaredFieldsin interfaceAjType<T>
-
getField
public Field getField(String name) throws NoSuchFieldException
- Specified by:
getFieldin interfaceAjType<T>- Throws:
NoSuchFieldException
-
getDeclaredMethod
public Method getDeclaredMethod(String name, AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getDeclaredMethodin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getMethod
public Method getMethod(String name, AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getMethodin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getDeclaredMethods
public Method[] getDeclaredMethods()
- Specified by:
getDeclaredMethodsin interfaceAjType<T>
-
getMethods
public Method[] getMethods()
- Specified by:
getMethodsin interfaceAjType<T>
-
getDeclaredPointcut
public Pointcut getDeclaredPointcut(String name) throws NoSuchPointcutException
- Specified by:
getDeclaredPointcutin interfaceAjType<T>- Throws:
NoSuchPointcutException
-
getPointcut
public Pointcut getPointcut(String name) throws NoSuchPointcutException
- Specified by:
getPointcutin interfaceAjType<T>- Throws:
NoSuchPointcutException
-
getDeclaredPointcuts
public Pointcut[] getDeclaredPointcuts()
- Specified by:
getDeclaredPointcutsin interfaceAjType<T>
-
getPointcuts
public Pointcut[] getPointcuts()
- Specified by:
getPointcutsin interfaceAjType<T>
-
getDeclaredAdvice
public Advice[] getDeclaredAdvice(AdviceKind... ofType)
- Specified by:
getDeclaredAdvicein interfaceAjType<T>
-
getAdvice
public Advice[] getAdvice(AdviceKind... ofType)
-
getAdvice
public Advice getAdvice(String name) throws NoSuchAdviceException
- Specified by:
getAdvicein interfaceAjType<T>- Throws:
NoSuchAdviceException
-
getDeclaredAdvice
public Advice getDeclaredAdvice(String name) throws NoSuchAdviceException
- Specified by:
getDeclaredAdvicein interfaceAjType<T>- Throws:
NoSuchAdviceException
-
getDeclaredITDMethod
public InterTypeMethodDeclaration getDeclaredITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getDeclaredITDMethodin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getDeclaredITDMethods
public InterTypeMethodDeclaration[] getDeclaredITDMethods()
- Specified by:
getDeclaredITDMethodsin interfaceAjType<T>
-
getITDMethod
public InterTypeMethodDeclaration getITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getITDMethodin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getITDMethods
public InterTypeMethodDeclaration[] getITDMethods()
- Specified by:
getITDMethodsin interfaceAjType<T>
-
getDeclaredITDConstructor
public InterTypeConstructorDeclaration getDeclaredITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getDeclaredITDConstructorin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getDeclaredITDConstructors
public InterTypeConstructorDeclaration[] getDeclaredITDConstructors()
- Specified by:
getDeclaredITDConstructorsin interfaceAjType<T>
-
getITDConstructor
public InterTypeConstructorDeclaration getITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException
- Specified by:
getITDConstructorin interfaceAjType<T>- Throws:
NoSuchMethodException
-
getITDConstructors
public InterTypeConstructorDeclaration[] getITDConstructors()
- Specified by:
getITDConstructorsin interfaceAjType<T>
-
getDeclaredITDField
public InterTypeFieldDeclaration getDeclaredITDField(String name, AjType<?> target) throws NoSuchFieldException
- Specified by:
getDeclaredITDFieldin interfaceAjType<T>- Throws:
NoSuchFieldException
-
getDeclaredITDFields
public InterTypeFieldDeclaration[] getDeclaredITDFields()
- Specified by:
getDeclaredITDFieldsin interfaceAjType<T>
-
getITDField
public InterTypeFieldDeclaration getITDField(String name, AjType<?> target) throws NoSuchFieldException
- Specified by:
getITDFieldin interfaceAjType<T>- Throws:
NoSuchFieldException
-
getITDFields
public InterTypeFieldDeclaration[] getITDFields()
- Specified by:
getITDFieldsin interfaceAjType<T>
-
getDeclareErrorOrWarnings
public DeclareErrorOrWarning[] getDeclareErrorOrWarnings()
- Specified by:
getDeclareErrorOrWarningsin interfaceAjType<T>
-
getDeclareParents
public DeclareParents[] getDeclareParents()
- Specified by:
getDeclareParentsin interfaceAjType<T>
-
getDeclareSofts
public DeclareSoft[] getDeclareSofts()
- Specified by:
getDeclareSoftsin interfaceAjType<T>
-
getDeclareAnnotations
public DeclareAnnotation[] getDeclareAnnotations()
- Specified by:
getDeclareAnnotationsin interfaceAjType<T>
-
getDeclarePrecedence
public DeclarePrecedence[] getDeclarePrecedence()
- Specified by:
getDeclarePrecedencein interfaceAjType<T>
-
getEnumConstants
public T[] getEnumConstants()
- Specified by:
getEnumConstantsin interfaceAjType<T>
-
getTypeParameters
public TypeVariable<Class<T>>[] getTypeParameters()
- Specified by:
getTypeParametersin interfaceAjType<T>
-
isInstance
public boolean isInstance(Object o)
- Specified by:
isInstancein interfaceAjType<T>
-
isInterface
public boolean isInterface()
- Specified by:
isInterfacein interfaceAjType<T>
-
isLocalClass
public boolean isLocalClass()
- Specified by:
isLocalClassin interfaceAjType<T>
-
isMemberClass
public boolean isMemberClass()
- Specified by:
isMemberClassin interfaceAjType<T>
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfaceAjType<T>
-
isMemberAspect
public boolean isMemberAspect()
- Specified by:
isMemberAspectin interfaceAjType<T>
-
isPrivileged
public boolean isPrivileged()
- Specified by:
isPrivilegedin interfaceAjType<T>
-
-