|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.internal.lang.reflect.AjTypeImpl<T>
public class AjTypeImpl<T>
Constructor Summary | |
---|---|
AjTypeImpl(java.lang.Class<T> fromClass)
|
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object obj)
|
|
Advice[] |
getAdvice(AdviceKind... ofType)
Returns all of the advice for this type, of an advice kind contained in the parameter list. |
|
Advice |
getAdvice(java.lang.String name)
Returns the advice with the given name. |
|
AjType<?>[] |
getAjTypes()
Returns an array containing all the public types that are members of this type |
|
|
getAnnotation(java.lang.Class<A> annotationType)
|
|
java.lang.annotation.Annotation[] |
getAnnotations()
|
|
java.lang.reflect.Constructor |
getConstructor(AjType<?>... parameterTypes)
Returns the constructor object for the specified public constructor of this type |
|
java.lang.reflect.Constructor[] |
getConstructors()
Returns all of the public constructors of this type |
|
DeclareAnnotation[] |
getDeclareAnnotations()
Return all of the declare annotation members of this type, including declare annotation members inherited from super-types |
|
Advice[] |
getDeclaredAdvice(AdviceKind... ofType)
Returns all of the advice declared by this type, of an advice kind contained in the parameter list. |
|
Advice |
getDeclaredAdvice(java.lang.String name)
Returns the advice declared in this type with the given name. |
|
AjType<?>[] |
getDeclaredAjTypes()
Returns an array containing all the types declared by this type |
|
java.lang.annotation.Annotation[] |
getDeclaredAnnotations()
|
|
java.lang.reflect.Constructor |
getDeclaredConstructor(AjType<?>... parameterTypes)
Returns the constructor object for the specified constructor of this type |
|
java.lang.reflect.Constructor[] |
getDeclaredConstructors()
Returns all the constructors declared in this type |
|
java.lang.reflect.Field |
getDeclaredField(java.lang.String name)
Return the field declared in this type with the given name |
|
java.lang.reflect.Field[] |
getDeclaredFields()
Returns all the fields declared in this type |
|
InterTypeConstructorDeclaration |
getDeclaredITDConstructor(AjType<?> target,
AjType<?>... parameterTypes)
Return the inter-type constructor declared by this type matching the given specification |
|
InterTypeConstructorDeclaration[] |
getDeclaredITDConstructors()
Returns all of the inter-type constructors declared by this type |
|
InterTypeFieldDeclaration |
getDeclaredITDField(java.lang.String name,
AjType<?> target)
Return the inter-type field declared in this type with the given specification |
|
InterTypeFieldDeclaration[] |
getDeclaredITDFields()
Return all of the inter-type fields declared in this type |
|
InterTypeMethodDeclaration |
getDeclaredITDMethod(java.lang.String name,
AjType<?> target,
AjType<?>... parameterTypes)
Return the inter-type method declared by this type matching the given specification |
|
InterTypeMethodDeclaration[] |
getDeclaredITDMethods()
Return all of the inter-type methods declared by this type |
|
java.lang.reflect.Method |
getDeclaredMethod(java.lang.String name,
AjType<?>... parameterTypes)
Return the method object for the specified method declared in this type |
|
java.lang.reflect.Method[] |
getDeclaredMethods()
Return all the methods declared by this type |
|
Pointcut |
getDeclaredPointcut(java.lang.String name)
Return the pointcut object representing the specified pointcut declared by this type |
|
Pointcut[] |
getDeclaredPointcuts()
Returns all of the pointcuts declared by this type |
|
DeclareErrorOrWarning[] |
getDeclareErrorOrWarnings()
Returns all of the declare error and declare warning members of this type, including declare error/warning members inherited from super-types |
|
DeclareParents[] |
getDeclareParents()
Returns all of the declare parents members of this type, including declare parent members inherited from super-types |
|
DeclarePrecedence[] |
getDeclarePrecedence()
Return all of the declare precedence members of this type, including declare precedence members inherited from super-types |
|
DeclareSoft[] |
getDeclareSofts()
Return all of the declare soft members of this type, including declare soft members inherited from super-types |
|
AjType<?> |
getDeclaringType()
If this type is a member of another type, return the AjType representing the type in which it was declared. |
|
java.lang.reflect.Constructor |
getEnclosingConstructor()
If this type represents a local or anonymous type declared within a constructor, return then enclosing Method object. |
|
java.lang.reflect.Method |
getEnclosingMethod()
If this type represents a local or anonymous type declared within a method, return then enclosing Method object. |
|
AjType<?> |
getEnclosingType()
Returns the immediately enclosing type of this type. |
|
T[] |
getEnumConstants()
Returns the elements of this enum class, or null if this type does not represent an enum type. |
|
java.lang.reflect.Field |
getField(java.lang.String name)
Return the public field with the given name |
|
java.lang.reflect.Field[] |
getFields()
Return the public fields declared by this type |
|
java.lang.reflect.Type |
getGenericSupertype()
The generic supertype of this type, as defined by Class.getGenericSupertype |
|
AjType<?>[] |
getInterfaces()
The interfaces implemented by this type |
|
InterTypeConstructorDeclaration |
getITDConstructor(AjType<?> target,
AjType<?>... parameterTypes)
Return the public inter-type constructor matching the given specification |
|
InterTypeConstructorDeclaration[] |
getITDConstructors()
Return all of the public inter-type constructors of this type |
|
InterTypeFieldDeclaration |
getITDField(java.lang.String name,
AjType<?> target)
Return the public inter-type field matching the given specification |
|
InterTypeFieldDeclaration[] |
getITDFields()
Return all of the public inter-type fields for this type |
|
InterTypeMethodDeclaration |
getITDMethod(java.lang.String name,
AjType<?> target,
AjType<?>... parameterTypes)
Return the public inter-type method of this type matching the given specification |
|
InterTypeMethodDeclaration[] |
getITDMethods()
Return all of the public inter-type declared methods of this type |
|
java.lang.Class<T> |
getJavaClass()
The java.lang.Class that corresponds to this AjType |
|
java.lang.reflect.Method |
getMethod(java.lang.String name,
AjType<?>... parameterTypes)
Return the method object for the specified public method declared in this type |
|
java.lang.reflect.Method[] |
getMethods()
Returns all the public methods of this type |
|
int |
getModifiers()
The modifiers declared for this type. |
|
java.lang.String |
getName()
The name of this type, in the same format as returned by Class.getName() |
|
java.lang.Package |
getPackage()
The package in which this type is declared |
|
PerClause |
getPerClause()
If this type represents an aspect, returns the associated per-clause. |
|
Pointcut |
getPointcut(java.lang.String name)
Return the pointcut object representing the specified public pointcut |
|
Pointcut[] |
getPointcuts()
Returns all of the public pointcuts of this type |
|
AjType<? super T> |
getSupertype()
The supertype of this type. |
|
java.lang.reflect.TypeVariable<java.lang.Class<T>>[] |
getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by this type (if any) |
|
int |
hashCode()
|
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
|
boolean |
isArray()
Return true if this is an array type |
|
boolean |
isAspect()
Return true if this is an aspect type |
|
boolean |
isEnum()
True if this is an enum type |
|
boolean |
isInstance(java.lang.Object o)
True if the given object is assignment-compatible with an object of the type represented by this AjType |
|
boolean |
isInterface()
True if this is an interface type |
|
boolean |
isLocalClass()
Returns true if and only if the underlying type is a local class |
|
boolean |
isMemberAspect()
Returns true if and only if the underlying type is a member aspect |
|
boolean |
isMemberClass()
Returns true if and only if the underlying type is a member class |
|
boolean |
isPrimitive()
Return true if this object represents a primitive type |
|
boolean |
isPrivileged()
Returns true if and only if the underlying type is a privileged aspect |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AjTypeImpl(java.lang.Class<T> fromClass)
Method Detail |
---|
public java.lang.String getName()
AjType
getName
in interface AjType<T>
public java.lang.Package getPackage()
AjType
getPackage
in interface AjType<T>
public AjType<?>[] getInterfaces()
AjType
getInterfaces
in interface AjType<T>
public int getModifiers()
AjType
getModifiers
in interface AjType<T>
public java.lang.Class<T> getJavaClass()
AjType
getJavaClass
in interface AjType<T>
public AjType<? super T> getSupertype()
AjType
getSupertype
in interface AjType<T>
public java.lang.reflect.Type getGenericSupertype()
AjType
getGenericSupertype
in interface AjType<T>
public java.lang.reflect.Method getEnclosingMethod()
AjType
getEnclosingMethod
in interface AjType<T>
public java.lang.reflect.Constructor getEnclosingConstructor()
AjType
getEnclosingConstructor
in interface AjType<T>
public AjType<?> getEnclosingType()
AjType
getEnclosingType
in interface AjType<T>
public AjType<?> getDeclaringType()
AjType
getDeclaringType
in interface AjType<T>
public PerClause getPerClause()
AjType
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()
AjType
getAjTypes
in interface AjType<T>
public AjType<?>[] getDeclaredAjTypes()
AjType
getDeclaredAjTypes
in interface AjType<T>
public java.lang.reflect.Constructor getConstructor(AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getConstructor
in interface AjType<T>
java.lang.NoSuchMethodException
public java.lang.reflect.Constructor[] getConstructors()
AjType
getConstructors
in interface AjType<T>
public java.lang.reflect.Constructor getDeclaredConstructor(AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getDeclaredConstructor
in interface AjType<T>
java.lang.NoSuchMethodException
public java.lang.reflect.Constructor[] getDeclaredConstructors()
AjType
getDeclaredConstructors
in interface AjType<T>
public java.lang.reflect.Field getDeclaredField(java.lang.String name) throws java.lang.NoSuchFieldException
AjType
getDeclaredField
in interface AjType<T>
java.lang.NoSuchFieldException
public java.lang.reflect.Field[] getDeclaredFields()
AjType
getDeclaredFields
in interface AjType<T>
public java.lang.reflect.Field getField(java.lang.String name) throws java.lang.NoSuchFieldException
AjType
getField
in interface AjType<T>
java.lang.NoSuchFieldException
public java.lang.reflect.Field[] getFields()
AjType
getFields
in interface AjType<T>
public java.lang.reflect.Method getDeclaredMethod(java.lang.String name, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getDeclaredMethod
in interface AjType<T>
java.lang.NoSuchMethodException
public java.lang.reflect.Method getMethod(java.lang.String name, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getMethod
in interface AjType<T>
java.lang.NoSuchMethodException
public java.lang.reflect.Method[] getDeclaredMethods()
AjType
getDeclaredMethods
in interface AjType<T>
public java.lang.reflect.Method[] getMethods()
AjType
getMethods
in interface AjType<T>
public Pointcut getDeclaredPointcut(java.lang.String name) throws NoSuchPointcutException
AjType
getDeclaredPointcut
in interface AjType<T>
NoSuchPointcutException
public Pointcut getPointcut(java.lang.String name) throws NoSuchPointcutException
AjType
getPointcut
in interface AjType<T>
NoSuchPointcutException
public Pointcut[] getDeclaredPointcuts()
AjType
getDeclaredPointcuts
in interface AjType<T>
public Pointcut[] getPointcuts()
AjType
getPointcuts
in interface AjType<T>
public Advice[] getDeclaredAdvice(AdviceKind... ofType)
AjType
getDeclaredAdvice
in interface AjType<T>
public Advice[] getAdvice(AdviceKind... ofType)
AjType
getAdvice
in interface AjType<T>
public Advice getAdvice(java.lang.String name) throws NoSuchAdviceException
AjType
getAdvice
in interface AjType<T>
NoSuchAdviceException
public Advice getDeclaredAdvice(java.lang.String name) throws NoSuchAdviceException
AjType
getDeclaredAdvice
in interface AjType<T>
NoSuchAdviceException
public InterTypeMethodDeclaration getDeclaredITDMethod(java.lang.String name, AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getDeclaredITDMethod
in interface AjType<T>
java.lang.NoSuchMethodException
public InterTypeMethodDeclaration[] getDeclaredITDMethods()
AjType
getDeclaredITDMethods
in interface AjType<T>
public InterTypeMethodDeclaration getITDMethod(java.lang.String name, AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getITDMethod
in interface AjType<T>
java.lang.NoSuchMethodException
public InterTypeMethodDeclaration[] getITDMethods()
AjType
getITDMethods
in interface AjType<T>
public InterTypeConstructorDeclaration getDeclaredITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getDeclaredITDConstructor
in interface AjType<T>
java.lang.NoSuchMethodException
public InterTypeConstructorDeclaration[] getDeclaredITDConstructors()
AjType
getDeclaredITDConstructors
in interface AjType<T>
public InterTypeConstructorDeclaration getITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws java.lang.NoSuchMethodException
AjType
getITDConstructor
in interface AjType<T>
java.lang.NoSuchMethodException
public InterTypeConstructorDeclaration[] getITDConstructors()
AjType
getITDConstructors
in interface AjType<T>
public InterTypeFieldDeclaration getDeclaredITDField(java.lang.String name, AjType<?> target) throws java.lang.NoSuchFieldException
AjType
getDeclaredITDField
in interface AjType<T>
java.lang.NoSuchFieldException
public InterTypeFieldDeclaration[] getDeclaredITDFields()
AjType
getDeclaredITDFields
in interface AjType<T>
public InterTypeFieldDeclaration getITDField(java.lang.String name, AjType<?> target) throws java.lang.NoSuchFieldException
AjType
getITDField
in interface AjType<T>
java.lang.NoSuchFieldException
public InterTypeFieldDeclaration[] getITDFields()
AjType
getITDFields
in interface AjType<T>
public DeclareErrorOrWarning[] getDeclareErrorOrWarnings()
AjType
getDeclareErrorOrWarnings
in interface AjType<T>
public DeclareParents[] getDeclareParents()
AjType
getDeclareParents
in interface AjType<T>
public DeclareSoft[] getDeclareSofts()
AjType
getDeclareSofts
in interface AjType<T>
public DeclareAnnotation[] getDeclareAnnotations()
AjType
getDeclareAnnotations
in interface AjType<T>
public DeclarePrecedence[] getDeclarePrecedence()
AjType
getDeclarePrecedence
in interface AjType<T>
public T[] getEnumConstants()
AjType
getEnumConstants
in interface AjType<T>
public java.lang.reflect.TypeVariable<java.lang.Class<T>>[] getTypeParameters()
AjType
getTypeParameters
in interface AjType<T>
public boolean isEnum()
AjType
isEnum
in interface AjType<T>
public boolean isInstance(java.lang.Object o)
AjType
isInstance
in interface AjType<T>
public boolean isInterface()
AjType
isInterface
in interface AjType<T>
public boolean isLocalClass()
AjType
isLocalClass
in interface AjType<T>
public boolean isMemberClass()
AjType
isMemberClass
in interface AjType<T>
public boolean isArray()
AjType
isArray
in interface AjType<T>
public boolean isPrimitive()
AjType
isPrimitive
in interface AjType<T>
public boolean isAspect()
AjType
isAspect
in interface AjType<T>
public boolean isMemberAspect()
AjType
isMemberAspect
in interface AjType<T>
public boolean isPrivileged()
AjType
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |