|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.weaver.ShadowMunger
org.aspectj.weaver.Checker
public class Checker
Representation of a shadow munger for a declare error or warning declaration.
| Field Summary |
|---|
| Fields inherited from class org.aspectj.weaver.ShadowMunger |
|---|
end, handle, NONE, pointcut, ShadowMungerAdvice, ShadowMungerDeow, sourceContext, start |
| Constructor Summary | |
|---|---|
Checker(DeclareErrorOrWarning deow)
Create a Checker for a declare error or declare warning. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.aspectj.weaver.ShadowMunger |
|---|
fallbackCompareTo, getBinarySourceLocation, getDeclaringType, getEnd, getPointcut, getSourceLocation, getStart, isBinary, setDeclaringType, setPointcut, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Checker(DeclareErrorOrWarning deow)
deow - the declare error or declare warning for which to create the checker munger| Method Detail |
|---|
public boolean isError()
public java.lang.String getMessage(Shadow shadow)
public void specializeOn(Shadow shadow)
specializeOn in class ShadowMungerpublic boolean implementOn(Shadow shadow)
ShadowMunger
implementOn in class ShadowMungershadow - the shadow where this munger should be applied
public 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()
ShadowMunger
mustCheckExceptions 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.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 ShadowMungerpublic ResolvedType getConcreteAspect()
getConcreteAspect in class ShadowMunger
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||