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, write
public 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 ShadowMunger
public boolean implementOn(Shadow shadow)
ShadowMunger
implementOn
in class ShadowMunger
shadow
- the shadow where this munger should be appliedpublic boolean match(Shadow shadow, World world)
match
in class ShadowMunger
shadow
- the shadow which to match againstworld
- the world through which to access message handlerspublic int compareTo(java.lang.Object other)
public boolean mustCheckExceptions()
ShadowMunger
mustCheckExceptions
in class ShadowMunger
public java.util.Collection<ResolvedType> getThrownExceptions()
getThrownExceptions
in class ShadowMunger
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ShadowMunger parameterizeWith(ResolvedType declaringType, java.util.Map<java.lang.String,UnresolvedType> typeVariableMap)
parameterizeWith
in class ShadowMunger
public ShadowMunger concretize(ResolvedType theAspect, World world, PerClause clause)
concretize
in class ShadowMunger
public ResolvedType getConcreteAspect()
getConcreteAspect
in class ShadowMunger