Klasse AjTypeImpl<T>
java.lang.Object
org.aspectj.internal.lang.reflect.AjTypeImpl<T>
- Alle implementierten Schnittstellen:
AnnotatedElement,Type,AjType<T>
- Autor:
- colyer
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanFor an annotation style advice member, this is the name of the annotated method.Advice[]getAdvice(AdviceKind... ofType) AjType<?>[]<A extends Annotation>
AgetAnnotation(Class<A> annotationType) getConstructor(AjType<?>... parameterTypes) getDeclaredAdvice(String name) For an annotation style advice member, this is the name of the annotated method.Advice[]getDeclaredAdvice(AdviceKind... ofType) AjType<?>[]getDeclaredConstructor(AjType<?>... parameterTypes) getDeclaredField(String name) Field[]getDeclaredITDConstructor(AjType<?> target, AjType<?>... parameterTypes) getDeclaredITDField(String name, AjType<?> target) getDeclaredITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) getDeclaredMethod(String name, AjType<?>... parameterTypes) Method[]getDeclaredPointcut(String name) Pointcut[]AjType<?> AjType<?> T[]Field[]AjType<?>[]getITDConstructor(AjType<?> target, AjType<?>... parameterTypes) getITDField(String name, AjType<?> target) getITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) Method[]intgetName()getPointcut(String name) Pointcut[]TypeVariable<Class<T>>[]inthashCode()booleanisAnnotationPresent(Class<? extends Annotation> annotationType) booleanisArray()booleanisAspect()booleanisEnum()booleanisInstance(Object o) booleanbooleanbooleanbooleanbooleanbooleantoString()Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypeVon Schnittstelle geerbte Methoden java.lang.reflect.Type
getTypeName
-
Konstruktordetails
-
AjTypeImpl
-
-
Methodendetails
-
getName
-
getPackage
- Angegeben von:
getPackagein SchnittstelleAjType<T>- Gibt zurück:
- the package in which this type is declared
-
getInterfaces
- Angegeben von:
getInterfacesin SchnittstelleAjType<T>- Gibt zurück:
- the interfaces implemented by this type
-
getModifiers
public int getModifiers()- Angegeben von:
getModifiersin SchnittstelleAjType<T>- Gibt zurück:
- the modifiers declared for this type. The return value can be interpreted using java.lang.reflect.Modifier
-
getJavaClass
- Angegeben von:
getJavaClassin SchnittstelleAjType<T>- Gibt zurück:
- the java.lang.Class that corresponds to this AjType
-
getSupertype
- Angegeben von:
getSupertypein SchnittstelleAjType<T>- Gibt zurück:
- the supertype of this type. If this type represents Object or a primitive type then null is returned.
-
getGenericSupertype
- Angegeben von:
getGenericSupertypein SchnittstelleAjType<T>- Gibt zurück:
- the generic supertype of this type, as defined by Class.getGenericSupertype
-
getEnclosingMethod
- Angegeben von:
getEnclosingMethodin SchnittstelleAjType<T>- Gibt zurück:
- the enclosing Method if this type represents a local or anonymous type declared within a method
-
getEnclosingConstructor
- Angegeben von:
getEnclosingConstructorin SchnittstelleAjType<T>- Gibt zurück:
- the enclosing Method if this type represents a local or anonymous type declared within a constructor
-
getEnclosingType
- Angegeben von:
getEnclosingTypein SchnittstelleAjType<T>- Gibt zurück:
- the immediately enclosing type of this type.
-
getDeclaringType
- Angegeben von:
getDeclaringTypein SchnittstelleAjType<T>- Gibt zurück:
- the AjType representing the typei n which it was declared (if this type is a member of another type)
-
getPerClause
- Angegeben von:
getPerClausein SchnittstelleAjType<T>- Gibt zurück:
- the per-clause if this is an aspect, otherwise null
-
isAnnotationPresent
- Angegeben von:
isAnnotationPresentin SchnittstelleAnnotatedElement
-
getAnnotation
- Angegeben von:
getAnnotationin SchnittstelleAnnotatedElement
-
getAnnotations
- Angegeben von:
getAnnotationsin SchnittstelleAnnotatedElement
-
getDeclaredAnnotations
- Angegeben von:
getDeclaredAnnotationsin SchnittstelleAnnotatedElement
-
getAjTypes
- Angegeben von:
getAjTypesin SchnittstelleAjType<T>- Gibt zurück:
- an array containing all the public types that are members of this type
-
getDeclaredAjTypes
- Angegeben von:
getDeclaredAjTypesin SchnittstelleAjType<T>- Gibt zurück:
- an array containing all the types declared by this type
-
getConstructor
- Angegeben von:
getConstructorin SchnittstelleAjType<T>- Parameter:
parameterTypes- the types of the constructor parameters- Gibt zurück:
- the constructor object for the specified public constructor of this type
- Löst aus:
NoSuchMethodException- if constructor not found
-
getConstructors
- Angegeben von:
getConstructorsin SchnittstelleAjType<T>- Gibt zurück:
- all of the public constructors of this type
-
getDeclaredConstructor
- Angegeben von:
getDeclaredConstructorin SchnittstelleAjType<T>- Parameter:
parameterTypes- the types of the constructor parameters- Gibt zurück:
- the constructor object for the specified constructor of this type
- Löst aus:
NoSuchMethodException- if constructor not found
-
getDeclaredConstructors
- Angegeben von:
getDeclaredConstructorsin SchnittstelleAjType<T>- Gibt zurück:
- all the constructors declared in this type
-
getDeclaredField
- Angegeben von:
getDeclaredFieldin SchnittstelleAjType<T>- Parameter:
name- the field name- Gibt zurück:
- the declared field
- Löst aus:
NoSuchFieldException- if no field of that name is found
-
getDeclaredFields
- Angegeben von:
getDeclaredFieldsin SchnittstelleAjType<T>- Gibt zurück:
- all the fields declared in this type
-
getField
- Angegeben von:
getFieldin SchnittstelleAjType<T>- Parameter:
name- the field name- Gibt zurück:
- the public field with the given name
- Löst aus:
NoSuchFieldException- if field not found
-
getFields
-
getDeclaredMethod
public Method getDeclaredMethod(String name, AjType<?>... parameterTypes) throws NoSuchMethodException - Angegeben von:
getDeclaredMethodin SchnittstelleAjType<T>- Parameter:
name- the method nameparameterTypes- the types of the method parameters- Gibt zurück:
- the method object for the specified method declared in this type
- Löst aus:
NoSuchMethodException- if the method cannot be found
-
getMethod
- Angegeben von:
getMethodin SchnittstelleAjType<T>- Parameter:
name- the method nameparameterTypes- the types of the method parameters- Gibt zurück:
- the method object for the specified public method declared in this type
- Löst aus:
NoSuchMethodException- if the method cannot be found
-
getDeclaredMethods
- Angegeben von:
getDeclaredMethodsin SchnittstelleAjType<T>- Gibt zurück:
- all the methods declared by this type
-
getMethods
- Angegeben von:
getMethodsin SchnittstelleAjType<T>- Gibt zurück:
- all the public methods of this type
-
getDeclaredPointcut
- Angegeben von:
getDeclaredPointcutin SchnittstelleAjType<T>- Parameter:
name- the pointcut name- Gibt zurück:
- the pointcut object representing the specified pointcut declared by this type
- Löst aus:
NoSuchPointcutException- if no pointcut of that name can be found
-
getPointcut
- Angegeben von:
getPointcutin SchnittstelleAjType<T>- Parameter:
name- the pointcut name- Gibt zurück:
- the pointcut object representing the specified public pointcut
- Löst aus:
NoSuchPointcutException- if no pointcut of that name can be found
-
getDeclaredPointcuts
- Angegeben von:
getDeclaredPointcutsin SchnittstelleAjType<T>- Gibt zurück:
- all of the pointcuts declared by this type
-
getPointcuts
- Angegeben von:
getPointcutsin SchnittstelleAjType<T>- Gibt zurück:
- all of the public pointcuts of this type
-
getDeclaredAdvice
- Angegeben von:
getDeclaredAdvicein SchnittstelleAjType<T>- Parameter:
ofType- theAdviceKinds of interest- Gibt zurück:
- all of the advice declared by this type, of an advice kind contained in the parameter list.
-
getAdvice
- Angegeben von:
getAdvicein SchnittstelleAjType<T>- Parameter:
ofType- theAdviceKinds of interest- Gibt zurück:
- all of the advice for this type, of an advice kind contained in the parameter list.
-
getAdvice
Beschreibung aus Schnittstelle kopiert:AjTypeFor an annotation style advice member, this is the name of the annotated method. For a code-style advice declaration, this is the name given in the @AdviceName annotation if present.- Angegeben von:
getAdvicein SchnittstelleAjType<T>- Parameter:
name- the advice name- Gibt zurück:
- the advice with the given name.
- Löst aus:
NoSuchAdviceException- if no advice can be found with that name
-
getDeclaredAdvice
Beschreibung aus Schnittstelle kopiert:AjTypeFor an annotation style advice member, this is the name of the annotated method. For a code-style advice declaration, this is the name given in the @AdviceName annotation if present.- Angegeben von:
getDeclaredAdvicein SchnittstelleAjType<T>- Parameter:
name- the advice name- Gibt zurück:
- the advice declared in this type with the given name.
- Löst aus:
NoSuchAdviceException- if no advice can be found with that name
-
getDeclaredITDMethod
public InterTypeMethodDeclaration getDeclaredITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException - Angegeben von:
getDeclaredITDMethodin SchnittstelleAjType<T>- Parameter:
name- the method nametarget- the target of the inter-type declarationparameterTypes- the types of the inter-type method declaration- Gibt zurück:
- the inter-type method declared by this type matching the given specification
- Löst aus:
NoSuchMethodException- if the inter-type declaration cannot be found
-
getDeclaredITDMethods
- Angegeben von:
getDeclaredITDMethodsin SchnittstelleAjType<T>- Gibt zurück:
- all of the inter-type methods declared by this type
-
getITDMethod
public InterTypeMethodDeclaration getITDMethod(String name, AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException - Angegeben von:
getITDMethodin SchnittstelleAjType<T>- Parameter:
name- the method nametarget- the target of the inter-type declarationparameterTypes- the types of the inter-type method declaration- Gibt zurück:
- the public inter-type method of this type matching the given specification
- Löst aus:
NoSuchMethodException- if the inter-type declaration cannot be found
-
getITDMethods
- Angegeben von:
getITDMethodsin SchnittstelleAjType<T>- Gibt zurück:
- all of the public inter-type declared methods of this type
-
getDeclaredITDConstructor
public InterTypeConstructorDeclaration getDeclaredITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException - Angegeben von:
getDeclaredITDConstructorin SchnittstelleAjType<T>- Parameter:
target- the target of the inter-type constructor of interestparameterTypes- the types of the parameter of the inter-type constructor of interest- Gibt zurück:
- the inter-type constructor declared by this type matching the given specification
- Löst aus:
NoSuchMethodException- if the inter-type declaration cannot be found
-
getDeclaredITDConstructors
- Angegeben von:
getDeclaredITDConstructorsin SchnittstelleAjType<T>- Gibt zurück:
- all of the inter-type constructors declared by this type
-
getITDConstructor
public InterTypeConstructorDeclaration getITDConstructor(AjType<?> target, AjType<?>... parameterTypes) throws NoSuchMethodException - Angegeben von:
getITDConstructorin SchnittstelleAjType<T>- Parameter:
target- the target of the inter-type constructor of interestparameterTypes- the types of the parameter of the inter-type constructor of interest- Gibt zurück:
- the public inter-type constructor matching the given specification
- Löst aus:
NoSuchMethodException- if the inter-type declaration cannot be found
-
getITDConstructors
- Angegeben von:
getITDConstructorsin SchnittstelleAjType<T>- Gibt zurück:
- all of the public inter-type constructors of this type
-
getDeclaredITDField
public InterTypeFieldDeclaration getDeclaredITDField(String name, AjType<?> target) throws NoSuchFieldException - Angegeben von:
getDeclaredITDFieldin SchnittstelleAjType<T>- Parameter:
name- the field nametarget- the target type for the inter-type declaration- Gibt zurück:
- the inter-type field declared in this type with the given specification
- Löst aus:
NoSuchFieldException- if the inter-type declaration cannot be found
-
getDeclaredITDFields
- Angegeben von:
getDeclaredITDFieldsin SchnittstelleAjType<T>- Gibt zurück:
- all of the inter-type fields declared in this type
-
getITDField
public InterTypeFieldDeclaration getITDField(String name, AjType<?> target) throws NoSuchFieldException - Angegeben von:
getITDFieldin SchnittstelleAjType<T>- Parameter:
name- the field nametarget- the target type for the inter-type declaration- Gibt zurück:
- the public inter-type field matching the given specification
- Löst aus:
NoSuchFieldException- if the inter-type declaration cannot be found
-
getITDFields
- Angegeben von:
getITDFieldsin SchnittstelleAjType<T>- Gibt zurück:
- all of the public inter-type fields for this type
-
getDeclareErrorOrWarnings
- Angegeben von:
getDeclareErrorOrWarningsin SchnittstelleAjType<T>- Gibt zurück:
- all of the declare error and declare warning members of this type, including declare error/warning members inherited from super-types
-
getDeclareParents
- Angegeben von:
getDeclareParentsin SchnittstelleAjType<T>- Gibt zurück:
- all of the declare parents members of this type, including declare parent members inherited from super-types
-
getDeclareSofts
- Angegeben von:
getDeclareSoftsin SchnittstelleAjType<T>- Gibt zurück:
- all of the declare soft members of this type, including declare soft members inherited from super-types
-
getDeclareAnnotations
- Angegeben von:
getDeclareAnnotationsin SchnittstelleAjType<T>- Gibt zurück:
- all of the declare annotation members of this type, including declare annotation members inherited from super-types
-
getDeclarePrecedence
- Angegeben von:
getDeclarePrecedencein SchnittstelleAjType<T>- Gibt zurück:
- all of the declare precedence members of this type, including declare precedence members inherited from super-types
-
getEnumConstants
- Angegeben von:
getEnumConstantsin SchnittstelleAjType<T>- Gibt zurück:
- the elements of this enum class, or null if this type does not represent an enum type.
-
getTypeParameters
- Angegeben von:
getTypeParametersin SchnittstelleAjType<T>- Gibt zurück:
- an array of TypeVariable objects that represent the type variables declared by this type (if any)
-
isEnum
public boolean isEnum() -
isInstance
- Angegeben von:
isInstancein SchnittstelleAjType<T>- Parameter:
o- the object to check for assignment compatibility- Gibt zurück:
- true if the given object is assignment-compatible with an object of the type represented by this AjType
-
isInterface
public boolean isInterface()- Angegeben von:
isInterfacein SchnittstelleAjType<T>- Gibt zurück:
- true if this is an interface type
-
isLocalClass
public boolean isLocalClass()- Angegeben von:
isLocalClassin SchnittstelleAjType<T>- Gibt zurück:
- true if and only if the underlying type is a local class
-
isMemberClass
public boolean isMemberClass()- Angegeben von:
isMemberClassin SchnittstelleAjType<T>- Gibt zurück:
- true if and only if the underlying type is a member class
-
isArray
public boolean isArray() -
isPrimitive
public boolean isPrimitive()- Angegeben von:
isPrimitivein SchnittstelleAjType<T>- Gibt zurück:
- true if this object represents a primitive type
-
isAspect
public boolean isAspect() -
isMemberAspect
public boolean isMemberAspect()- Angegeben von:
isMemberAspectin SchnittstelleAjType<T>- Gibt zurück:
- true if and only if the underlying type is a member aspect
-
isPrivileged
public boolean isPrivileged()- Angegeben von:
isPrivilegedin SchnittstelleAjType<T>- Gibt zurück:
- true if and only if the underlying type is a privileged aspect
-
equals
-
hashCode
public int hashCode() -
toString
-