org.aspectj.weaver
Class JoinPointSignature
java.lang.Object
org.aspectj.weaver.JoinPointSignature
- All Implemented Interfaces:
- java.lang.Comparable<Member>, AnnotatedElement, Member, ResolvedMember, TypeVariableDeclaringElement
public class JoinPointSignature
- extends java.lang.Object
- implements ResolvedMember
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 |
Method Summary |
void |
addAnnotation(AnnotationAJ annotation)
|
boolean |
canBeParameterized()
Returns true iff the member is generic (NOT parameterized) |
int |
compareTo(Member other)
|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsApartFromDeclaringType(java.lang.Object other)
|
void |
evictWeavingState()
|
java.lang.String |
getAnnotationDefaultValue()
|
AnnotationAJ |
getAnnotationOfType(UnresolvedType ofType)
|
AnnotationAJ[] |
getAnnotations()
|
ResolvedType[] |
getAnnotationTypes()
|
int |
getArity()
|
ShadowMunger |
getAssociatedShadowMunger()
|
ResolvedMember |
getBackingGenericMember()
|
UnresolvedType |
getDeclaringType()
|
java.util.Collection<ResolvedType> |
getDeclaringTypes(World world)
|
AjAttribute.EffectiveSignatureAttribute |
getEffectiveSignature()
|
int |
getEnd()
|
UnresolvedType[] |
getExceptions()
|
UnresolvedType[] |
getExceptions(World world)
|
UnresolvedType[] |
getGenericParameterTypes()
Get the TypeXs of the parameter types, taking generic signature into account |
UnresolvedType |
getGenericReturnType()
Get the UnresolvedType for the return type, taking generic signature into account |
JoinPointSignatureIterator |
getJoinPointSignatures(World world)
|
MemberKind |
getKind()
|
int |
getModifiers()
|
int |
getModifiers(World world)
|
java.lang.String |
getName()
|
AnnotationAJ[][] |
getParameterAnnotations()
|
ResolvedType[][] |
getParameterAnnotationTypes()
|
java.lang.String[] |
getParameterNames()
|
java.lang.String[] |
getParameterNames(World world)
|
java.lang.String |
getParameterSignature()
Return signature without return type, e.g. |
java.lang.String |
getParameterSignatureErased()
|
UnresolvedType[] |
getParameterTypes()
|
UnresolvedType |
getReturnType()
|
java.lang.String |
getSignature()
Return full signature, including return type, e.g. |
java.lang.String |
getSignatureErased()
|
ISourceContext |
getSourceContext()
|
ISourceContext |
getSourceContext(World world)
|
ISourceLocation |
getSourceLocation()
|
int |
getStart()
|
UnresolvedType |
getType()
|
TypeVariable |
getTypeVariableNamed(java.lang.String name)
|
TypeVariable[] |
getTypeVariables()
|
boolean |
hasAnnotation(UnresolvedType ofType)
|
boolean |
hasBackingGenericMember()
|
int |
hashCode()
|
boolean |
isAbstract()
|
boolean |
isAjSynthetic()
|
boolean |
isAnnotatedElsewhere()
|
boolean |
isBridgeMethod()
|
boolean |
isCompatibleWith(Member am)
|
boolean |
isDefault()
|
boolean |
isDefaultConstructor()
|
boolean |
isPublic()
|
boolean |
isSynthetic()
|
boolean |
isVarargsMethod()
|
boolean |
isVisible(ResolvedType fromType)
|
boolean |
matches(ResolvedMember aCandidateMatch,
boolean ignoreGenerics)
Returns true if this member matches the other. |
ResolvedMember |
parameterizedWith(java.util.Map m,
World w)
|
ResolvedMemberImpl |
parameterizedWith(UnresolvedType[] typeParameters,
ResolvedType newDeclaringType,
boolean isParameterized)
|
ResolvedMemberImpl |
parameterizedWith(UnresolvedType[] typeParameters,
ResolvedType newDeclaringType,
boolean isParameterized,
java.util.List<java.lang.String> aliases)
|
ResolvedMember |
resolve(World world)
|
void |
setAnnotatedElsewhere(boolean b)
|
void |
setAnnotationTypes(ResolvedType[] annotationtypes)
|
void |
setCheckedExceptions(UnresolvedType[] checkedExceptions)
|
void |
setParameterNames(java.lang.String[] names)
|
void |
setPosition(int sourceStart,
int sourceEnd)
|
void |
setSourceContext(ISourceContext sourceContext)
|
void |
setTypeVariables(TypeVariable[] types)
|
java.lang.String |
toDebugString()
|
java.lang.String |
toGenericString()
|
java.lang.String |
toString()
|
void |
write(CompressingDataOutputStream s)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EMPTY_ARRAY
public static final JoinPointSignature[] EMPTY_ARRAY
JoinPointSignature
public JoinPointSignature(ResolvedMember backing,
ResolvedType aType)
getDeclaringType
public UnresolvedType getDeclaringType()
- Specified by:
getDeclaringType
in interface Member
getModifiers
public int getModifiers(World world)
- Specified by:
getModifiers
in interface Member
- Specified by:
getModifiers
in interface ResolvedMember
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in interface Member
- Specified by:
getModifiers
in interface ResolvedMember
getExceptions
public UnresolvedType[] getExceptions(World world)
- Specified by:
getExceptions
in interface Member
- Specified by:
getExceptions
in interface ResolvedMember
getExceptions
public UnresolvedType[] getExceptions()
- Specified by:
getExceptions
in interface ResolvedMember
getAssociatedShadowMunger
public ShadowMunger getAssociatedShadowMunger()
- Specified by:
getAssociatedShadowMunger
in interface ResolvedMember
isAjSynthetic
public boolean isAjSynthetic()
- Specified by:
isAjSynthetic
in interface ResolvedMember
hasAnnotation
public boolean hasAnnotation(UnresolvedType ofType)
- Specified by:
hasAnnotation
in interface AnnotatedElement
- Specified by:
hasAnnotation
in interface ResolvedMember
getAnnotationTypes
public ResolvedType[] getAnnotationTypes()
- Specified by:
getAnnotationTypes
in interface AnnotatedElement
- Specified by:
getAnnotationTypes
in interface ResolvedMember
getAnnotationOfType
public AnnotationAJ getAnnotationOfType(UnresolvedType ofType)
- Specified by:
getAnnotationOfType
in interface AnnotatedElement
setAnnotationTypes
public void setAnnotationTypes(ResolvedType[] annotationtypes)
- Specified by:
setAnnotationTypes
in interface ResolvedMember
addAnnotation
public void addAnnotation(AnnotationAJ annotation)
- Specified by:
addAnnotation
in interface ResolvedMember
isBridgeMethod
public boolean isBridgeMethod()
- Specified by:
isBridgeMethod
in interface ResolvedMember
isVarargsMethod
public boolean isVarargsMethod()
- Specified by:
isVarargsMethod
in interface ResolvedMember
isSynthetic
public boolean isSynthetic()
- Specified by:
isSynthetic
in interface ResolvedMember
write
public void write(CompressingDataOutputStream s)
throws java.io.IOException
- Specified by:
write
in interface ResolvedMember
- Throws:
java.io.IOException
getSourceContext
public ISourceContext getSourceContext(World world)
- Specified by:
getSourceContext
in interface ResolvedMember
getParameterNames
public java.lang.String[] getParameterNames()
- Specified by:
getParameterNames
in interface ResolvedMember
setParameterNames
public void setParameterNames(java.lang.String[] names)
- Specified by:
setParameterNames
in interface ResolvedMember
getParameterNames
public java.lang.String[] getParameterNames(World world)
- Specified by:
getParameterNames
in interface Member
- Specified by:
getParameterNames
in interface ResolvedMember
getEffectiveSignature
public AjAttribute.EffectiveSignatureAttribute getEffectiveSignature()
- Specified by:
getEffectiveSignature
in interface ResolvedMember
getSourceLocation
public ISourceLocation getSourceLocation()
- Specified by:
getSourceLocation
in interface ResolvedMember
getEnd
public int getEnd()
- Specified by:
getEnd
in interface ResolvedMember
getSourceContext
public ISourceContext getSourceContext()
- Specified by:
getSourceContext
in interface ResolvedMember
getStart
public int getStart()
- Specified by:
getStart
in interface ResolvedMember
setPosition
public void setPosition(int sourceStart,
int sourceEnd)
- Specified by:
setPosition
in interface ResolvedMember
setSourceContext
public void setSourceContext(ISourceContext sourceContext)
- Specified by:
setSourceContext
in interface ResolvedMember
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interface ResolvedMember
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interface ResolvedMember
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interface ResolvedMember
isVisible
public boolean isVisible(ResolvedType fromType)
- Specified by:
isVisible
in interface ResolvedMember
setCheckedExceptions
public void setCheckedExceptions(UnresolvedType[] checkedExceptions)
- Specified by:
setCheckedExceptions
in interface ResolvedMember
setAnnotatedElsewhere
public void setAnnotatedElsewhere(boolean b)
- Specified by:
setAnnotatedElsewhere
in interface ResolvedMember
isAnnotatedElsewhere
public boolean isAnnotatedElsewhere()
- Specified by:
isAnnotatedElsewhere
in interface ResolvedMember
getGenericReturnType
public UnresolvedType getGenericReturnType()
- Description copied from interface:
ResolvedMember
- Get the UnresolvedType for the return type, taking generic signature into account
- Specified by:
getGenericReturnType
in interface Member
- Specified by:
getGenericReturnType
in interface ResolvedMember
getGenericParameterTypes
public UnresolvedType[] getGenericParameterTypes()
- Description copied from interface:
ResolvedMember
- Get the TypeXs of the parameter types, taking generic signature into account
- Specified by:
getGenericParameterTypes
in interface Member
- Specified by:
getGenericParameterTypes
in interface ResolvedMember
parameterizedWith
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters,
ResolvedType newDeclaringType,
boolean isParameterized)
- Specified by:
parameterizedWith
in interface ResolvedMember
parameterizedWith
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters,
ResolvedType newDeclaringType,
boolean isParameterized,
java.util.List<java.lang.String> aliases)
- Specified by:
parameterizedWith
in interface ResolvedMember
setTypeVariables
public void setTypeVariables(TypeVariable[] types)
- Specified by:
setTypeVariables
in interface ResolvedMember
getTypeVariables
public TypeVariable[] getTypeVariables()
- Specified by:
getTypeVariables
in interface ResolvedMember
getTypeVariableNamed
public TypeVariable getTypeVariableNamed(java.lang.String name)
- Specified by:
getTypeVariableNamed
in interface TypeVariableDeclaringElement
matches
public boolean matches(ResolvedMember aCandidateMatch,
boolean ignoreGenerics)
- 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 interface ResolvedMember
resolve
public ResolvedMember resolve(World world)
- Specified by:
resolve
in interface Member
compareTo
public int compareTo(Member other)
- Specified by:
compareTo
in interface java.lang.Comparable<Member>
- Specified by:
compareTo
in interface Member
getKind
public MemberKind getKind()
- Specified by:
getKind
in interface Member
- Returns:
- the kind of member from those listed as MemberKind instances
getReturnType
public UnresolvedType getReturnType()
- Specified by:
getReturnType
in interface Member
getType
public UnresolvedType getType()
- Specified by:
getType
in interface Member
getName
public java.lang.String getName()
- Specified by:
getName
in interface Member
getParameterTypes
public UnresolvedType[] getParameterTypes()
- Specified by:
getParameterTypes
in interface Member
getParameterAnnotations
public AnnotationAJ[][] getParameterAnnotations()
- Specified by:
getParameterAnnotations
in interface ResolvedMember
getParameterAnnotationTypes
public ResolvedType[][] getParameterAnnotationTypes()
- Specified by:
getParameterAnnotationTypes
in interface ResolvedMember
getSignature
public java.lang.String 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 interface Member
getArity
public int getArity()
- Specified by:
getArity
in interface Member
getParameterSignature
public java.lang.String 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 interface Member
isCompatibleWith
public boolean isCompatibleWith(Member am)
- Specified by:
isCompatibleWith
in interface ResolvedMember
canBeParameterized
public boolean canBeParameterized()
- Description copied from interface:
Member
- Returns true iff the member is generic (NOT parameterized)
- Specified by:
canBeParameterized
in interface Member
getAnnotations
public AnnotationAJ[] getAnnotations()
- Specified by:
getAnnotations
in interface Member
- Specified by:
getAnnotations
in interface ResolvedMember
getDeclaringTypes
public java.util.Collection<ResolvedType> getDeclaringTypes(World world)
- Specified by:
getDeclaringTypes
in interface Member
getJoinPointSignatures
public JoinPointSignatureIterator getJoinPointSignatures(World world)
- Specified by:
getJoinPointSignatures
in interface Member
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toGenericString
public java.lang.String toGenericString()
- Specified by:
toGenericString
in interface ResolvedMember
toDebugString
public java.lang.String toDebugString()
- Specified by:
toDebugString
in interface ResolvedMember
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
hasBackingGenericMember
public boolean hasBackingGenericMember()
- Specified by:
hasBackingGenericMember
in interface ResolvedMember
getBackingGenericMember
public ResolvedMember getBackingGenericMember()
- Specified by:
getBackingGenericMember
in interface ResolvedMember
evictWeavingState
public void evictWeavingState()
- Specified by:
evictWeavingState
in interface ResolvedMember
parameterizedWith
public ResolvedMember parameterizedWith(java.util.Map m,
World w)
- Specified by:
parameterizedWith
in interface ResolvedMember
getAnnotationDefaultValue
public java.lang.String getAnnotationDefaultValue()
- Specified by:
getAnnotationDefaultValue
in interface ResolvedMember
getParameterSignatureErased
public java.lang.String getParameterSignatureErased()
- Specified by:
getParameterSignatureErased
in interface ResolvedMember
getSignatureErased
public java.lang.String getSignatureErased()
- Specified by:
getSignatureErased
in interface ResolvedMember
isDefaultConstructor
public boolean isDefaultConstructor()
- Specified by:
isDefaultConstructor
in interface ResolvedMember
equalsApartFromDeclaringType
public boolean equalsApartFromDeclaringType(java.lang.Object other)
- Specified by:
equalsApartFromDeclaringType
in interface ResolvedMember