Package org.aspectj.weaver.reflect
Klasse ReflectionBasedReferenceTypeDelegate
java.lang.Object
org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegate
- Alle implementierten Schnittstellen:
ReferenceTypeDelegate
- Bekannte direkte Unterklassen:
Java15ReflectionBasedReferenceTypeDelegate
- Autor:
- colyer A delegate for a resolved type that uses runtime type information (java.lang.reflect) to answer questions. This class uses only Java 1.4 features to answer questions. In a Java 1.5 environment use the Java5ReflectionBasedReferenceTypeDelegate subtype.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected WeakClassLoaderReferenceprotected Classprotected World -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungfor reflective construction onlyReflectionBasedReferenceTypeDelegate(Class forClass, ClassLoader aClassLoader, World inWorld, ReferenceType resolvedType) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbooleancreateResolvedMemberFor(Member aMember) booleanvoidImplementations need to clear stateprotected ClassClass<?> getClazz()intIf known, return the compiler/weaver version used to build this delegate.intprotected WorldgetWorld()booleanhasAnnotation(UnresolvedType ofType) booleanbooleanvoidinitialize(ReferenceType aType, Class<?> aClass, ClassLoader aClassLoader, World aWorld) booleanbooleanbooleanbooleanbooleanisAspect()booleanTODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?booleanisClass()booleanisEnum()booleanbooleanbooleanbooleanisNested()boolean
-
Felddetails
-
myClass
-
classLoaderReference
-
world
-
-
Konstruktordetails
-
ReflectionBasedReferenceTypeDelegate
public ReflectionBasedReferenceTypeDelegate(Class forClass, ClassLoader aClassLoader, World inWorld, ReferenceType resolvedType) -
ReflectionBasedReferenceTypeDelegate
public ReflectionBasedReferenceTypeDelegate()for reflective construction only
-
-
Methodendetails
-
initialize
public void initialize(ReferenceType aType, Class<?> aClass, ClassLoader aClassLoader, World aWorld) -
getClazz
-
getBaseClass
-
getWorld
-
buildGenericType
-
isAspect
public boolean isAspect()- Angegeben von:
isAspectin SchnittstelleReferenceTypeDelegate
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()- Angegeben von:
isAnnotationStyleAspectin SchnittstelleReferenceTypeDelegate- Gibt zurück:
- true if the type is an annotation style aspect (a type marked @Aspect)
-
isInterface
public boolean isInterface()- Angegeben von:
isInterfacein SchnittstelleReferenceTypeDelegate
-
isEnum
public boolean isEnum()- Angegeben von:
isEnumin SchnittstelleReferenceTypeDelegate
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()- Angegeben von:
isAnnotationWithRuntimeRetentionin SchnittstelleReferenceTypeDelegate- Gibt zurück:
- true if this annotation type has a retention policy of RUNTIME
-
isAnnotation
public boolean isAnnotation()- Angegeben von:
isAnnotationin SchnittstelleReferenceTypeDelegate
-
getRetentionPolicy
- Angegeben von:
getRetentionPolicyin SchnittstelleReferenceTypeDelegate
-
canAnnotationTargetType
public boolean canAnnotationTargetType()- Angegeben von:
canAnnotationTargetTypein SchnittstelleReferenceTypeDelegate- Gibt zurück:
- true if this annotation type can be on a regular type (ie. it doesn't specify anything or it specifies TYPE)
-
getAnnotationTargetKinds
- Angegeben von:
getAnnotationTargetKindsin SchnittstelleReferenceTypeDelegate- Gibt zurück:
- all the possible targets that this annotation can be placed upon
-
isClass
public boolean isClass()- Angegeben von:
isClassin SchnittstelleReferenceTypeDelegate
-
isGeneric
public boolean isGeneric()- Angegeben von:
isGenericin SchnittstelleReferenceTypeDelegate
-
isAnonymous
public boolean isAnonymous()- Angegeben von:
isAnonymousin SchnittstelleReferenceTypeDelegate
-
isNested
public boolean isNested()- Angegeben von:
isNestedin SchnittstelleReferenceTypeDelegate- Gibt zurück:
- true if this class is nested (this includes: member classes, local classes, anonymous classes)
-
getOuterClass
- Angegeben von:
getOuterClassin SchnittstelleReferenceTypeDelegate
-
isExposedToWeaver
public boolean isExposedToWeaver()- Angegeben von:
isExposedToWeaverin SchnittstelleReferenceTypeDelegate
-
hasAnnotation
- Angegeben von:
hasAnnotationin SchnittstelleReferenceTypeDelegate
-
getAnnotations
- Angegeben von:
getAnnotationsin SchnittstelleReferenceTypeDelegate
-
hasAnnotations
public boolean hasAnnotations()- Angegeben von:
hasAnnotationsin SchnittstelleReferenceTypeDelegate
-
getAnnotationTypes
- Angegeben von:
getAnnotationTypesin SchnittstelleReferenceTypeDelegate
-
getDeclaredFields
- Angegeben von:
getDeclaredFieldsin SchnittstelleReferenceTypeDelegate
-
getDeclaredInterfaces
- Angegeben von:
getDeclaredInterfacesin SchnittstelleReferenceTypeDelegate
-
isCacheable
public boolean isCacheable()Beschreibung aus Schnittstelle kopiert:ReferenceTypeDelegateTODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?- Angegeben von:
isCacheablein SchnittstelleReferenceTypeDelegate- Gibt zurück:
- true if something the result of getDeclaredInterfaces() can be cached by the caller
-
getDeclaredMethods
- Angegeben von:
getDeclaredMethodsin SchnittstelleReferenceTypeDelegate
-
getDeclaredPointcuts
- Angegeben von:
getDeclaredPointcutsin SchnittstelleReferenceTypeDelegate
-
getTypeVariables
- Angegeben von:
getTypeVariablesin SchnittstelleReferenceTypeDelegate
-
getPerClause
- Angegeben von:
getPerClausein SchnittstelleReferenceTypeDelegate- Gibt zurück:
- for an aspect declaration, return the
-
getDeclares
- Angegeben von:
getDeclaresin SchnittstelleReferenceTypeDelegate
-
getTypeMungers
- Angegeben von:
getTypeMungersin SchnittstelleReferenceTypeDelegate
-
getPrivilegedAccesses
- Angegeben von:
getPrivilegedAccessesin SchnittstelleReferenceTypeDelegate
-
getModifiers
public int getModifiers()- Angegeben von:
getModifiersin SchnittstelleReferenceTypeDelegate
-
getSuperclass
- Angegeben von:
getSuperclassin SchnittstelleReferenceTypeDelegate
-
getWeaverState
- Angegeben von:
getWeaverStatein SchnittstelleReferenceTypeDelegate
-
getResolvedTypeX
- Angegeben von:
getResolvedTypeXin SchnittstelleReferenceTypeDelegate
-
doesNotExposeShadowMungers
public boolean doesNotExposeShadowMungers()- Angegeben von:
doesNotExposeShadowMungersin SchnittstelleReferenceTypeDelegate
-
getDeclaredGenericSignature
- Angegeben von:
getDeclaredGenericSignaturein SchnittstelleReferenceTypeDelegate
-
createResolvedMemberFor
-
getSourcefilename
- Angegeben von:
getSourcefilenamein SchnittstelleReferenceTypeDelegate
-
getSourceContext
- Angegeben von:
getSourceContextin SchnittstelleReferenceTypeDelegate
-
copySourceContext
public boolean copySourceContext()- Angegeben von:
copySourceContextin SchnittstelleReferenceTypeDelegate
-
getCompilerVersion
public int getCompilerVersion()Beschreibung aus Schnittstelle kopiert:ReferenceTypeDelegateIf known, return the compiler/weaver version used to build this delegate. Default is the most recent level as specified inAjAttribute.WeaverVersionInfo.- Angegeben von:
getCompilerVersionin SchnittstelleReferenceTypeDelegate- Gibt zurück:
- the major version
-
ensureConsistent
public void ensureConsistent()Beschreibung aus Schnittstelle kopiert:ReferenceTypeDelegateImplementations need to clear state- Angegeben von:
ensureConsistentin SchnittstelleReferenceTypeDelegate
-
isWeavable
public boolean isWeavable()- Angegeben von:
isWeavablein SchnittstelleReferenceTypeDelegate
-
hasBeenWoven
public boolean hasBeenWoven()- Angegeben von:
hasBeenWovenin SchnittstelleReferenceTypeDelegate
-