| |
|
| ch.ethz.prose.crosscut.Crosscut ch.ethz.prose.crosscut.AbstractCrosscut ch.ethz.prose.crosscut.ThrowCut
ThrowCut | abstract public class ThrowCut extends AbstractCrosscut implements java.io.Serializable(Code) | | Class ThrowCut is a crosscut which cuts exception throws
The advice method is THROW_ARGS . The
only argument of THROW_ARGS is the thrown exception (or none).
The join-point
where the advice method is executted depend on:
- the signature of
THROW_ARGS
- the value returned by
pointCutter .
Within an advice method, the thisJoinPoint() method
can be called to obtain a reference to the currently executing
join-point.
version: $Revision: 1.2 $ author: Andrei Popovici |
Constructor Summary | |
protected | ThrowCut() |
ThrowCut | protected ThrowCut()(Code) | | Constructor
|
THROW_ARGS | public void THROW_ARGS()(Code) | | This method must be defined by subclasses. It will be called
each time one of the selected exceptions is thrown.
|
doCreateRequest | protected CrosscutRequest doCreateRequest(Class cls)(Code) | | Create a new CrosscutRequest consisting of ExceptionThrowRequests
for each thrown exception in each method declared in class cls .
Only one ExceptionThrowRequest per exception class is
generated for a specific ThrowCut.
|
insertionAction | public void insertionAction(boolean isBeforeInsertion)(Code) | | |
isPotentialCrosscutClass | protected boolean isPotentialCrosscutClass(Class c)(Code) | | Only a class of supertype 'Throwable' is a potential Exception Crosscut Class
|
|
|
|