|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.weaver.Shadow
public abstract class Shadow
Nested Class Summary | |
---|---|
static class |
Shadow.Kind
A type-safe enum representing the kind of shadows |
Constructor Summary | |
---|---|
protected |
Shadow(Shadow.Kind kind,
Member signature,
Shadow enclosingShadow)
|
Method Summary | |
---|---|
void |
addMunger(ShadowMunger munger)
|
protected boolean |
checkCanThrow(ShadowMunger munger,
ResolvedType resolvedTypeX)
|
protected boolean |
checkMunger(ShadowMunger munger)
Only does the check if the munger requires it (@AJ aspects don't) |
abstract Var |
getArgAnnotationVar(int i,
UnresolvedType forAnnotationType)
|
int |
getArgCount()
|
UnresolvedType |
getArgType(int arg)
|
UnresolvedType[] |
getArgTypes()
|
ResolvedType[] |
getArgumentTypesForArrayConstructionShadow()
|
abstract Var |
getArgVar(int i)
|
abstract Member |
getEnclosingCodeSignature()
|
abstract UnresolvedType |
getEnclosingType()
|
UnresolvedType[] |
getGenericArgTypes()
|
abstract World |
getIWorld()
|
Shadow.Kind |
getKind()
returns the kind of shadow this is, representing what happens under this shadow |
abstract Var |
getKindedAnnotationVar(UnresolvedType forAnnotationType)
|
Member |
getMatchingSignature()
returns the signature of the thing under this shadow, with any synthetic arguments removed |
java.util.List<ShadowMunger> |
getMungers()
|
ResolvedMember |
getResolvedSignature()
returns the resolved signature of the thing under this shadow |
UnresolvedType |
getReturnType()
|
Member |
getSignature()
returns the signature of the thing under this shadow |
abstract ISourceLocation |
getSourceLocation()
|
abstract Var |
getTargetAnnotationVar(UnresolvedType forAnnotationType)
|
UnresolvedType |
getTargetType()
the type of the target object here |
abstract Var |
getTargetVar()
a var referencing the target |
abstract Var |
getThisAnnotationVar(UnresolvedType forAnnotationType)
|
abstract Var |
getThisAspectInstanceVar(ResolvedType aspectType)
|
abstract Var |
getThisEnclosingJoinPointStaticPartVar()
|
abstract Var |
getThisJoinPointStaticPartVar()
|
abstract Var |
getThisJoinPointVar()
|
UnresolvedType |
getThisType()
the type of the this object here |
abstract Var |
getThisVar()
a var referencing this |
abstract Var |
getWithinAnnotationVar(UnresolvedType forAnnotationType)
|
abstract Var |
getWithinCodeAnnotationVar(UnresolvedType forAnnotationType)
|
boolean |
hasTarget()
could target(*) pcd ever match |
boolean |
hasThis()
could this(*) pcd ever match |
static int |
howMany(int i)
Return count of how many bits set in the supplied parameter. |
void |
implement()
|
boolean |
isShadowForArrayConstructionJoinpoint()
|
boolean |
isShadowForMonitor()
|
protected void |
prepareForMungers()
Prepare the shadow for implementation. |
void |
setMatchingSignature(Member member)
|
java.lang.String |
toResolvedString(World world)
|
static java.util.Set<Shadow.Kind> |
toSet(int i)
Convert a bit array for the shadow kinds into a set of them... |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Shadow enclosingShadow
protected java.util.List<ShadowMunger> mungers
public int shadowId
public static java.lang.String METHOD_EXECUTION
public static java.lang.String METHOD_CALL
public static java.lang.String CONSTRUCTOR_EXECUTION
public static java.lang.String CONSTRUCTOR_CALL
public static java.lang.String FIELD_GET
public static java.lang.String FIELD_SET
public static java.lang.String STATICINITIALIZATION
public static java.lang.String PREINITIALIZATION
public static java.lang.String INITIALIZATION
public static java.lang.String EXCEPTION_HANDLER
public static java.lang.String SYNCHRONIZATION_LOCK
public static java.lang.String SYNCHRONIZATION_UNLOCK
public static java.lang.String ADVICE_EXECUTION
public static final Shadow.Kind MethodCall
public static final Shadow.Kind ConstructorCall
public static final Shadow.Kind MethodExecution
public static final Shadow.Kind ConstructorExecution
public static final Shadow.Kind FieldGet
public static final Shadow.Kind FieldSet
public static final Shadow.Kind StaticInitialization
public static final Shadow.Kind PreInitialization
public static final Shadow.Kind AdviceExecution
public static final Shadow.Kind Initialization
public static final Shadow.Kind ExceptionHandler
public static final Shadow.Kind SynchronizationLock
public static final Shadow.Kind SynchronizationUnlock
public static final int MethodCallBit
public static final int ConstructorCallBit
public static final int MethodExecutionBit
public static final int ConstructorExecutionBit
public static final int FieldGetBit
public static final int FieldSetBit
public static final int StaticInitializationBit
public static final int PreInitializationBit
public static final int AdviceExecutionBit
public static final int InitializationBit
public static final int ExceptionHandlerBit
public static final int SynchronizationLockBit
public static final int SynchronizationUnlockBit
public static final int MAX_SHADOW_KIND
public static final Shadow.Kind[] SHADOW_KINDS
public static final int ALL_SHADOW_KINDS_BITS
public static final int NO_SHADOW_KINDS_BITS
Constructor Detail |
---|
protected Shadow(Shadow.Kind kind, Member signature, Shadow enclosingShadow)
Method Detail |
---|
public abstract World getIWorld()
public java.util.List<ShadowMunger> getMungers()
public final boolean hasThis()
public final UnresolvedType getThisType()
java.lang.IllegalStateException
- if there is no this herepublic abstract Var getThisVar()
java.lang.IllegalStateException
- if there is no target herepublic final boolean hasTarget()
public final UnresolvedType getTargetType()
java.lang.IllegalStateException
- if there is no target herepublic abstract Var getTargetVar()
java.lang.IllegalStateException
- if there is no target herepublic UnresolvedType[] getArgTypes()
public boolean isShadowForArrayConstructionJoinpoint()
public boolean isShadowForMonitor()
public ResolvedType[] getArgumentTypesForArrayConstructionShadow()
public UnresolvedType[] getGenericArgTypes()
public UnresolvedType getArgType(int arg)
public int getArgCount()
public abstract UnresolvedType getEnclosingType()
public abstract Var getArgVar(int i)
public abstract Var getThisJoinPointVar()
public abstract Var getThisJoinPointStaticPartVar()
public abstract Var getThisEnclosingJoinPointStaticPartVar()
public abstract Var getThisAspectInstanceVar(ResolvedType aspectType)
public abstract Var getKindedAnnotationVar(UnresolvedType forAnnotationType)
public abstract Var getWithinAnnotationVar(UnresolvedType forAnnotationType)
public abstract Var getWithinCodeAnnotationVar(UnresolvedType forAnnotationType)
public abstract Var getThisAnnotationVar(UnresolvedType forAnnotationType)
public abstract Var getTargetAnnotationVar(UnresolvedType forAnnotationType)
public abstract Var getArgAnnotationVar(int i, UnresolvedType forAnnotationType)
public abstract Member getEnclosingCodeSignature()
public Shadow.Kind getKind()
public Member getSignature()
public Member getMatchingSignature()
public void setMatchingSignature(Member member)
public ResolvedMember getResolvedSignature()
public UnresolvedType getReturnType()
public static int howMany(int i)
protected boolean checkMunger(ShadowMunger munger)
munger
-
protected boolean checkCanThrow(ShadowMunger munger, ResolvedType resolvedTypeX)
public void addMunger(ShadowMunger munger)
public final void implement()
protected void prepareForMungers()
public abstract ISourceLocation getSourceLocation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toResolvedString(World world)
public static java.util.Set<Shadow.Kind> toSet(int i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |