Class EclipseShadow
java.lang.Object
org.aspectj.weaver.Shadow
org.aspectj.ajdt.internal.compiler.lookup.EclipseShadow
This is only used for declare soft right now.
It might be used for other compile-time matching, but in all such cases this and target pcds can't be used. We might not behave
correctly in such cases.
-
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
ConstructorsConstructorDescriptionEclipseShadow(EclipseFactory world, Shadow.Kind kind, Member signature, ASTNode astNode, ReferenceContext context) -
Method Summary
Modifier and TypeMethodDescriptiongetArgAnnotationVar(int i, UnresolvedType annotationType) getArgVar(int i) getKindedAnnotationVar(UnresolvedType annotationType) getTargetAnnotationVar(UnresolvedType annotationType) a var referencing the targetgetThisAnnotationVar(UnresolvedType annotationType) getThisAspectInstanceVar(ResolvedType aspectType) a var referencing thisgetWithinAnnotationVar(UnresolvedType annotationType) getWithinCodeAnnotationVar(UnresolvedType annotationType) static EclipseShadowmakeShadow(EclipseFactory world, ASTNode astNode, ReferenceContext context) 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
-
EclipseShadow
public EclipseShadow(EclipseFactory world, Shadow.Kind kind, Member signature, ASTNode astNode, ReferenceContext context)
-
-
Method Details
-
getIWorld
-
getEnclosingType
- Specified by:
getEnclosingTypein classShadow
-
getSourceLocation
- Specified by:
getSourceLocationin classShadow
-
getEnclosingCodeSignature
- Specified by:
getEnclosingCodeSignaturein classShadow
-
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
-
getArgVar
-
getThisJoinPointVar
- Specified by:
getThisJoinPointVarin classShadow
-
getThisJoinPointStaticPartVar
- Specified by:
getThisJoinPointStaticPartVarin classShadow
-
getThisEnclosingJoinPointStaticPartVar
- Specified by:
getThisEnclosingJoinPointStaticPartVarin classShadow
-
getArgAnnotationVar
- Specified by:
getArgAnnotationVarin classShadow
-
getKindedAnnotationVar
- Specified by:
getKindedAnnotationVarin classShadow
-
getTargetAnnotationVar
- Specified by:
getTargetAnnotationVarin classShadow
-
getThisAnnotationVar
- Specified by:
getThisAnnotationVarin classShadow
-
getThisAspectInstanceVar
- Specified by:
getThisAspectInstanceVarin classShadow
-
getWithinAnnotationVar
- Specified by:
getWithinAnnotationVarin classShadow
-
getWithinCodeAnnotationVar
- Specified by:
getWithinCodeAnnotationVarin classShadow
-
makeShadow
public static EclipseShadow makeShadow(EclipseFactory world, ASTNode astNode, ReferenceContext context)
-