Package org.aspectj.weaver
Class ResolvedMemberImpl
- java.lang.Object
-
- org.aspectj.weaver.MemberImpl
-
- org.aspectj.weaver.ResolvedMemberImpl
-
- All Implemented Interfaces:
Comparable<Member>,AnnotatedElement,IHasPosition,Member,ResolvedMember,TypeVariableDeclaringElement
- Direct Known Subclasses:
ReflectionBasedResolvedMemberImpl,ResolvedPointcutDefinition
public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, ResolvedMember
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationAJ[]annotationsprotected ResolvedType[]annotationTypesprotected ResolvedMemberbackingGenericMemberprotected UnresolvedType[]checkedExceptionsprotected intendprotected AnnotationAJ[][]parameterAnnotationsprotected ResolvedType[][]parameterAnnotationTypesstatic booleanshowParameterNamesprotected ISourceContextsourceContextprotected intstartprotected TypeVariable[]typeVariables-
Fields inherited from class org.aspectj.weaver.MemberImpl
declaringType, kind, modifiers, name, parameterTypes, returnType
-
Fields inherited from interface org.aspectj.weaver.Member
ADVICE, CONSTRUCTOR, FIELD, HANDLER, METHOD, MONITORENTER, MONITOREXIT, NO_PARAMETER_ANNOTATION_TYPES, NO_PARAMETER_ANNOTATIONXS, NONE, POINTCUT, STATIC_INITIALIZATION
-
Fields inherited from interface org.aspectj.weaver.ResolvedMember
NONE
-
-
Constructor Summary
Constructors Constructor Description ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, String name, String signature)ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes)ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes, UnresolvedType[] checkedExceptions)ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes, UnresolvedType[] checkedExceptions, ResolvedMember backingGenericMember)
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.MemberImpl
canBeParameterized, compareTo, equals, equalsApartFromDeclaringType, field, getArity, getDeclaringType, getDeclaringTypes, getJoinPointSignatures, getKind, getName, getParameterSignature, getParameterTypes, getReturnType, getSignature, getType, hashCode, isInterface, isPrivate, isStatic, makeExceptionHandlerSignature, method, method, monitorEnter, monitorExit, pointcut, toString, typesToSignature, typesToSignature, wipeJoinpointSignatures
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.aspectj.weaver.Member
canBeParameterized, compareTo, getArity, getDeclaringType, getDeclaringTypes, getJoinPointSignatures, getKind, getName, getParameterSignature, getParameterTypes, getReturnType, getSignature, getType
-
Methods inherited from interface org.aspectj.weaver.ResolvedMember
equalsApartFromDeclaringType
-
-
-
-
Field Detail
-
checkedExceptions
protected UnresolvedType[] checkedExceptions
-
backingGenericMember
protected ResolvedMember backingGenericMember
-
annotations
protected AnnotationAJ[] annotations
-
annotationTypes
protected ResolvedType[] annotationTypes
-
parameterAnnotations
protected AnnotationAJ[][] parameterAnnotations
-
parameterAnnotationTypes
protected ResolvedType[][] parameterAnnotationTypes
-
typeVariables
protected TypeVariable[] typeVariables
-
start
protected int start
-
end
protected int end
-
sourceContext
protected ISourceContext sourceContext
-
showParameterNames
public static boolean showParameterNames
-
-
Constructor Detail
-
ResolvedMemberImpl
public ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes)
-
ResolvedMemberImpl
public ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes, UnresolvedType[] checkedExceptions)
-
ResolvedMemberImpl
public ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, UnresolvedType returnType, String name, UnresolvedType[] parameterTypes, UnresolvedType[] checkedExceptions, ResolvedMember backingGenericMember)
-
ResolvedMemberImpl
public ResolvedMemberImpl(MemberKind kind, UnresolvedType declaringType, int modifiers, String name, String signature)
-
-
Method Detail
-
getJoinPointSignatures
public static JoinPointSignature[] getJoinPointSignatures(Member joinPointSignature, World inAWorld)
-
getModifiers
public final int getModifiers(World world)
- Specified by:
getModifiersin interfaceMember- Specified by:
getModifiersin interfaceResolvedMember- Overrides:
getModifiersin classMemberImpl
-
getModifiers
public final int getModifiers()
- Specified by:
getModifiersin interfaceMember- Specified by:
getModifiersin interfaceResolvedMember- Overrides:
getModifiersin classMemberImpl
-
getExceptions
public final UnresolvedType[] getExceptions(World world)
- Specified by:
getExceptionsin interfaceMember- Specified by:
getExceptionsin interfaceResolvedMember- Overrides:
getExceptionsin classMemberImpl
-
getExceptions
public UnresolvedType[] getExceptions()
- Specified by:
getExceptionsin interfaceResolvedMember
-
getAssociatedShadowMunger
public ShadowMunger getAssociatedShadowMunger()
- Specified by:
getAssociatedShadowMungerin interfaceResolvedMember
-
isAjSynthetic
public boolean isAjSynthetic()
- Specified by:
isAjSyntheticin interfaceResolvedMember
-
setAjSynthetic
protected void setAjSynthetic(boolean b)
-
hasAnnotations
public boolean hasAnnotations()
-
hasAnnotation
public boolean hasAnnotation(UnresolvedType ofType)
- Specified by:
hasAnnotationin interfaceAnnotatedElement- Specified by:
hasAnnotationin interfaceResolvedMember
-
getAnnotationTypes
public ResolvedType[] getAnnotationTypes()
- Specified by:
getAnnotationTypesin interfaceAnnotatedElement- Specified by:
getAnnotationTypesin interfaceResolvedMember
-
getAnnotationDefaultValue
public String getAnnotationDefaultValue()
- Specified by:
getAnnotationDefaultValuein interfaceResolvedMember
-
getAnnotations
public AnnotationAJ[] getAnnotations()
- Specified by:
getAnnotationsin interfaceMember- Specified by:
getAnnotationsin interfaceResolvedMember- Overrides:
getAnnotationsin classMemberImpl
-
getAnnotationOfType
public AnnotationAJ getAnnotationOfType(UnresolvedType ofType)
- Specified by:
getAnnotationOfTypein interfaceAnnotatedElement
-
setAnnotations
public void setAnnotations(AnnotationAJ[] annotations)
- Specified by:
setAnnotationsin interfaceResolvedMember
-
setAnnotationTypes
public void setAnnotationTypes(ResolvedType[] annotationTypes)
- Specified by:
setAnnotationTypesin interfaceResolvedMember
-
getParameterAnnotationTypes
public ResolvedType[][] getParameterAnnotationTypes()
- Specified by:
getParameterAnnotationTypesin interfaceResolvedMember
-
getParameterAnnotations
public AnnotationAJ[][] getParameterAnnotations()
- Specified by:
getParameterAnnotationsin interfaceResolvedMember
-
addAnnotation
public void addAnnotation(AnnotationAJ annotation)
- Specified by:
addAnnotationin interfaceResolvedMember
-
isBridgeMethod
public boolean isBridgeMethod()
- Specified by:
isBridgeMethodin interfaceResolvedMember
-
isVarargsMethod
public boolean isVarargsMethod()
- Specified by:
isVarargsMethodin interfaceResolvedMember
-
setVarargsMethod
public void setVarargsMethod()
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceResolvedMember
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein interfaceResolvedMember- Throws:
IOException
-
getSignatureForAttribute
public String getSignatureForAttribute()
-
getGenericSignature
public String getGenericSignature()
-
writeArray
public static void writeArray(ResolvedMember[] members, CompressingDataOutputStream s) throws IOException
- Throws:
IOException
-
readResolvedMember
public static ResolvedMemberImpl readResolvedMember(VersionedDataInputStream s, ISourceContext sourceContext) throws IOException
- Throws:
IOException
-
readResolvedMemberArray
public static ResolvedMember[] readResolvedMemberArray(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
resolve
public ResolvedMember resolve(World world)
- Specified by:
resolvein interfaceMember- Overrides:
resolvein classMemberImpl
-
getSourceContext
public ISourceContext getSourceContext(World world)
- Specified by:
getSourceContextin interfaceResolvedMember
-
getParameterNames
public String[] getParameterNames()
- Specified by:
getParameterNamesin interfaceResolvedMember
-
setParameterNames
public final void setParameterNames(String[] pnames)
- Specified by:
setParameterNamesin interfaceResolvedMember
-
getParameterNames
public final String[] getParameterNames(World world)
- Specified by:
getParameterNamesin interfaceMember- Specified by:
getParameterNamesin interfaceResolvedMember- Overrides:
getParameterNamesin classMemberImpl
-
getEffectiveSignature
public AjAttribute.EffectiveSignatureAttribute getEffectiveSignature()
- Specified by:
getEffectiveSignaturein interfaceResolvedMember
-
getSourceLocation
public ISourceLocation getSourceLocation()
- Specified by:
getSourceLocationin interfaceResolvedMember
-
getEnd
public int getEnd()
- Specified by:
getEndin interfaceIHasPosition- Specified by:
getEndin interfaceResolvedMember
-
getSourceContext
public ISourceContext getSourceContext()
- Specified by:
getSourceContextin interfaceResolvedMember
-
getStart
public int getStart()
- Specified by:
getStartin interfaceIHasPosition- Specified by:
getStartin interfaceResolvedMember
-
setPosition
public void setPosition(int sourceStart, int sourceEnd)- Specified by:
setPositionin interfaceResolvedMember
-
setDeclaringType
public void setDeclaringType(ReferenceType rt)
-
setSourceContext
public void setSourceContext(ISourceContext sourceContext)
- Specified by:
setSourceContextin interfaceResolvedMember
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceResolvedMember
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin interfaceResolvedMember
-
isDefault
public boolean isDefault()
- Specified by:
isDefaultin interfaceResolvedMember
-
isVisible
public boolean isVisible(ResolvedType fromType)
- Specified by:
isVisiblein interfaceResolvedMember
-
setCheckedExceptions
public void setCheckedExceptions(UnresolvedType[] checkedExceptions)
- Specified by:
setCheckedExceptionsin interfaceResolvedMember
-
setAnnotatedElsewhere
public void setAnnotatedElsewhere(boolean b)
- Specified by:
setAnnotatedElsewherein interfaceResolvedMember
-
isAnnotatedElsewhere
public boolean isAnnotatedElsewhere()
- Specified by:
isAnnotatedElsewherein interfaceResolvedMember
-
getGenericReturnType
public UnresolvedType getGenericReturnType()
- Specified by:
getGenericReturnTypein interfaceMember- Specified by:
getGenericReturnTypein interfaceResolvedMember- Overrides:
getGenericReturnTypein classMemberImpl
-
getGenericParameterTypes
public UnresolvedType[] getGenericParameterTypes()
- Specified by:
getGenericParameterTypesin interfaceMember- Specified by:
getGenericParameterTypesin interfaceResolvedMember- Overrides:
getGenericParameterTypesin classMemberImpl
-
parameterizedWith
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized)
- Specified by:
parameterizedWithin interfaceResolvedMember
-
parameterizedWith
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized, List<String> aliases)
- Specified by:
parameterizedWithin interfaceResolvedMember
-
parameterizedWith
public ResolvedMember parameterizedWith(Map<String,UnresolvedType> m, World w)
- Specified by:
parameterizedWithin interfaceResolvedMember
-
setTypeVariables
public void setTypeVariables(TypeVariable[] tvars)
- Specified by:
setTypeVariablesin interfaceResolvedMember
-
getTypeVariables
public TypeVariable[] getTypeVariables()
- Specified by:
getTypeVariablesin interfaceResolvedMember
-
parameterize
protected UnresolvedType parameterize(UnresolvedType aType, Map<String,UnresolvedType> typeVariableMap, boolean inParameterizedType, World w)
-
hasBackingGenericMember
public boolean hasBackingGenericMember()
- Specified by:
hasBackingGenericMemberin interfaceResolvedMember
-
getBackingGenericMember
public ResolvedMember getBackingGenericMember()
- Specified by:
getBackingGenericMemberin interfaceResolvedMember
-
resetName
public void resetName(String newName)
-
resetKind
public void resetKind(MemberKind newKind)
-
resetModifiers
public void resetModifiers(int newModifiers)
-
resetReturnTypeToObjectArray
public void resetReturnTypeToObjectArray()
-
matches
public boolean matches(ResolvedMember aCandidateMatch, boolean ignoreGenerics)
- Specified by:
matchesin interfaceResolvedMember
-
getParameterSignatureErased
public String getParameterSignatureErased()
- Specified by:
getParameterSignatureErasedin interfaceResolvedMember
-
getSignatureErased
public String getSignatureErased()
- Specified by:
getSignatureErasedin interfaceResolvedMember
-
appendSigWithTypeVarBoundsRemoved
public static void appendSigWithTypeVarBoundsRemoved(UnresolvedType aType, StringBuffer toBuffer, Set<UnresolvedType> alreadyUsedTypeVars)
-
toDebugString
public String toDebugString()
- Specified by:
toDebugStringin interfaceResolvedMember
-
toGenericString
public String toGenericString()
- Specified by:
toGenericStringin interfaceResolvedMember
-
isCompatibleWith
public boolean isCompatibleWith(Member am)
- Specified by:
isCompatibleWithin interfaceResolvedMember
-
getTypeVariableNamed
public TypeVariable getTypeVariableNamed(String name)
- Specified by:
getTypeVariableNamedin interfaceTypeVariableDeclaringElement
-
evictWeavingState
public void evictWeavingState()
- Specified by:
evictWeavingStatein interfaceResolvedMember
-
isEquivalentTo
public boolean isEquivalentTo(Object other)
-
isDefaultConstructor
public boolean isDefaultConstructor()
- Specified by:
isDefaultConstructorin interfaceResolvedMember
-
-