aspoev.primitive
Class AroundPrimitive
java.lang.Object
aspoev.primitive.StaticPrimitive
aspoev.primitive.RuntimePrimitive
aspoev.primitive.AroundPrimitive
- All Implemented Interfaces:
- aspoev.Executable, MemberElement, pJ.jasmine.PRI, java.io.Serializable
- public class AroundPrimitive
- extends RuntimePrimitive
- implements pJ.jasmine.PRI
This class is a piece of meta around advice. It has two parts,
'before proceed' and 'after proceed' advice. If the underlying join
point is to be executed, the method 'proceed()' (with no arguments)
must be called in the before proceed advice. The value returned
from the 'around' advice must be stored in the variable
'proceed'. If this around advice is going to call 'proceed', it
must be done in the 'beforeProceed' statement. The result can be
referenced by the 'afterProceed' statement as the variable
'proceed'.
An around primitive is essntially a Runtime Primitive extended to
contain another Vejal block for post-proceed advice. Around
primitives are declared in the command line environment as follows:
around () {
... // Valid Vejal syntax for execution before 'proceed()'
... // ('proceed()' must come here, if at all)
}
{
... // Valid Vejal syntax for execution after 'proceed()'
}
- See Also:
RuntimePrimitive,
Serialized Form
| Fields inherited from interface pJ.jasmine.PRI |
DELETECHANGE, MODIFYCHANGE, NOCHANGE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
beforeProceed
protected StatementElement beforeProceed
afterProceed
protected StatementElement afterProceed
AroundPrimitive
public AroundPrimitive(StatementElement beforeProceed,
StatementElement afterProceed)
AroundPrimitive
public AroundPrimitive(StatementElement beforeProceed,
StatementElement afterProceed,
java.util.List bindingNames)
executeBeforeProceed
public void executeBeforeProceed()
- Execute the 'before proceed' Vejal block.
executeAfterProceed
public void executeAfterProceed()
- Execute the 'after proceed' Vejal block.
getAfterProceedAction
public StatementElement getAfterProceedAction()
- Returns the 'after proceed' advice.
getBeforeProceedAction
public StatementElement getBeforeProceedAction()
- Returns the 'before proceed' advice.
toString
public java.lang.String toString()
- Overrides:
toString in class RuntimePrimitive