Package org.aspectj.weaver
Klasse Advice
java.lang.Object
org.aspectj.weaver.ShadowMunger
org.aspectj.weaver.Advice
- Alle implementierten Schnittstellen:
PartialOrder.PartialComparable
,IHasPosition
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected AjAttribute.AdviceAttribute
protected UnresolvedType[]
protected ResolvedType
static final int
static final int
protected TypePattern
static final int
protected boolean
protected List<ShadowMunger>
protected AdviceKind
protected int
static final int
protected Member
static final int
static final int
static final int
static final int
Von Klasse geerbte Felder org.aspectj.weaver.ShadowMunger
end, handle, NONE, pointcut, ShadowMungerAdvice, ShadowMungerDeow, sourceContext, start
-
Konstruktorübersicht
KonstruktorBeschreibungAdvice
(AjAttribute.AdviceAttribute attribute, Pointcut pointcut, Member signature) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungconcretize
(ResolvedType fromType, World world, PerClause clause) static int
countOnes
(int bits) boolean
protected String
int
String[]
getBaseParameterNames
(World world) protected int
protected int
Return the type of the 'extra argument'.getKind()
protected Member
abstract boolean
boolean
int
hashCode()
boolean
boolean
boolean
static Advice
makeCflowEntry
(World world, Pointcut entry, boolean isBelow, Member stackField, int nFreeVars, List<ShadowMunger> innerCflowEntries, ResolvedType inAspect) static Advice
makePerCflowEntry
(World world, Pointcut entry, boolean isBelow, Member stackField, ResolvedType inAspect, List<ShadowMunger> innerCflowEntries) static Advice
makePerObjectEntry
(World world, Pointcut entry, boolean isThis, ResolvedType inAspect) static Advice
makePerTypeWithinEntry
(World world, Pointcut p, ResolvedType inAspect) static Advice
makeSoftener
(World world, Pointcut entry, TypePattern exceptionType, ResolvedType inAspect, IHasSourceLocation loc) boolean
All overriding methods should call supervoid
setBindingParameterTypes
(UnresolvedType[] types) void
setHasMatchedSomething
(boolean hasMatchedSomething) void
setLexicalPosition
(int lexicalPosition) toString()
Von Klasse geerbte Methoden org.aspectj.weaver.ShadowMunger
bindsProceedingJoinPoint, fallbackCompareTo, getBinarySourceLocation, getDeclaringType, getEnd, getSourceLocation, getStart, getThrownExceptions, implementOn, isBinary, mustCheckExceptions, parameterizeWith, setDeclaringType, setPointcut, specializeOn, write
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.util.PartialOrder.PartialComparable
compareTo
-
Felddetails
-
attribute
-
kind
-
signature
-
concreteAspect
-
innerCflowEntries
-
nFreeVars
protected int nFreeVars -
exceptionType
-
bindingParameterTypes
-
hasMatchedAtLeastOnce
protected boolean hasMatchedAtLeastOnce -
suppressedLintKinds
-
lastReportedMonitorExitJoinpointLocation
-
ExtraArgument
public static final int ExtraArgument- Siehe auch:
-
ThisJoinPoint
public static final int ThisJoinPoint- Siehe auch:
-
ThisJoinPointStaticPart
public static final int ThisJoinPointStaticPart- Siehe auch:
-
ThisEnclosingJoinPointStaticPart
public static final int ThisEnclosingJoinPointStaticPart- Siehe auch:
-
ParameterMask
public static final int ParameterMask- Siehe auch:
-
ConstantReference
public static final int ConstantReference- Siehe auch:
-
ConstantValue
public static final int ConstantValue- Siehe auch:
-
ThisAspectInstance
public static final int ThisAspectInstance- Siehe auch:
-
-
Konstruktordetails
-
Advice
-
-
Methodendetails
-
makeCflowEntry
public static Advice makeCflowEntry(World world, Pointcut entry, boolean isBelow, Member stackField, int nFreeVars, List<ShadowMunger> innerCflowEntries, ResolvedType inAspect) -
makePerCflowEntry
public static Advice makePerCflowEntry(World world, Pointcut entry, boolean isBelow, Member stackField, ResolvedType inAspect, List<ShadowMunger> innerCflowEntries) -
makePerObjectEntry
public static Advice makePerObjectEntry(World world, Pointcut entry, boolean isThis, ResolvedType inAspect) -
makePerTypeWithinEntry
-
isAroundAdvice
public boolean isAroundAdvice()- Setzt außer Kraft:
isAroundAdvice
in KlasseShadowMunger
-
makeSoftener
public static Advice makeSoftener(World world, Pointcut entry, TypePattern exceptionType, ResolvedType inAspect, IHasSourceLocation loc) -
match
Beschreibung aus Klasse kopiert:ShadowMunger
All overriding methods should call super- Setzt außer Kraft:
match
in KlasseShadowMunger
-
getKind
-
getSignature
-
hasExtraParameter
public boolean hasExtraParameter() -
getExtraParameterFlags
protected int getExtraParameterFlags() -
getExtraParameterCount
protected int getExtraParameterCount() -
getBindingParameterTypes
-
setBindingParameterTypes
-
countOnes
public static int countOnes(int bits) -
getBaseParameterCount
public int getBaseParameterCount() -
getBaseParameterNames
-
getExtraParameterType
Return the type of the 'extra argument'. For either after returning or after throwing advice, the extra argument will be the returned value or the thrown exception respectively. With annotation style the user may declare the parameters in any order, whereas for code style they are in a well defined order. So there is some extra complexity in here for annotation style that looks up the correct parameter in the advice signature by name, based on the name specified in the annotation. If this fails then we 'fallback' to guessing at positions, where the extra argument is presumed to come at the end.- Gibt zurück:
- the type of the extraParameter
-
getDeclaringAspect
-
getOriginalSignature
-
extraParametersToString
-
getPointcut
- Setzt außer Kraft:
getPointcut
in KlasseShadowMunger
-
concretize
- Angegeben von:
concretize
in KlasseShadowMunger
- Parameter:
fromType
- is guaranteed to be a non-abstract aspectclause
- has been concretized at a higher level
-
toString
-
equals
-
hashCode
public int hashCode() -
setLexicalPosition
public void setLexicalPosition(int lexicalPosition) -
isAnnotationStyle
public boolean isAnnotationStyle() -
getConcreteAspect
- Angegeben von:
getConcreteAspect
in KlasseShadowMunger
-
hasMatchedSomething
public boolean hasMatchedSomething() -
setHasMatchedSomething
public void setHasMatchedSomething(boolean hasMatchedSomething) -
hasDynamicTests
public abstract boolean hasDynamicTests()
-