Class BcelCflowCounterFieldAdder
java.lang.Object
org.aspectj.weaver.ConcreteTypeMunger
org.aspectj.weaver.bcel.BcelTypeMunger
org.aspectj.weaver.bcel.BcelCflowCounterFieldAdder
- All Implemented Interfaces:
PartialOrder.PartialComparable
This type munger will modify a given class (see the munge() method) to include a field representing a CflowCounter object.
-
Field Summary
Fields inherited from class ConcreteTypeMunger
aspectType, munger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSome type mungers are created purely to help with the implementation of shadow mungers.getMatchingSyntheticMember(Member member) booleanmatches(ResolvedType onType) booleanmunge(org.aspectj.weaver.bcel.BcelClassWeaver weaver) toString()Methods inherited from class BcelTypeMunger
attemptToModifySuperCalls, equals, error, getTypeVariableAliases, hashCode, makeFieldGen, makeMethodGen, parameterizedFor, parameterizeWith, shouldOverwriteModifier 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) booleanMethods inherited from class ConcreteTypeMunger
compareTo, equivalentTo, 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).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
-
BcelCflowCounterFieldAdder
-
-
Method Details
-
munge
public boolean munge(org.aspectj.weaver.bcel.BcelClassWeaver weaver) - Overrides:
mungein classBcelTypeMunger
-
getMatchingSyntheticMember
- Overrides:
getMatchingSyntheticMemberin classConcreteTypeMunger
-
getSignature
- Overrides:
getSignaturein classConcreteTypeMunger
-
matches
- Overrides:
matchesin classConcreteTypeMunger
-
existsToSupportShadowMunging
public boolean existsToSupportShadowMunging()Description copied from class:ConcreteTypeMungerSome 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.- Overrides:
existsToSupportShadowMungingin classConcreteTypeMunger
-
toString
- Overrides:
toStringin classBcelTypeMunger
-