| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Collection | |
| public void | |
| public void | |
| public void | |
| public void | |
| public MethodMonitorFactory | factory()
Factory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor. |
| public void | info(Object[]
Any information needed in the info call. args, int The identifier of the method calling the InfoMethod. callerIdent, int The identifier of the InfoMethod itself. selfIdent)Invoked anywhere in the method after enter and before exit, to indicate some useful tracing information in the method. |
| public Class | Returns: The class of this MethodMonitor.The class for which this MethodMonitor is defined. |
| public String |
| clear | back to summary |
|---|---|
| public void clear() Provided for MethodMonitor instances that maintain state. Simply removes the state and resets the MethodMonitor to its initial state. | |
| contents | back to summary |
|---|---|
| public Collection Returns the contents of this method monitor. If it is a composite method monitor, all the component MethoMonitor instances are returned. If it is a single MethodMonitor, it just returns itself. It is required that a composite method monitor only return MethodMonitor instances which are not themselves composite. | |
| enter | back to summary |
|---|---|
| public void enter(int ident, Object... args) Invoked at the start of a method, before any actions in the method take place.
| |
| exception | back to summary |
|---|---|
| public void exception(int ident, Throwable thr) Called to report an exception that is thrown in the method. If the method throws and catches the exception, it will still be reported.
| |
| exit | back to summary |
|---|---|
| public void exit(int ident) An exit from a method that has a void return type. Called as the last operation in the method.
| |
| exit | back to summary |
|---|---|
| public void exit(int ident, Object result) An exit from a method that has a non-void return type. Called as the last operation in the method. result will be null if the method terminates by throwing an exception.
| |
| factory | back to summary |
|---|---|
| public MethodMonitorFactory factory() Factory used to create this MethodMonitor Note: is is required that this.factory().create(myClass()).equals( this ) for any MethodMonitor. | |
| info | back to summary |
|---|---|
| public void info(Object[] args, int callerIdent, int selfIdent) Invoked anywhere in the method after enter and before exit, to indicate some useful tracing information in the method.
| |
| myClass | back to summary |
|---|---|
| public Class The class for which this MethodMonitor is defined.
| |
| name | back to summary |
|---|---|
| public String name() | |