| java.lang.Object ch.ethz.prose.crosscut.SignaturePattern
All known Subclasses: ch.ethz.prose.crosscut.SetGetSignaturePattern, ch.ethz.prose.crosscut.MethodCutSignaturePattern, ch.ethz.prose.crosscut.CatchHandleSignaturePattern, ch.ethz.prose.crosscut.ConstructorCutSignaturePattern, ch.ethz.prose.crosscut.ThrowHandleSignaturePattern,
SignaturePattern | abstract public class SignaturePattern (Code) | | Every Crosscut contains a method to be executed when a join-point is hit.
In the case of MethodCut objects, the SignaturePattern has three
roles:
- The pattern role: through a special signature, define matches for the
target class, and for the parameters of the methods belonging to the target.
- The method finder role: determine which method o of the crosscut
must be ivoked upon a hit join-point.
- The optimization role: to cathegorize the signature of the advice
method, such that the subsequent execution of the advice method is efficient.
The categorization is currently performed according to the
SIGNATURE__XXX
constants.
version: $Revision: 1.2 $ author: Andrei Popovici |
CONCRETE_1 | final protected static int CONCRETE_1(Code) | | |
CONCRETE_2 | final protected static int CONCRETE_2(Code) | | |
SIGNATURE__ARBITRARY | final protected static int SIGNATURE__ARBITRARY(Code) | | |
SIGNATURE__CONCRETE__CONCRETE | final protected static int SIGNATURE__CONCRETE__CONCRETE(Code) | | |
SIGNATURE__CONCRETE__WILDCARD | final protected static int SIGNATURE__CONCRETE__WILDCARD(Code) | | |
SIGNATURE__EMPTY | final protected static int SIGNATURE__EMPTY(Code) | | |
SIGNATURE__WILDCARD__CONCRETE | final protected static int SIGNATURE__WILDCARD__CONCRETE(Code) | | |
SIGNATURE__WILDCARD__WILDCARD | final protected static int SIGNATURE__WILDCARD__WILDCARD(Code) | | |
WILDCARD_1 | final protected static int WILDCARD_1(Code) | | |
WILDCARD_2 | final protected static int WILDCARD_2(Code) | | |
methodObj | protected transient Method methodObj(Code) | | The method to be invoked upon reaching a joinpoint,
or null if the enclosing
Crosscut defines its own adviceMethod .
|
signature | protected transient Class[] signature(Code) | | The signature of methodObj , equivalent to
methodObj.getParameterTypes() . Present
for efficiency reasons.
|
signatureCathegory | protected int signatureCathegory(Code) | | The signature cathegory of methodObj .
|
wildcardClass | protected transient Class wildcardClass(Code) | | |
getLength | protected int getLength()(Code) | | Return the number of arguments required by this advice.
|
isAssignable | protected boolean isAssignable(Class actualParameterType, Class formalParameterType) throws Error(Code) | | |
isAssignable | protected boolean isAssignable(Class[] actualParameterType, Class formalParameterType)(Code) | | |
matchesTarget | protected boolean matchesTarget(Class actualClass)(Code) | | When no advice action is set, it returns true.
If an advice action exists, it returns true
if the pattern-matching signature acepts actualClass
as a potential crosscut class.
|
|
|