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
KonstruktorenKonstruktorBeschreibungChecker(DeclareErrorOrWarning deow) Create a Checker for a declare error or declare warning. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintconcretize(ResolvedType theAspect, World world, PerClause clause) Concretize this Checker by concretizing the pointcutbooleangetMessage(Shadow shadow) inthashCode()booleanimplementOn(Shadow shadow) Implement this munger at the specified shadow, returning a boolean to indicate success.booleanisError()booleanDetermine if the Checker matches at a shadow.booleanDoes 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 pointcutvoidspecializeOn(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:
specializeOnin KlasseShadowMunger
-
implementOn
Beschreibung aus Klasse kopiert:ShadowMungerImplement this munger at the specified shadow, returning a boolean to indicate success.- Angegeben von:
implementOnin 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:
matchin 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:ShadowMungerDoes 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:
mustCheckExceptionsin KlasseShadowMunger- Gibt zurück:
- true if munger has to check that its exceptions can be thrown based on the shadow
-
getThrownExceptions
- Angegeben von:
getThrownExceptionsin 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:
parameterizeWithin KlasseShadowMunger
-
concretize
Concretize this Checker by concretizing the pointcut- Angegeben von:
concretizein KlasseShadowMunger
-
getConcreteAspect
- Angegeben von:
getConcreteAspectin KlasseShadowMunger
-