| Modifier and Type | Field and Description |
|---|---|
| protected UnresolvedType | |
| private final String | |
| private volatile int | hashCode
Equality is checked based on the underlying signature, so the hash code of a member is based on its kind, name, signature, and declaring type. |
| private JoinPointSignatureIterator | joinPointSignatures
All the signatures that a join point with this member as its signature has. |
| protected MemberKind | |
| protected int | |
| protected String | |
| protected UnresolvedType[] | |
| private String | |
| private boolean | |
| private boolean | |
| protected UnresolvedType |
| Access | Constructor and Description |
|---|---|
| public | MemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, String name, String erasedSignature)
Construct a MemberImpl using an erased signature for the parameters and return type (member method/ctor) or type (member field) |
| public | MemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes)
Construct a MemberImpl using real type information for the parameters and return type (member method/ctor) or type (member field) |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canBeParameterized()
Implements org. |
| public int | compareTo(Member
the object to be compared. other)Implements org. |
| public final boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public final boolean | Returns: true if this member equals the one supplied in every respect other than the declaring type
|
| public static MemberImpl | |
| private static MemberImpl | |
| public AnnotationAJ[] | |
| public int | |
| public UnresolvedType | |
| public Collection | |
| public UnresolvedType[] | |
| public UnresolvedType[] | |
| public UnresolvedType | |
| public JoinPointSignatureIterator | getJoinPointSignatures(World inAWorld)
Implements org. |
| public MemberKind | |
| public int | |
| public int | |
| public String | |
| public String[] | |
| public String | getParameterSignature()
Implements org. |
| public UnresolvedType[] | |
| public UnresolvedType | |
| public String | getSignature()
Implements org. |
| public final UnresolvedType | |
| public int | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public static ResolvedMemberImpl | |
| public static MemberImpl | |
| public static MemberImpl | |
| public static MemberImpl | |
| public static MemberImpl | |
| public static Member | |
| private static Member | pointcut(UnresolvedType declTy, int mods, UnresolvedType rTy, String name, UnresolvedType[] paramTys)
|
| private void | reportDidntFindMember(World world)
Raises an [Xlint:cantFindType] message if the declaring type cannot be found or an [Xlint:unresolvableMember] message if the type can be found (bug 149908) |
| public ResolvedMember | |
| private static Object[] | Returns: a pair of UnresolvedType, UnresolvedType[] representing the return types and parameter types.the JVM bytecode method signature string we want to break apart sig)returns an Object[] pair of UnresolvedType, UnresolvedType[] representing return type, argument types parsed from the JVM bytecode signature of a method. |
| public String | |
| public static String | typesToSignature(UnresolvedType returnType, UnresolvedType[] paramTypes, boolean eraseGenerics)
Build a signature based on the return type and parameter types. |
| public static String | typesToSignature(UnresolvedType[] paramTypes)
Returns "(<signaturesOfParamTypes>,...)" - unlike the other typesToSignature that also includes the return type, this one just deals with the parameter types. |
| private boolean | |
| private boolean | |
| public void |
| declaringType | back to summary |
|---|---|
| protected UnresolvedType declaringType | |
| erasedSignature | back to summary |
|---|---|
| private final String erasedSignature | |
| hashCode | back to summary |
|---|---|
| private volatile int hashCode Equality is checked based on the underlying signature, so the hash code of a member is based on its kind, name, signature, and declaring type. The algorithm for this was taken from page 38 of effective java. | |
| joinPointSignatures | back to summary |
|---|---|
| private JoinPointSignatureIterator joinPointSignatures All the signatures that a join point with this member as its signature has. | |
| kind | back to summary |
|---|---|
| protected MemberKind kind | |
| modifiers | back to summary |
|---|---|
| protected int modifiers | |
| name | back to summary |
|---|---|
| protected String name | |
| parameterTypes | back to summary |
|---|---|
| protected UnresolvedType[] parameterTypes | |
| paramSignature | back to summary |
|---|---|
| private String paramSignature | |
| reportedCantFindDeclaringType | back to summary |
|---|---|
| private boolean reportedCantFindDeclaringType | |
| reportedUnresolvableMember | back to summary |
|---|---|
| private boolean reportedUnresolvableMember | |
| returnType | back to summary |
|---|---|
| protected UnresolvedType returnType | |
| MemberImpl | back to summary |
|---|---|
| public MemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, String name, String erasedSignature) Construct a MemberImpl using an erased signature for the parameters and return type (member method/ctor) or type (member field) | |
| MemberImpl | back to summary |
|---|---|
| public MemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes) Construct a MemberImpl using real type information for the parameters and return type (member method/ctor) or type (member field) | |
| canBeParameterized | back to summary |
|---|---|
| public boolean canBeParameterized() Implements org. Doc from org. Returns true iff the member is generic (NOT parameterized) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Member other) Implements org. Doc from java. 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 The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
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. | |
| equalsApartFromDeclaringType | back to summary |
|---|---|
public final boolean equalsApartFromDeclaringType(Object other)
| |
| field | back to summary |
|---|---|
| public static MemberImpl field(String declaring, int mods, String name, String signature) | |
| field | back to summary |
|---|---|
| private static MemberImpl field(String declaring, int mods, UnresolvedType ty, String name) | |
| getAnnotations | back to summary |
|---|---|
| public AnnotationAJ[] getAnnotations() Implements org. | |
| getArity | back to summary |
|---|---|
| public int getArity() Implements org. | |
| getDeclaringType | back to summary |
|---|---|
| public UnresolvedType getDeclaringType() Implements org. | |
| getDeclaringTypes | back to summary |
|---|---|
| public Collection Implements org. | |
| getExceptions | back to summary |
|---|---|
| public UnresolvedType[] getExceptions(World world) Implements org. | |
| getGenericParameterTypes | back to summary |
|---|---|
| public UnresolvedType[] getGenericParameterTypes() Implements org. | |
| getGenericReturnType | back to summary |
|---|---|
| public UnresolvedType getGenericReturnType() Implements org. | |
| getJoinPointSignatures | back to summary |
|---|---|
| public JoinPointSignatureIterator getJoinPointSignatures(World inAWorld) Implements org. All the signatures that a join point with this member as its signature has. | |
| getKind | back to summary |
|---|---|
| public MemberKind getKind() Implements org.
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers(World world) Implements org. | |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Implements org. | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. | |
| getParameterNames | back to summary |
|---|---|
| public String[] getParameterNames(World world) Implements org. | |
| getParameterSignature | back to summary |
|---|---|
| public String getParameterSignature() Implements org. Doc from org. 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. | |
| getParameterTypes | back to summary |
|---|---|
| public UnresolvedType[] getParameterTypes() Implements org. | |
| getReturnType | back to summary |
|---|---|
| public UnresolvedType getReturnType() Implements org. | |
| getSignature | back to summary |
|---|---|
| public String getSignature() Implements org. Doc from org. 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. | |
| getType | back to summary |
|---|---|
| public final UnresolvedType getType() Implements org. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isInterface | back to summary |
|---|---|
| public final boolean isInterface() | |
| isPrivate | back to summary |
|---|---|
| public final boolean isPrivate() | |
| isStatic | back to summary |
|---|---|
| public final boolean isStatic() | |
| makeExceptionHandlerSignature | back to summary |
|---|---|
| public static ResolvedMemberImpl makeExceptionHandlerSignature(UnresolvedType inType, UnresolvedType catchType) | |
| method | back to summary |
|---|---|
| public static MemberImpl method(UnresolvedType declaring, int mods, String name, String signature) | |
| method | back to summary |
|---|---|
| public static MemberImpl method(UnresolvedType declTy, int mods, UnresolvedType rTy, String name, UnresolvedType[] paramTys) | |
| monitorEnter | back to summary |
|---|---|
| public static MemberImpl monitorEnter() | |
| monitorExit | back to summary |
|---|---|
| public static MemberImpl monitorExit() | |
| pointcut | back to summary |
|---|---|
| public static Member pointcut(UnresolvedType declaring, String name, String signature) | |
| pointcut | back to summary |
|---|---|
| private static Member pointcut(UnresolvedType declTy, int mods, UnresolvedType rTy, String name, UnresolvedType[] paramTys) | |
| reportDidntFindMember | back to summary |
|---|---|
| private void reportDidntFindMember(World world) Raises an [Xlint:cantFindType] message if the declaring type cannot be found or an [Xlint:unresolvableMember] message if the type can be found (bug 149908) | |
| resolve | back to summary |
|---|---|
| public ResolvedMember resolve(World world) Implements org. | |
| signatureToTypes | back to summary |
|---|---|
| private static Object[] signatureToTypes(String sig) returns an Object[] pair of UnresolvedType, UnresolvedType[] representing return type, argument types parsed from the JVM bytecode signature of a method. Yes, this should actually return a nice statically-typed pair object, but we don't have one of those.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| typesToSignature | back to summary |
|---|---|
| public static String typesToSignature(UnresolvedType returnType, UnresolvedType[] paramTypes, boolean eraseGenerics) Build a signature based on the return type and parameter types. For example: "(Ljava/util/Set<Ljava/lang/String;>;)V" or "(Ljava/util/Set;)V". The latter form shows what happens when the generics are erased | |
| typesToSignature | back to summary |
|---|---|
| public static String typesToSignature(UnresolvedType[] paramTypes) Returns "(<signaturesOfParamTypes>,...)" - unlike the other typesToSignature that also includes the return type, this one just deals with the parameter types. | |
| walkUp | back to summary |
|---|---|
| private boolean walkUp(Collection<ResolvedType> acc, ResolvedType curr) | |
| walkUpStatic | back to summary |
|---|---|
| private boolean walkUpStatic(Collection<ResolvedType> acc, ResolvedType curr) | |
| wipeJoinpointSignatures | back to summary |
|---|---|
| public void wipeJoinpointSignatures() | |