Class StandardShadow
java.lang.Object
org.aspectj.weaver.Shadow
org.aspectj.weaver.reflect.StandardShadow
- Author:
- colyer
-
Nested Class Summary
Nested classes/interfaces inherited from class Shadow
Shadow.KindModifier and TypeClassDescriptionstatic final classA type-safe enum representing the kind of shadows -
Field Summary
Fields inherited from class Shadow
ADVICE_EXECUTION, AdviceExecution, AdviceExecutionBit, ALL_SHADOW_KINDS_BITS, CONSTRUCTOR_CALL, CONSTRUCTOR_EXECUTION, ConstructorCall, ConstructorCallBit, ConstructorExecution, ConstructorExecutionBit, enclosingShadow, EXCEPTION_HANDLER, ExceptionHandler, ExceptionHandlerBit, FIELD_GET, FIELD_SET, FieldGet, FieldGetBit, FieldSet, FieldSetBit, Initialization, INITIALIZATION, InitializationBit, MAX_SHADOW_KIND, METHOD_CALL, METHOD_EXECUTION, MethodCall, MethodCallBit, MethodExecution, MethodExecutionBit, mungers, needAroundClosureStacking, NO_SHADOW_KINDS_BITS, PreInitialization, PREINITIALIZATION, PreInitializationBit, SHADOW_KINDS, shadowId, StaticInitialization, STATICINITIALIZATION, StaticInitializationBit, SYNCHRONIZATION_LOCK, SYNCHRONIZATION_UNLOCK, SynchronizationLock, SynchronizationLockBit, SynchronizationUnlock, SynchronizationUnlockBitModifier and TypeFieldDescriptionstatic Stringstatic final Shadow.Kindstatic final intstatic final intstatic Stringstatic Stringstatic final Shadow.Kindstatic final intstatic final Shadow.Kindstatic final intprotected final Shadowstatic Stringstatic final Shadow.Kindstatic final intstatic Stringstatic Stringstatic final Shadow.Kindstatic final intstatic final Shadow.Kindstatic final intstatic final Shadow.Kindstatic Stringstatic final intstatic final intstatic Stringstatic Stringstatic final Shadow.KindThese names are the ones that will be returned by thisJoinPoint.getKind() Those need to be documented somewherestatic final intstatic final Shadow.Kindstatic final intprotected List<ShadowMunger> protected booleanstatic final intstatic final Shadow.Kindstatic Stringstatic final intstatic final Shadow.Kind[]intstatic final Shadow.Kindstatic Stringstatic final intstatic Stringstatic Stringstatic final Shadow.Kindstatic final intstatic final Shadow.Kindstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionStandardShadow(World world, Shadow.Kind kind, Member signature, Shadow enclosingShadow, ResolvedType enclosingType, ResolvedMember enclosingMember, MatchingContext withContext) -
Method Summary
Modifier and TypeMethodDescriptiongetArgAnnotationVar(int i, UnresolvedType forAnnotationType) getArgVar(int i) getKindedAnnotationVar(UnresolvedType forAnnotationType) getTargetAnnotationVar(UnresolvedType forAnnotationType) a var referencing the targetgetThisAnnotationVar(UnresolvedType forAnnotationType) getThisAspectInstanceVar(ResolvedType aspectType) a var referencing thisgetWithinAnnotationVar(UnresolvedType forAnnotationType) getWithinCodeAnnotationVar(UnresolvedType forAnnotationType) static ShadowmakeAdviceExecutionShadow(World inWorld, Method forMethod, MatchingContext withContext) static ShadowmakeCallShadow(World inWorld, Member aMember, Class thisClass, MatchingContext withContext) static ShadowmakeCallShadow(World inWorld, ResolvedMember aMember, ResolvedMember withinCode, MatchingContext withContext) static ShadowmakeExecutionShadow(World inWorld, Member forMethod, MatchingContext withContext) static ShadowmakeExecutionShadow(World inWorld, ResolvedMember forMethod, MatchingContext withContext) static ShadowmakeFieldGetShadow(World inWorld, Field forField, Class callerType, MatchingContext withContext) static ShadowmakeFieldGetShadow(World inWorld, Field forField, Member inMember, MatchingContext withContext) static ShadowmakeFieldSetShadow(World inWorld, Field forField, Class callerType, MatchingContext withContext) static ShadowmakeFieldSetShadow(World inWorld, Field forField, Member inMember, MatchingContext withContext) static ShadowmakeHandlerShadow(World inWorld, Class exceptionType, Class withinType, MatchingContext withContext) static ShadowmakeHandlerShadow(World inWorld, Class exceptionType, Member withinCode, MatchingContext withContext) static ShadowmakeInitializationShadow(World inWorld, Constructor forConstructor, MatchingContext withContext) static ShadowmakePreInitializationShadow(World inWorld, Constructor forConstructor, MatchingContext withContext) static ShadowmakeStaticInitializationShadow(World inWorld, Class forType, MatchingContext withContext) static ShadowmakeStaticInitializationShadow(World inWorld, ResolvedType forType, MatchingContext withContext) Methods inherited from class Shadow
addMunger, checkCanThrow, checkMunger, getArgCount, getArgType, getArgTypes, getArgumentTypesForArrayConstructionShadow, getGenericArgTypes, getKind, getMatchingSignature, getMungers, getResolvedSignature, getReturnType, getSignature, getTargetType, getThisType, hasTarget, hasThis, howMany, implement, isShadowForArrayConstructionJoinpoint, isShadowForMonitor, prepareForMungers, setMatchingSignature, toResolvedString, toSet, toStringModifier and TypeMethodDescriptionvoidaddMunger(ShadowMunger munger) protected booleancheckCanThrow(ShadowMunger munger, ResolvedType resolvedTypeX) protected booleancheckMunger(ShadowMunger munger) Only does the check if the munger requires it (@AJ aspects don't)intgetArgType(int arg) getKind()returns the kind of shadow this is, representing what happens under this shadowreturns the signature of the thing under this shadow, with any synthetic arguments removedreturns the resolved signature of the thing under this shadowreturns the signature of the thing under this shadowfinal UnresolvedTypethe type of the target object herefinal UnresolvedTypethe type of the this object herefinal booleancould target(*) pcd ever matchfinal booleanhasThis()could this(*) pcd ever matchstatic inthowMany(int i) Return count of how many bits set in the supplied parameter.final voidbooleanbooleanprotected voidPrepare the shadow for implementation.voidsetMatchingSignature(Member member) toResolvedString(World world) static Set<Shadow.Kind> toSet(int i) Convert a bit array for the shadow kinds into a set of them...toString()
-
Constructor Details
-
StandardShadow
public StandardShadow(World world, Shadow.Kind kind, Member signature, Shadow enclosingShadow, ResolvedType enclosingType, ResolvedMember enclosingMember, MatchingContext withContext)
-
-
Method Details
-
makeExecutionShadow
public static Shadow makeExecutionShadow(World inWorld, Member forMethod, MatchingContext withContext) -
makeExecutionShadow
public static Shadow makeExecutionShadow(World inWorld, ResolvedMember forMethod, MatchingContext withContext) -
makeAdviceExecutionShadow
public static Shadow makeAdviceExecutionShadow(World inWorld, Method forMethod, MatchingContext withContext) -
makeCallShadow
public static Shadow makeCallShadow(World inWorld, ResolvedMember aMember, ResolvedMember withinCode, MatchingContext withContext) -
makeCallShadow
public static Shadow makeCallShadow(World inWorld, Member aMember, Class thisClass, MatchingContext withContext) -
makeStaticInitializationShadow
public static Shadow makeStaticInitializationShadow(World inWorld, Class forType, MatchingContext withContext) -
makeStaticInitializationShadow
public static Shadow makeStaticInitializationShadow(World inWorld, ResolvedType forType, MatchingContext withContext) -
makePreInitializationShadow
public static Shadow makePreInitializationShadow(World inWorld, Constructor forConstructor, MatchingContext withContext) -
makeInitializationShadow
public static Shadow makeInitializationShadow(World inWorld, Constructor forConstructor, MatchingContext withContext) -
makeHandlerShadow
public static Shadow makeHandlerShadow(World inWorld, Class exceptionType, Class withinType, MatchingContext withContext) -
makeHandlerShadow
public static Shadow makeHandlerShadow(World inWorld, Class exceptionType, Member withinCode, MatchingContext withContext) -
makeFieldGetShadow
public static Shadow makeFieldGetShadow(World inWorld, Field forField, Class callerType, MatchingContext withContext) -
makeFieldGetShadow
public static Shadow makeFieldGetShadow(World inWorld, Field forField, Member inMember, MatchingContext withContext) -
makeFieldSetShadow
public static Shadow makeFieldSetShadow(World inWorld, Field forField, Class callerType, MatchingContext withContext) -
makeFieldSetShadow
public static Shadow makeFieldSetShadow(World inWorld, Field forField, Member inMember, MatchingContext withContext) -
getIWorld
-
getThisVar
Description copied from class:Shadowa var referencing this- Specified by:
getThisVarin classShadow
-
getTargetVar
Description copied from class:Shadowa var referencing the target- Specified by:
getTargetVarin classShadow
-
getEnclosingType
- Specified by:
getEnclosingTypein classShadow
-
getArgVar
-
getThisJoinPointVar
- Specified by:
getThisJoinPointVarin classShadow
-
getThisJoinPointStaticPartVar
- Specified by:
getThisJoinPointStaticPartVarin classShadow
-
getThisEnclosingJoinPointStaticPartVar
- Specified by:
getThisEnclosingJoinPointStaticPartVarin classShadow
-
getThisAspectInstanceVar
- Specified by:
getThisAspectInstanceVarin classShadow
-
getKindedAnnotationVar
- Specified by:
getKindedAnnotationVarin classShadow
-
getWithinAnnotationVar
- Specified by:
getWithinAnnotationVarin classShadow
-
getWithinCodeAnnotationVar
- Specified by:
getWithinCodeAnnotationVarin classShadow
-
getThisAnnotationVar
- Specified by:
getThisAnnotationVarin classShadow
-
getTargetAnnotationVar
- Specified by:
getTargetAnnotationVarin classShadow
-
getArgAnnotationVar
- Specified by:
getArgAnnotationVarin classShadow
-
getEnclosingCodeSignature
- Specified by:
getEnclosingCodeSignaturein classShadow
-
getSourceLocation
- Specified by:
getSourceLocationin classShadow
-
getMatchingContext
-