Class BcelAccessForInlineMunger
java.lang.Object
org.aspectj.weaver.ConcreteTypeMunger
org.aspectj.weaver.bcel.BcelTypeMunger
org.aspectj.weaver.bcel.BcelAccessForInlineMunger
- All Implemented Interfaces:
PartialOrder.PartialComparable
Looks for all access to method or field that are not public within the body of the around advices and replace the invocations to
a wrapper call so that the around advice can further be inlined.
This munger is used for @AJ aspects for which inlining wrapper is not done at compile time.
Specific state and logic is kept in the munger ala ITD so that call/get/set pointcuts can still be matched on the wrapped member thanks to the EffectiveSignature attribute.
- Author:
- Alexandre Vasseur, Andy Clement
-
Field Summary
Fields inherited from class ConcreteTypeMunger
aspectType, munger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMatchingSyntheticMember(Member member) Looks in the wrapper we have added so that we can find their effective signature if neededbooleanmatches(ResolvedType onType) Match only the aspect for which we actbooleanmunge(org.aspectj.weaver.bcel.BcelClassWeaver weaver) Methods inherited from class BcelTypeMunger
attemptToModifySuperCalls, equals, error, getTypeVariableAliases, hashCode, makeFieldGen, makeMethodGen, parameterizedFor, parameterizeWith, shouldOverwrite, toStringModifier and TypeMethodDescriptionbooleanattemptToModifySuperCalls(org.aspectj.weaver.bcel.BcelClassWeaver weaver, LazyClassGen newParentTarget, ResolvedType newParent) The main part of implementing declare parents extends.booleanvoiderror(org.aspectj.weaver.bcel.BcelClassWeaver weaver, String text, ISourceLocation primaryLoc, ISourceLocation[] extraLocs) Returns a list of type variable aliases used in this munger.inthashCode()protected FieldGenmakeFieldGen(LazyClassGen gen, ResolvedMember member) protected LazyMethodGenmakeMethodGen(LazyClassGen gen, ResolvedMember member) parameterizedFor(ResolvedType target) For an ITD made on a generic type that shares type variables with that target type, this method will tailor the ITD for a particular usage of the generic type - either in its raw or parameterized form.parameterizeWith(Map<String, UnresolvedType> m, World w) booleantoString()Methods inherited from class ConcreteTypeMunger
compareTo, equivalentTo, existsToSupportShadowMunging, fallbackCompareTo, getAspectType, getMunger, getSourceLocation, getWorld, isLateMunger, isTargetTypeParameterizedModifier and TypeMethodDescriptionintbooleanequivalentTo(Object other) Equivalence can be true for an EclipseTypeMunger and a BcelTypeMunger that represent the same transformation (just at different points in the pipeline).booleanSome type mungers are created purely to help with the implementation of shadow mungers.intfallbackCompareTo(Object other) This method can provide a deterministic ordering for elements that are strictly not comparable.returns null for mungers that are used internally, but were not part of a declared thing in source code.getWorld()booleanbooleanreturns true if the ITD target type used type variables, for example I<T>.
-
Constructor Details
-
BcelAccessForInlineMunger
-
-
Method Details
-
munge
public boolean munge(org.aspectj.weaver.bcel.BcelClassWeaver weaver) - Overrides:
mungein classBcelTypeMunger
-
getMatchingSyntheticMember
Looks in the wrapper we have added so that we can find their effective signature if needed- Overrides:
getMatchingSyntheticMemberin classConcreteTypeMunger
-
getSignature
- Overrides:
getSignaturein classConcreteTypeMunger
-
matches
Match only the aspect for which we act- Overrides:
matchesin classConcreteTypeMunger
-