Package org.aspectj.weaver
Class ResolvedTypeMunger
java.lang.Object
org.aspectj.weaver.ResolvedTypeMunger
- Direct Known Subclasses:
AnnotationOnTypeMunger,MethodDelegateTypeMunger,MethodDelegateTypeMunger.FieldHostTypeMunger,NewConstructorTypeMunger,NewFieldTypeMunger,NewMemberClassTypeMunger,NewMethodTypeMunger,NewParentTypeMunger,PerObjectInterfaceTypeMunger,PerTypeWithinTargetTypeMunger,PrivilegedAccessMunger
This is an abstraction over method/field introduction. It might not have the chops to handle other inter-type declarations. This
is the thing that is used on the eclipse side and serialized into a ConcreteTypeMunger.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindprotected ResolvedMemberThe declared signature is filled in when a type munger is parameterized for application to a particular type.static ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindprotected ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindstatic ResolvedTypeMunger.Kindprotected ResolvedMemberstatic String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanSome type mungers are created purely to help with the implementation of shadow mungers.getKind()getMatchingSyntheticMember(Member member, ResolvedType aspectType)booleanbooleanA late munger has to be done after shadow munging since which shadows are matched can affect the operation of the late munger.booleanmatches(ResolvedType matchType, ResolvedType aspectType)booleanparameterizedFor(ResolvedType target)Parameterizes a resolved type munger for a particular usage of its target type (this is used when the target type is generic and the ITD shares type variables with the target) see ConcreteTypeMunger.parameterizedForparameterizeWith(Map<String,UnresolvedType> m, World w)static ResolvedTypeMungerread(VersionedDataInputStream s, ISourceContext context)protected static ISourceLocationprotected static Set<ResolvedMember>voidvoidvoidprotected voidsetTypeVariableAliases(List<String> typeVariableAliases)booleanreturn true if type variables are specified with the target type for this ITD.toString()abstract voidprotected voidprotected voidprotected void
-
Field Details
-
kind
-
signature
-
declaredSignature
The declared signature is filled in when a type munger is parameterized for application to a particular type. It represents the signature originally declared in the source file. -
typeVariableAliases
-
Field
-
Method
-
Constructor
-
PerObjectInterface
-
PrivilegedAccess
-
Parent
-
PerTypeWithinInterface
-
AnnotationOnType
-
MethodDelegate
-
FieldHost
-
MethodDelegate2
-
InnerClass
-
SUPER_DISPATCH_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ResolvedTypeMunger
-
-
Method Details
-
setSourceLocation
-
getSourceLocation
-
matches
-
toString
-
read
public static ResolvedTypeMunger read(VersionedDataInputStream s, ISourceContext context) throws IOException- Throws:
IOException
-
readSuperMethodsCalled
protected static Set<ResolvedMember> readSuperMethodsCalled(VersionedDataInputStream s) throws IOException- Throws:
IOException
-
writeSuperMethodsCalled
- Throws:
IOException
-
readSourceLocation
- Throws:
IOException
-
writeSourceLocation
- Throws:
IOException
-
write
- Throws:
IOException
-
getKind
-
setSuperMethodsCalled
-
getSuperMethodsCalled
-
getSignature
-
getMatchingSyntheticMember
-
changesPublicSignature
public boolean changesPublicSignature() -
needsAccessToTopmostImplementor
public boolean needsAccessToTopmostImplementor() -
readInTypeAliases
- Throws:
IOException
-
writeOutTypeAliases
- Throws:
IOException
-
getTypeVariableAliases
-
setTypeVariableAliases
-
hasTypeVariableAliases
public boolean hasTypeVariableAliases() -
parameterizedFor
Parameterizes a resolved type munger for a particular usage of its target type (this is used when the target type is generic and the ITD shares type variables with the target) see ConcreteTypeMunger.parameterizedFor -
setDeclaredSignature
-
getDeclaredSignature
-
isLateMunger
public boolean isLateMunger()A late munger has to be done after shadow munging since which shadows are matched can affect the operation of the late munger. e.g. perobjectinterfacemunger -
existsToSupportShadowMunging
public boolean existsToSupportShadowMunging()Some type mungers are created purely to help with the implementation of shadow mungers. For example to support the cflow() pointcut we create a new cflow field in the aspect, and that is added via a BcelCflowCounterFieldAdder. During compilation we need to compare sets of type mungers, and if some only come into existence after the 'shadowy' type things have been processed, we need to ignore them during the comparison. Returning true from this method indicates the type munger exists to support 'shadowy' stuff - and so can be ignored in some comparison. -
parameterizeWith
-
getDeclaringType
-