Constructor and Description |
---|
AjTypeImpl(java.lang.Class<T> fromClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Advice[] |
getAdvice(AdviceKind... ofType) |
Advice |
getAdvice(java.lang.String name)
For an annotation style advice member,
this is the name of the annotated method.
|
AjType<?>[] |
getAjTypes() |
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> annotationType) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.reflect.Constructor |
getConstructor(AjType<?>... parameterTypes) |
java.lang.reflect.Constructor[] |
getConstructors() |
DeclareAnnotation[] |
getDeclareAnnotations() |
Advice[] |
getDeclaredAdvice(AdviceKind... ofType) |
Advice |
getDeclaredAdvice(java.lang.String name)
For an annotation style advice member,
this is the name of the annotated method.
|
AjType<?>[] |
getDeclaredAjTypes() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
java.lang.reflect.Constructor |
getDeclaredConstructor(AjType<?>... parameterTypes) |
java.lang.reflect.Constructor[] |
getDeclaredConstructors() |
java.lang.reflect.Field |
getDeclaredField(java.lang.String name) |
java.lang.reflect.Field[] |
getDeclaredFields() |
InterTypeConstructorDeclaration |
getDeclaredITDConstructor(AjType<?> target,
AjType<?>... parameterTypes) |
InterTypeConstructorDeclaration[] |
getDeclaredITDConstructors() |
InterTypeFieldDeclaration |
getDeclaredITDField(java.lang.String name,
AjType<?> target) |
InterTypeFieldDeclaration[] |
getDeclaredITDFields() |
InterTypeMethodDeclaration |
getDeclaredITDMethod(java.lang.String name,
AjType<?> target,
AjType<?>... parameterTypes) |
InterTypeMethodDeclaration[] |
getDeclaredITDMethods() |
java.lang.reflect.Method |
getDeclaredMethod(java.lang.String name,
AjType<?>... parameterTypes) |
java.lang.reflect.Method[] |
getDeclaredMethods() |
Pointcut |
getDeclaredPointcut(java.lang.String name) |
Pointcut[] |
getDeclaredPointcuts() |
DeclareErrorOrWarning[] |
getDeclareErrorOrWarnings() |
DeclareParents[] |
getDeclareParents() |
DeclarePrecedence[] |
getDeclarePrecedence() |
DeclareSoft[] |
getDeclareSofts() |
AjType<?> |
getDeclaringType() |
java.lang.reflect.Constructor |
getEnclosingConstructor() |
java.lang.reflect.Method |
getEnclosingMethod() |
AjType<?> |
getEnclosingType() |
T[] |
getEnumConstants() |
java.lang.reflect.Field |
getField(java.lang.String name) |
java.lang.reflect.Field[] |
getFields() |
java.lang.reflect.Type |
getGenericSupertype() |
AjType<?>[] |
getInterfaces() |
InterTypeConstructorDeclaration |
getITDConstructor(AjType<?> target,
AjType<?>... parameterTypes) |
InterTypeConstructorDeclaration[] |
getITDConstructors() |
InterTypeFieldDeclaration |
getITDField(java.lang.String name,
AjType<?> target) |
InterTypeFieldDeclaration[] |
getITDFields() |
InterTypeMethodDeclaration |
getITDMethod(java.lang.String name,
AjType<?> target,
AjType<?>... parameterTypes) |
InterTypeMethodDeclaration[] |
getITDMethods() |
java.lang.Class<T> |
getJavaClass() |
java.lang.reflect.Method |
getMethod(java.lang.String name,
AjType<?>... parameterTypes) |
java.lang.reflect.Method[] |
getMethods() |
int |
getModifiers() |
java.lang.String |
getName() |
java.lang.Package |
getPackage() |
PerClause |
getPerClause() |
Pointcut |
getPointcut(java.lang.String name) |
Pointcut[] |
getPointcuts() |
AjType<? super T> |
getSupertype() |
java.lang.reflect.TypeVariable<java.lang.Class<T>>[] |
getTypeParameters() |
int |
hashCode() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
boolean |
isArray() |
boolean |
isAspect() |
boolean |
isEnum() |
boolean |
isInstance(java.lang.Object o) |
boolean |
isInterface() |
boolean |
isLocalClass() |
boolean |
isMemberAspect() |
boolean |
isMemberClass() |
boolean |
isPrimitive() |
boolean |
isPrivileged() |
java.lang.String |
toString() |
public AjTypeImpl(java.lang.Class<T> fromClass)
public java.lang.String getName()
public java.lang.Package getPackage()
getPackage
in interface AjType<T>
public AjType<?>[] getInterfaces()
getInterfaces
in interface AjType<T>
public int getModifiers()
getModifiers
in interface AjType<T>
public java.lang.Class<T> getJavaClass()
getJavaClass
in interface AjType<T>
public AjType<? super T> getSupertype()
getSupertype
in interface AjType<T>
public java.lang.reflect.Type getGenericSupertype()
getGenericSupertype
in interface AjType<T>
public java.lang.reflect.Method getEnclosingMethod()
getEnclosingMethod
in interface AjType<T>
public java.lang.reflect.Constructor getEnclosingConstructor()
getEnclosingConstructor
in interface AjType<T>
public AjType<?> getEnclosingType()
getEnclosingType
in interface AjType<T>
public AjType<?> getDeclaringType()
getDeclaringType
in interface AjType<T>
public PerClause getPerClause()
getPerClause
in interface AjType<T>
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
isAnnotationPresent
in interface java.lang.reflect.AnnotatedElement
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
getAnnotation
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface java.lang.reflect.AnnotatedElement
public AjType<?>[] getAjTypes()
getAjTypes
in interface AjType<T>
public AjType<?>[] getDeclaredAjTypes()
getDeclaredAjTypes
in interface AjType<T>
public java.lang.reflect.Constructor getConstructor(AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
getConstructor
in interface AjType<T>
parameterTypes
- the types of the constructor parametersjava.lang.NoSuchMethodException
- if constructor not foundpublic java.lang.reflect.Constructor[] getConstructors()
getConstructors
in interface AjType<T>
public java.lang.reflect.Constructor getDeclaredConstructor(AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
getDeclaredConstructor
in interface AjType<T>
parameterTypes
- the types of the constructor parametersjava.lang.NoSuchMethodException
- if constructor not foundpublic java.lang.reflect.Constructor[] getDeclaredConstructors()
getDeclaredConstructors
in interface AjType<T>
public java.lang.reflect.Field getDeclaredField(java.lang.String name) throws java.lang.NoSuchFieldException
getDeclaredField
in interface AjType<T>
name
- the field namejava.lang.NoSuchFieldException
- if no field of that name is foundpublic java.lang.reflect.Field[] getDeclaredFields()
getDeclaredFields
in interface AjType<T>
public java.lang.reflect.Field getField(java.lang.String name) throws java.lang.NoSuchFieldException
public java.lang.reflect.Field[] getFields()
public java.lang.reflect.Method getDeclaredMethod(java.lang.String name, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
getDeclaredMethod
in interface AjType<T>
name
- the method nameparameterTypes
- the types of the method parametersjava.lang.NoSuchMethodException
- if the method cannot be foundpublic java.lang.reflect.Method getMethod(java.lang.String name, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
public java.lang.reflect.Method[] getDeclaredMethods()
getDeclaredMethods
in interface AjType<T>
public java.lang.reflect.Method[] getMethods()
getMethods
in interface AjType<T>
public Pointcut getDeclaredPointcut(java.lang.String name) throws NoSuchPointcutException
getDeclaredPointcut
in interface AjType<T>
name
- the pointcut nameNoSuchPointcutException
- if no pointcut of that name can be foundpublic Pointcut getPointcut(java.lang.String name) throws NoSuchPointcutException
getPointcut
in interface AjType<T>
name
- the pointcut nameNoSuchPointcutException
- if no pointcut of that name can be foundpublic Pointcut[] getDeclaredPointcuts()
getDeclaredPointcuts
in interface AjType<T>
public Pointcut[] getPointcuts()
getPointcuts
in interface AjType<T>
public Advice[] getDeclaredAdvice(AdviceKind... ofType)
getDeclaredAdvice
in interface AjType<T>
ofType
- the AdviceKind
s of interestpublic Advice[] getAdvice(AdviceKind... ofType)
getAdvice
in interface AjType<T>
ofType
- the AdviceKind
s of interestpublic Advice getAdvice(java.lang.String name) throws NoSuchAdviceException
AjType
getAdvice
in interface AjType<T>
name
- the advice nameNoSuchAdviceException
- if no advice can be found with that namepublic Advice getDeclaredAdvice(java.lang.String name) throws NoSuchAdviceException
AjType
getDeclaredAdvice
in interface AjType<T>
name
- the advice nameNoSuchAdviceException
- if no advice can be found with that namepublic InterTypeMethodDeclaration getDeclaredITDMethod(java.lang.String name, AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
getDeclaredITDMethod
in interface AjType<T>
name
- the method nametarget
- the target of the inter-type declarationparameterTypes
- the types of the inter-type method declarationjava.lang.NoSuchMethodException
- if the inter-type declaration cannot be foundpublic InterTypeMethodDeclaration[] getDeclaredITDMethods()
getDeclaredITDMethods
in interface AjType<T>
public InterTypeMethodDeclaration getITDMethod(java.lang.String name, AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
getITDMethod
in interface AjType<T>
name
- the method nametarget
- the target of the inter-type declarationparameterTypes
- the types of the inter-type method declarationjava.lang.NoSuchMethodException
- if the inter-type declaration cannot be foundpublic InterTypeMethodDeclaration[] getITDMethods()
getITDMethods
in interface AjType<T>
public InterTypeConstructorDeclaration getDeclaredITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
getDeclaredITDConstructor
in interface AjType<T>
target
- the target of the inter-type constructor of interestparameterTypes
- the types of the parameter of the inter-type constructor of interestjava.lang.NoSuchMethodException
- if the inter-type declaration cannot be foundpublic InterTypeConstructorDeclaration[] getDeclaredITDConstructors()
getDeclaredITDConstructors
in interface AjType<T>
public InterTypeConstructorDeclaration getITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
getITDConstructor
in interface AjType<T>
target
- the target of the inter-type constructor of interestparameterTypes
- the types of the parameter of the inter-type constructor of interestjava.lang.NoSuchMethodException
- if the inter-type declaration cannot be foundpublic InterTypeConstructorDeclaration[] getITDConstructors()
getITDConstructors
in interface AjType<T>
public InterTypeFieldDeclaration getDeclaredITDField(java.lang.String name, AjType<?> target) throws java.lang.NoSuchFieldException
getDeclaredITDField
in interface AjType<T>
name
- the field nametarget
- the target type for the inter-type declarationjava.lang.NoSuchFieldException
- if the inter-type declaration cannot be foundpublic InterTypeFieldDeclaration[] getDeclaredITDFields()
getDeclaredITDFields
in interface AjType<T>
public InterTypeFieldDeclaration getITDField(java.lang.String name, AjType<?> target) throws java.lang.NoSuchFieldException
getITDField
in interface AjType<T>
name
- the field nametarget
- the target type for the inter-type declarationjava.lang.NoSuchFieldException
- if the inter-type declaration cannot be foundpublic InterTypeFieldDeclaration[] getITDFields()
getITDFields
in interface AjType<T>
public DeclareErrorOrWarning[] getDeclareErrorOrWarnings()
getDeclareErrorOrWarnings
in interface AjType<T>
public DeclareParents[] getDeclareParents()
getDeclareParents
in interface AjType<T>
public DeclareSoft[] getDeclareSofts()
getDeclareSofts
in interface AjType<T>
public DeclareAnnotation[] getDeclareAnnotations()
getDeclareAnnotations
in interface AjType<T>
public DeclarePrecedence[] getDeclarePrecedence()
getDeclarePrecedence
in interface AjType<T>
public T[] getEnumConstants()
getEnumConstants
in interface AjType<T>
public java.lang.reflect.TypeVariable<java.lang.Class<T>>[] getTypeParameters()
getTypeParameters
in interface AjType<T>
public boolean isEnum()
public boolean isInstance(java.lang.Object o)
isInstance
in interface AjType<T>
o
- the object to check for assignment compatibilitypublic boolean isInterface()
isInterface
in interface AjType<T>
public boolean isLocalClass()
isLocalClass
in interface AjType<T>
public boolean isMemberClass()
isMemberClass
in interface AjType<T>
public boolean isArray()
public boolean isPrimitive()
isPrimitive
in interface AjType<T>
public boolean isAspect()
public boolean isMemberAspect()
isMemberAspect
in interface AjType<T>
public boolean isPrivileged()
isPrivileged
in interface AjType<T>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object