Package org.aspectj.weaver
Class JoinPointSignature
java.lang.Object
org.aspectj.weaver.JoinPointSignature
- All Implemented Interfaces:
Comparable<Member>
,AnnotatedElement
,Member
,ResolvedMember
,TypeVariableDeclaringElement
- Author:
- colyer Instances of this class are created by ResolvedMember.getSignatures() when collating all of the signatures for a member. We need to create entries in the set for the "gaps" in the hierarchy. For example: class A { void foo(); } class B extends A {} Join Point : call(* B.foo()) has signatures: B.foo() AND A.foo() B.foo() will be created as a ResolvedMemberWithSubstituteDeclaringType Oh for a JDK 1.4 dynamic proxy.... we have to run on 1.3 :(
-
Field Summary
Fields inherited from interface org.aspectj.weaver.Member
ADVICE, CONSTRUCTOR, FIELD, HANDLER, METHOD, MONITORENTER, MONITOREXIT, NO_PARAMETER_ANNOTATION_TYPES, NO_PARAMETER_ANNOTATIONXS, POINTCUT, STATIC_INITIALIZATION
Fields inherited from interface org.aspectj.weaver.ResolvedMember
NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(AnnotationAJ annotation) boolean
Returns true iff the member is generic (NOT parameterized)int
boolean
boolean
void
getAnnotationOfType
(UnresolvedType ofType) int
getArity()
getDeclaringTypes
(World world) int
getEnd()
getExceptions
(World world) Get the TypeXs of the parameter types, taking generic signature into accountGet the UnresolvedType for the return type, taking generic signature into accountgetJoinPointSignatures
(World world) getKind()
int
int
getModifiers
(World world) getName()
AnnotationAJ[][]
ResolvedType[][]
String[]
String[]
getParameterNames
(World world) Return signature without return type, e.g.Return full signature, including return type, e.g.getSourceContext
(World world) int
getStart()
getType()
getTypeVariableNamed
(String name) boolean
hasAnnotation
(UnresolvedType ofType) boolean
int
hashCode()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isPublic()
boolean
boolean
boolean
isVisible
(ResolvedType fromType) boolean
matches
(ResolvedMember aCandidateMatch, boolean ignoreGenerics) Returns true if this member matches the other.parameterizedWith
(Map m, World w) parameterizedWith
(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized) parameterizedWith
(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized, List<String> aliases) void
setAnnotatedElsewhere
(boolean b) void
setAnnotations
(AnnotationAJ[] annotations) void
setAnnotationTypes
(ResolvedType[] annotationtypes) void
setCheckedExceptions
(UnresolvedType[] checkedExceptions) void
setParameterNames
(String[] names) void
setPosition
(int sourceStart, int sourceEnd) void
setSourceContext
(ISourceContext sourceContext) void
setTypeVariables
(TypeVariable[] types) toString()
void
-
Field Details
-
EMPTY_ARRAY
-
-
Constructor Details
-
JoinPointSignature
-
-
Method Details
-
getDeclaringType
- Specified by:
getDeclaringType
in interfaceMember
-
getModifiers
- Specified by:
getModifiers
in interfaceMember
- Specified by:
getModifiers
in interfaceResolvedMember
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in interfaceMember
- Specified by:
getModifiers
in interfaceResolvedMember
-
getExceptions
- Specified by:
getExceptions
in interfaceMember
- Specified by:
getExceptions
in interfaceResolvedMember
-
getExceptions
- Specified by:
getExceptions
in interfaceResolvedMember
-
getAssociatedShadowMunger
- Specified by:
getAssociatedShadowMunger
in interfaceResolvedMember
-
isAjSynthetic
public boolean isAjSynthetic()- Specified by:
isAjSynthetic
in interfaceResolvedMember
-
hasAnnotation
- Specified by:
hasAnnotation
in interfaceAnnotatedElement
- Specified by:
hasAnnotation
in interfaceResolvedMember
-
getAnnotationTypes
- Specified by:
getAnnotationTypes
in interfaceAnnotatedElement
- Specified by:
getAnnotationTypes
in interfaceResolvedMember
-
getAnnotationOfType
- Specified by:
getAnnotationOfType
in interfaceAnnotatedElement
-
setAnnotationTypes
- Specified by:
setAnnotationTypes
in interfaceResolvedMember
-
setAnnotations
- Specified by:
setAnnotations
in interfaceResolvedMember
-
addAnnotation
- Specified by:
addAnnotation
in interfaceResolvedMember
-
isBridgeMethod
public boolean isBridgeMethod()- Specified by:
isBridgeMethod
in interfaceResolvedMember
-
isVarargsMethod
public boolean isVarargsMethod()- Specified by:
isVarargsMethod
in interfaceResolvedMember
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSynthetic
in interfaceResolvedMember
-
write
- Specified by:
write
in interfaceResolvedMember
- Throws:
IOException
-
getSourceContext
- Specified by:
getSourceContext
in interfaceResolvedMember
-
getParameterNames
- Specified by:
getParameterNames
in interfaceResolvedMember
-
setParameterNames
- Specified by:
setParameterNames
in interfaceResolvedMember
-
getParameterNames
- Specified by:
getParameterNames
in interfaceMember
- Specified by:
getParameterNames
in interfaceResolvedMember
-
getEffectiveSignature
- Specified by:
getEffectiveSignature
in interfaceResolvedMember
-
getSourceLocation
- Specified by:
getSourceLocation
in interfaceResolvedMember
-
getEnd
public int getEnd()- Specified by:
getEnd
in interfaceResolvedMember
-
getSourceContext
- Specified by:
getSourceContext
in interfaceResolvedMember
-
getStart
public int getStart()- Specified by:
getStart
in interfaceResolvedMember
-
setPosition
public void setPosition(int sourceStart, int sourceEnd) - Specified by:
setPosition
in interfaceResolvedMember
-
setSourceContext
- Specified by:
setSourceContext
in interfaceResolvedMember
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceResolvedMember
-
isPublic
public boolean isPublic()- Specified by:
isPublic
in interfaceResolvedMember
-
isDefault
public boolean isDefault()- Specified by:
isDefault
in interfaceResolvedMember
-
isVisible
- Specified by:
isVisible
in interfaceResolvedMember
-
setCheckedExceptions
- Specified by:
setCheckedExceptions
in interfaceResolvedMember
-
setAnnotatedElsewhere
public void setAnnotatedElsewhere(boolean b) - Specified by:
setAnnotatedElsewhere
in interfaceResolvedMember
-
isAnnotatedElsewhere
public boolean isAnnotatedElsewhere()- Specified by:
isAnnotatedElsewhere
in interfaceResolvedMember
-
getGenericReturnType
Description copied from interface:ResolvedMember
Get the UnresolvedType for the return type, taking generic signature into account- Specified by:
getGenericReturnType
in interfaceMember
- Specified by:
getGenericReturnType
in interfaceResolvedMember
-
getGenericParameterTypes
Description copied from interface:ResolvedMember
Get the TypeXs of the parameter types, taking generic signature into account- Specified by:
getGenericParameterTypes
in interfaceMember
- Specified by:
getGenericParameterTypes
in interfaceResolvedMember
-
parameterizedWith
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized) - Specified by:
parameterizedWith
in interfaceResolvedMember
-
parameterizedWith
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized, List<String> aliases) - Specified by:
parameterizedWith
in interfaceResolvedMember
-
setTypeVariables
- Specified by:
setTypeVariables
in interfaceResolvedMember
-
getTypeVariables
- Specified by:
getTypeVariables
in interfaceResolvedMember
-
getTypeVariableNamed
- Specified by:
getTypeVariableNamed
in interfaceTypeVariableDeclaringElement
-
matches
Description copied from interface:ResolvedMember
Returns true if this member matches the other. The matching takes into account name and parameter types only. When comparing parameter types, we allow any type variable to match any other type variable regardless of bounds.- Specified by:
matches
in interfaceResolvedMember
-
resolve
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Member>
- Specified by:
compareTo
in interfaceMember
-
getKind
-
getReturnType
- Specified by:
getReturnType
in interfaceMember
-
getType
-
getName
-
getParameterTypes
- Specified by:
getParameterTypes
in interfaceMember
-
getParameterAnnotations
- Specified by:
getParameterAnnotations
in interfaceResolvedMember
-
getParameterAnnotationTypes
- Specified by:
getParameterAnnotationTypes
in interfaceResolvedMember
-
getSignature
Description copied from interface:Member
Return full signature, including return type, e.g. "()LFastCar;". For a signature without the return type, use getParameterSignature() - it is important to choose the right one in the face of covariance.- Specified by:
getSignature
in interfaceMember
-
getArity
public int getArity() -
getParameterSignature
Description copied from interface:Member
Return signature without return type, e.g. "()" for a signature *with* the return type, use getSignature() - it is important to choose the right one in the face of covariance.- Specified by:
getParameterSignature
in interfaceMember
-
isCompatibleWith
- Specified by:
isCompatibleWith
in interfaceResolvedMember
-
canBeParameterized
public boolean canBeParameterized()Description copied from interface:Member
Returns true iff the member is generic (NOT parameterized)- Specified by:
canBeParameterized
in interfaceMember
-
getAnnotations
- Specified by:
getAnnotations
in interfaceMember
- Specified by:
getAnnotations
in interfaceResolvedMember
-
getDeclaringTypes
- Specified by:
getDeclaringTypes
in interfaceMember
-
getJoinPointSignatures
- Specified by:
getJoinPointSignatures
in interfaceMember
-
toString
-
toGenericString
- Specified by:
toGenericString
in interfaceResolvedMember
-
toDebugString
- Specified by:
toDebugString
in interfaceResolvedMember
-
equals
-
hashCode
public int hashCode() -
hasBackingGenericMember
public boolean hasBackingGenericMember()- Specified by:
hasBackingGenericMember
in interfaceResolvedMember
-
getBackingGenericMember
- Specified by:
getBackingGenericMember
in interfaceResolvedMember
-
evictWeavingState
public void evictWeavingState()- Specified by:
evictWeavingState
in interfaceResolvedMember
-
parameterizedWith
- Specified by:
parameterizedWith
in interfaceResolvedMember
-
getAnnotationDefaultValue
- Specified by:
getAnnotationDefaultValue
in interfaceResolvedMember
-
getParameterSignatureErased
- Specified by:
getParameterSignatureErased
in interfaceResolvedMember
-
getSignatureErased
- Specified by:
getSignatureErased
in interfaceResolvedMember
-
isDefaultConstructor
public boolean isDefaultConstructor()- Specified by:
isDefaultConstructor
in interfaceResolvedMember
-
equalsApartFromDeclaringType
- Specified by:
equalsApartFromDeclaringType
in interfaceResolvedMember
-