public class Checker extends ShadowMunger
end, handle, NONE, pointcut, ShadowMungerAdvice, ShadowMungerDeow, sourceContext, start| Constructor and Description |
|---|
Checker(DeclareErrorOrWarning deow)
Create a Checker for a declare error or declare warning.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object other) |
ShadowMunger |
concretize(ResolvedType theAspect,
World world,
PerClause clause)
Concretize this Checker by concretizing the pointcut
|
boolean |
equals(java.lang.Object other) |
ResolvedType |
getConcreteAspect() |
java.lang.String |
getMessage(Shadow shadow) |
java.util.Collection<ResolvedType> |
getThrownExceptions() |
int |
hashCode() |
boolean |
implementOn(Shadow shadow)
Implement this munger at the specified shadow, returning a boolean to indicate success.
|
boolean |
isError() |
boolean |
match(Shadow shadow,
World world)
Determine if the Checker matches at a shadow.
|
boolean |
mustCheckExceptions()
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.
|
ShadowMunger |
parameterizeWith(ResolvedType declaringType,
java.util.Map<java.lang.String,UnresolvedType> typeVariableMap)
Parameterize the Checker by parameterizing the pointcut
|
void |
specializeOn(Shadow shadow) |
fallbackCompareTo, getBinarySourceLocation, getDeclaringType, getEnd, getPointcut, getSourceLocation, getStart, isBinary, setDeclaringType, setPointcut, writepublic Checker(DeclareErrorOrWarning deow)
deow - the declare error or declare warning for which to create the checker mungerpublic boolean isError()
public java.lang.String getMessage(Shadow shadow)
public void specializeOn(Shadow shadow)
specializeOn in class ShadowMungerpublic boolean implementOn(Shadow shadow)
ShadowMungerimplementOn in class ShadowMungershadow - the shadow where this munger should be appliedpublic boolean match(Shadow shadow, World world)
match in class ShadowMungershadow - the shadow which to match againstworld - the world through which to access message handlerspublic int compareTo(java.lang.Object other)
public boolean mustCheckExceptions()
ShadowMungermustCheckExceptions in class ShadowMungerpublic java.util.Collection<ResolvedType> getThrownExceptions()
getThrownExceptions in class ShadowMungerpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic ShadowMunger parameterizeWith(ResolvedType declaringType, java.util.Map<java.lang.String,UnresolvedType> typeVariableMap)
parameterizeWith in class ShadowMungerpublic ShadowMunger concretize(ResolvedType theAspect, World world, PerClause clause)
concretize in class ShadowMungerpublic ResolvedType getConcreteAspect()
getConcreteAspect in class ShadowMunger