Top Fields Constructors Methods
org.aspectj.weaver

public Class JoinPointSignature

extends Object
implements ResolvedMember
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.ResolvedMember, org.aspectj.weaver.TypeVariableDeclaringElement, org.aspectj.weaver.AnnotatedElement, org.aspectj.weaver.Member, java.lang.Comparable
Imports
java.io.IOException, java.util.Collection, .List, .Map, org.aspectj.bridge.ISourceLocation, org.aspectj.weaver.AjAttribute.EffectiveSignatureAttribute

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

Modifier and TypeField and Description
public static final JoinPointSignature[]
private ResolvedMember
private ResolvedType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
canBeParameterized()

Implements org.aspectj.weaver.Member.canBeParameterized.

Returns true iff the member is generic (NOT parameterized)
public int
compareTo(Member
the object to be compared.
other
)

Implements org.aspectj.weaver.Member.compareTo.

Compares this object with the specified object for order.
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public boolean
public void
public String
public AnnotationAJ
public AnnotationAJ[]
public ResolvedType[]
public int
public ShadowMunger
public ResolvedMember
public UnresolvedType
public Collection<ResolvedType>
public AjAttribute.EffectiveSignatureAttribute
public int
public UnresolvedType[]
public UnresolvedType[]
public UnresolvedType[]
getGenericParameterTypes()

Implements org.aspectj.weaver.ResolvedMember.getGenericParameterTypes.

Get the TypeXs of the parameter types, taking generic signature into account
public UnresolvedType
getGenericReturnType()

Implements org.aspectj.weaver.ResolvedMember.getGenericReturnType.

Get the UnresolvedType for the return type, taking generic signature into account
public JoinPointSignatureIterator
public MemberKind
public int
public int
public String
public AnnotationAJ[][]
public ResolvedType[][]
public String[]
public String[]
public String
getParameterSignature()

Implements org.aspectj.weaver.Member.getParameterSignature.

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.
public String
public UnresolvedType[]
public UnresolvedType
public String
getSignature()

Implements org.aspectj.weaver.Member.getSignature.

Return full signature, including return type, e.g. "()LFastCar;".
public String
public ISourceContext
public ISourceContext
public ISourceLocation
public int
public UnresolvedType
public TypeVariable
public TypeVariable[]
public boolean
public boolean
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
matches(ResolvedMember aCandidateMatch, boolean ignoreGenerics)

Implements org.aspectj.weaver.ResolvedMember.matches.

Returns true if this member matches the other.
public ResolvedMemberImpl
parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized)

Implements org.aspectj.weaver.ResolvedMember.parameterizedWith.

public ResolvedMemberImpl
parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized, List<String> aliases)

Implements org.aspectj.weaver.ResolvedMember.parameterizedWith.

public ResolvedMember
public ResolvedMember
public void
public void
public void
public void
public void
public void
setPosition(int sourceStart, int sourceEnd)

Implements org.aspectj.weaver.ResolvedMember.setPosition.

public void
public void
public String
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

EMPTY_ARRAYback to summary
public static final JoinPointSignature[] EMPTY_ARRAY
realMemberback to summary
private ResolvedMember realMember
substituteDeclaringTypeback to summary
private ResolvedType substituteDeclaringType

Constructor Detail

JoinPointSignatureback to summary
public JoinPointSignature(ResolvedMember backing, ResolvedType aType)

Method Detail

addAnnotationback to summary
public void addAnnotation(AnnotationAJ annotation)

Implements org.aspectj.weaver.ResolvedMember.addAnnotation.

canBeParameterizedback to summary
public boolean canBeParameterized()

Implements org.aspectj.weaver.Member.canBeParameterized.

Doc from org.aspectj.weaver.Member.canBeParameterized.

Returns true iff the member is generic (NOT parameterized)

compareToback to summary
public int compareTo(Member other)

Implements org.aspectj.weaver.Member.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
other:Member

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
obj:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
equalsApartFromDeclaringTypeback to summary
public boolean equalsApartFromDeclaringType(Object other)

Implements org.aspectj.weaver.ResolvedMember.equalsApartFromDeclaringType.

evictWeavingStateback to summary
public void evictWeavingState()

Implements org.aspectj.weaver.ResolvedMember.evictWeavingState.

getAnnotationDefaultValueback to summary
public String getAnnotationDefaultValue()

Implements org.aspectj.weaver.ResolvedMember.getAnnotationDefaultValue.

getAnnotationOfTypeback to summary
public AnnotationAJ getAnnotationOfType(UnresolvedType ofType)

Implements org.aspectj.weaver.AnnotatedElement.getAnnotationOfType.

getAnnotationsback to summary
public AnnotationAJ[] getAnnotations()

Implements org.aspectj.weaver.ResolvedMember.getAnnotations.

getAnnotationTypesback to summary
public ResolvedType[] getAnnotationTypes()

Implements org.aspectj.weaver.ResolvedMember.getAnnotationTypes.

getArityback to summary
public int getArity()

Implements org.aspectj.weaver.Member.getArity.

getAssociatedShadowMungerback to summary
public ShadowMunger getAssociatedShadowMunger()

Implements org.aspectj.weaver.ResolvedMember.getAssociatedShadowMunger.

getBackingGenericMemberback to summary
public ResolvedMember getBackingGenericMember()

Implements org.aspectj.weaver.ResolvedMember.getBackingGenericMember.

getDeclaringTypeback to summary
public UnresolvedType getDeclaringType()

Implements org.aspectj.weaver.Member.getDeclaringType.

getDeclaringTypesback to summary
public Collection<ResolvedType> getDeclaringTypes(World world)

Implements org.aspectj.weaver.Member.getDeclaringTypes.

getEffectiveSignatureback to summary
public AjAttribute.EffectiveSignatureAttribute getEffectiveSignature()

Implements org.aspectj.weaver.ResolvedMember.getEffectiveSignature.

getEndback to summary
public int getEnd()

Implements org.aspectj.weaver.ResolvedMember.getEnd.

getExceptionsback to summary
public UnresolvedType[] getExceptions(World world)

Implements org.aspectj.weaver.ResolvedMember.getExceptions.

getExceptionsback to summary
public UnresolvedType[] getExceptions()

Implements org.aspectj.weaver.ResolvedMember.getExceptions.

getGenericParameterTypesback to summary
public UnresolvedType[] getGenericParameterTypes()

Implements org.aspectj.weaver.ResolvedMember.getGenericParameterTypes.

Doc from org.aspectj.weaver.ResolvedMember.getGenericParameterTypes.

Get the TypeXs of the parameter types, taking generic signature into account

getGenericReturnTypeback to summary
public UnresolvedType getGenericReturnType()

Implements org.aspectj.weaver.ResolvedMember.getGenericReturnType.

Doc from org.aspectj.weaver.ResolvedMember.getGenericReturnType.

Get the UnresolvedType for the return type, taking generic signature into account

getJoinPointSignaturesback to summary
public JoinPointSignatureIterator getJoinPointSignatures(World world)

Implements org.aspectj.weaver.Member.getJoinPointSignatures.

getKindback to summary
public MemberKind getKind()

Implements org.aspectj.weaver.Member.getKind.

Returns:MemberKind

Doc from org.aspectj.weaver.Member.getKind.

the kind of member from those listed as MemberKind instances

getModifiersback to summary
public int getModifiers(World world)

Implements org.aspectj.weaver.ResolvedMember.getModifiers.

getModifiersback to summary
public int getModifiers()

Implements org.aspectj.weaver.ResolvedMember.getModifiers.

getNameback to summary
public String getName()

Implements org.aspectj.weaver.Member.getName.

getParameterAnnotationsback to summary
public AnnotationAJ[][] getParameterAnnotations()

Implements org.aspectj.weaver.ResolvedMember.getParameterAnnotations.

getParameterAnnotationTypesback to summary
public ResolvedType[][] getParameterAnnotationTypes()

Implements org.aspectj.weaver.ResolvedMember.getParameterAnnotationTypes.

getParameterNamesback to summary
public String[] getParameterNames()

Implements org.aspectj.weaver.ResolvedMember.getParameterNames.

getParameterNamesback to summary
public String[] getParameterNames(World world)

Implements org.aspectj.weaver.ResolvedMember.getParameterNames.

getParameterSignatureback to summary
public String getParameterSignature()

Implements org.aspectj.weaver.Member.getParameterSignature.

Doc from org.aspectj.weaver.Member.getParameterSignature.

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.

getParameterSignatureErasedback to summary
public String getParameterSignatureErased()

Implements org.aspectj.weaver.ResolvedMember.getParameterSignatureErased.

getParameterTypesback to summary
public UnresolvedType[] getParameterTypes()

Implements org.aspectj.weaver.Member.getParameterTypes.

getReturnTypeback to summary
public UnresolvedType getReturnType()

Implements org.aspectj.weaver.Member.getReturnType.

getSignatureback to summary
public String getSignature()

Implements org.aspectj.weaver.Member.getSignature.

Doc from org.aspectj.weaver.Member.getSignature.

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.

getSignatureErasedback to summary
public String getSignatureErased()

Implements org.aspectj.weaver.ResolvedMember.getSignatureErased.

getSourceContextback to summary
public ISourceContext getSourceContext(World world)

Implements org.aspectj.weaver.ResolvedMember.getSourceContext.

getSourceContextback to summary
public ISourceContext getSourceContext()

Implements org.aspectj.weaver.ResolvedMember.getSourceContext.

getSourceLocationback to summary
public ISourceLocation getSourceLocation()

Implements org.aspectj.weaver.ResolvedMember.getSourceLocation.

getStartback to summary
public int getStart()

Implements org.aspectj.weaver.ResolvedMember.getStart.

getTypeback to summary
public UnresolvedType getType()

Implements org.aspectj.weaver.Member.getType.

getTypeVariableNamedback to summary
public TypeVariable getTypeVariableNamed(String name)

Implements org.aspectj.weaver.TypeVariableDeclaringElement.getTypeVariableNamed.

getTypeVariablesback to summary
public TypeVariable[] getTypeVariables()

Implements org.aspectj.weaver.ResolvedMember.getTypeVariables.

hasAnnotationback to summary
public boolean hasAnnotation(UnresolvedType ofType)

Implements org.aspectj.weaver.ResolvedMember.hasAnnotation.

hasBackingGenericMemberback to summary
public boolean hasBackingGenericMember()

Implements org.aspectj.weaver.ResolvedMember.hasBackingGenericMember.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
isAbstractback to summary
public boolean isAbstract()

Implements org.aspectj.weaver.ResolvedMember.isAbstract.

isAjSyntheticback to summary
public boolean isAjSynthetic()

Implements org.aspectj.weaver.ResolvedMember.isAjSynthetic.

isAnnotatedElsewhereback to summary
public boolean isAnnotatedElsewhere()

Implements org.aspectj.weaver.ResolvedMember.isAnnotatedElsewhere.

isBridgeMethodback to summary
public boolean isBridgeMethod()

Implements org.aspectj.weaver.ResolvedMember.isBridgeMethod.

isCompatibleWithback to summary
public boolean isCompatibleWith(Member am)

Implements org.aspectj.weaver.ResolvedMember.isCompatibleWith.

isDefaultback to summary
public boolean isDefault()

Implements org.aspectj.weaver.ResolvedMember.isDefault.

isDefaultConstructorback to summary
public boolean isDefaultConstructor()

Implements org.aspectj.weaver.ResolvedMember.isDefaultConstructor.

isPublicback to summary
public boolean isPublic()

Implements org.aspectj.weaver.ResolvedMember.isPublic.

isSyntheticback to summary
public boolean isSynthetic()

Implements org.aspectj.weaver.ResolvedMember.isSynthetic.

isVarargsMethodback to summary
public boolean isVarargsMethod()

Implements org.aspectj.weaver.ResolvedMember.isVarargsMethod.

isVisibleback to summary
public boolean isVisible(ResolvedType fromType)

Implements org.aspectj.weaver.ResolvedMember.isVisible.

matchesback to summary
public boolean matches(ResolvedMember aCandidateMatch, boolean ignoreGenerics)

Implements org.aspectj.weaver.ResolvedMember.matches.

Doc from org.aspectj.weaver.ResolvedMember.matches.

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.

parameterizedWithback to summary
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized)

Implements org.aspectj.weaver.ResolvedMember.parameterizedWith.

parameterizedWithback to summary
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized, List<String> aliases)

Implements org.aspectj.weaver.ResolvedMember.parameterizedWith.

parameterizedWithback to summary
public ResolvedMember parameterizedWith(Map<K, V> m, World w)

Implements org.aspectj.weaver.ResolvedMember.parameterizedWith.

resolveback to summary
public ResolvedMember resolve(World world)

Implements org.aspectj.weaver.Member.resolve.

setAnnotatedElsewhereback to summary
public void setAnnotatedElsewhere(boolean b)

Implements org.aspectj.weaver.ResolvedMember.setAnnotatedElsewhere.

setAnnotationsback to summary
public void setAnnotations(AnnotationAJ[] annotations)

Implements org.aspectj.weaver.ResolvedMember.setAnnotations.

setAnnotationTypesback to summary
public void setAnnotationTypes(ResolvedType[] annotationtypes)

Implements org.aspectj.weaver.ResolvedMember.setAnnotationTypes.

setCheckedExceptionsback to summary
public void setCheckedExceptions(UnresolvedType[] checkedExceptions)

Implements org.aspectj.weaver.ResolvedMember.setCheckedExceptions.

setParameterNamesback to summary
public void setParameterNames(String[] names)

Implements org.aspectj.weaver.ResolvedMember.setParameterNames.

setPositionback to summary
public void setPosition(int sourceStart, int sourceEnd)

Implements org.aspectj.weaver.ResolvedMember.setPosition.

setSourceContextback to summary
public void setSourceContext(ISourceContext sourceContext)

Implements org.aspectj.weaver.ResolvedMember.setSourceContext.

setTypeVariablesback to summary
public void setTypeVariables(TypeVariable[] types)

Implements org.aspectj.weaver.ResolvedMember.setTypeVariables.

toDebugStringback to summary
public String toDebugString()

Implements org.aspectj.weaver.ResolvedMember.toDebugString.

toGenericStringback to summary
public String toGenericString()

Implements org.aspectj.weaver.ResolvedMember.toGenericString.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
writeback to summary
public void write(CompressingDataOutputStream s) throws IOException

Implements org.aspectj.weaver.ResolvedMember.write.