Package org.aspectj.weaver
Klasse Checker
java.lang.Object
org.aspectj.weaver.ShadowMunger
org.aspectj.weaver.Checker
- Alle implementierten Schnittstellen:
PartialOrder.PartialComparable
,IHasPosition
Representation of a shadow munger for a declare error or warning declaration.
- Autor:
- Andy Clement
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.weaver.ShadowMunger
end, handle, NONE, pointcut, ShadowMungerAdvice, ShadowMungerDeow, sourceContext, start
-
Konstruktorübersicht
KonstruktorBeschreibungChecker
(DeclareErrorOrWarning deow) Create a Checker for a declare error or declare warning. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
concretize
(ResolvedType theAspect, World world, PerClause clause) Concretize this Checker by concretizing the pointcutboolean
getMessage
(Shadow shadow) int
hashCode()
boolean
implementOn
(Shadow shadow) Implement this munger at the specified shadow, returning a boolean to indicate success.boolean
isError()
boolean
Determine if the Checker matches at a shadow.boolean
Does the munger have to check that its exception are accepted by the shadow ?parameterizeWith
(ResolvedType declaringType, Map<String, UnresolvedType> typeVariableMap) Parameterize the Checker by parameterizing the pointcutvoid
specializeOn
(Shadow shadow) Von Klasse geerbte Methoden org.aspectj.weaver.ShadowMunger
bindsProceedingJoinPoint, fallbackCompareTo, getBinarySourceLocation, getDeclaringType, getEnd, getPointcut, getSourceLocation, getStart, isAroundAdvice, isBinary, setDeclaringType, setPointcut, write
-
Konstruktordetails
-
Checker
Create a Checker for a declare error or declare warning.- Parameter:
deow
- the declare error or declare warning for which to create the checker munger
-
-
Methodendetails
-
isError
public boolean isError() -
getMessage
-
specializeOn
- Angegeben von:
specializeOn
in KlasseShadowMunger
-
implementOn
Beschreibung aus Klasse kopiert:ShadowMunger
Implement this munger at the specified shadow, returning a boolean to indicate success.- Angegeben von:
implementOn
in KlasseShadowMunger
- Parameter:
shadow
- the shadow where this munger should be applied- Gibt zurück:
- true if the implement was successful
-
match
Determine if the Checker matches at a shadow. If it does then we can immediately report the message. Currently, there can never be a non-statically determinable match.- Setzt außer Kraft:
match
in KlasseShadowMunger
- Parameter:
shadow
- the shadow which to match againstworld
- the world through which to access message handlers
-
compareTo
- Gibt zurück:
- +1 if this is greater than other
- -1 if this is less than other
- 0 if this is not comparable to other
-
mustCheckExceptions
public boolean mustCheckExceptions()Beschreibung aus Klasse kopiert:ShadowMunger
Does the munger have to check that its exception are accepted by the shadow ? It is not the case for annotation style around advice, for example: that can throw Throwable, even if the advised method does not throw any exceptions.- Angegeben von:
mustCheckExceptions
in KlasseShadowMunger
- Gibt zurück:
- true if munger has to check that its exceptions can be thrown based on the shadow
-
getThrownExceptions
- Angegeben von:
getThrownExceptions
in KlasseShadowMunger
- Gibt zurück:
- a Collection of ResolvedTypes for all checked exceptions that might be thrown by this munger
-
equals
-
hashCode
public int hashCode() -
parameterizeWith
public ShadowMunger parameterizeWith(ResolvedType declaringType, Map<String, UnresolvedType> typeVariableMap) Parameterize the Checker by parameterizing the pointcut- Angegeben von:
parameterizeWith
in KlasseShadowMunger
-
concretize
Concretize this Checker by concretizing the pointcut- Angegeben von:
concretize
in KlasseShadowMunger
-
getConcreteAspect
- Angegeben von:
getConcreteAspect
in KlasseShadowMunger
-