|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.lang.Thread
patterntesting.runtime.log.AbstractLogger
patterntesting.runtime.log.SequenceGrapher
public class SequenceGrapher
This class supports the creation of simple sequence diagrams as desribed in the user manual of UML Graph.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
SequenceGrapher()
Instantiates a new SequenceGrapher. |
|
SequenceGrapher(File logFile)
Instantiates a new SequenceGrapher. |
|
SequenceGrapher(File logFile,
String resource)
Instantiates a new sequence grapher. |
|
SequenceGrapher(OutputStream ostream)
Instantiates a new object logger to the given stream. |
|
SequenceGrapher(OutputStream ostream,
String resource)
/** Instantiates a new sequence grapher. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the stream with the logged objects. |
void |
createMessage(JoinPoint call,
Object result)
Logs the creation of an object in the created sequence diagram. |
void |
createMessage(Object creator,
Object createdObject)
Logs the creation of an object in the created sequence diagram. |
void |
execute(JoinPoint execution)
Trys to log the call of the given excecution joinpoint. |
void |
message(JoinPoint call)
Logs the call of a method to the generated sequence diagram. |
void |
message(Object caller,
JoinPoint call)
Logs the call of a method to the generated sequence diagram. |
void |
message(Object sender,
Object target,
String methodName,
Object[] args)
Logs the call of a method to the generated sequence diagram. |
void |
returnMessage(JoinPoint call)
Logs the return arrow from the last call to the generated sequence diagram. |
void |
returnMessage(JoinPoint call,
Object returnValue)
Logs the return arrow from the last call to the generated sequence diagram. |
void |
returnMessage(Object returnee,
Object returnValue)
Return message. |
void |
run()
This method is called at shutdown to close the open writer. |
void |
setExcludeFilter(String[] pattern)
Sets the exclude filter. |
| Methods inherited from class patterntesting.runtime.log.AbstractLogger |
|---|
createTempLogFile, getLogStream, getStreamFor, toString |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceGrapher()
public SequenceGrapher(File logFile)
logFile - the log file
public SequenceGrapher(File logFile,
String resource)
"seq-head.template" (default): default header with with
needed "sequence.pic" and comments inside"seq-head-small.template": a sort header with copy
instruction for the needed "sequence.pic" and without any
comments.
logFile - the log fileresource - the resource ("seq-head.template" or "seq-head-small")public SequenceGrapher(OutputStream ostream)
ostream - the ostream
public SequenceGrapher(OutputStream ostream,
String resource)
"seq-head.template" (default): default header with with
needed "sequence.pic" and comments inside"seq-head-small.template": a sort header with copy
instruction for the needed "sequence.pic" and without any
comments.
ostream - the ostreamresource - the resource ("seq-head.template" or "seq-head-small")| Method Detail |
|---|
public void setExcludeFilter(String[] pattern)
pattern - the new exclude filterpublic void run()
run in interface Runnablerun in class AbstractLoggerThread.run()public void close()
close in class AbstractLogger
public void createMessage(JoinPoint call,
Object result)
call - the callresult - the created object
public void createMessage(Object creator,
Object createdObject)
creator - the creatorcreatedObject - the created objectpublic void execute(JoinPoint execution)
execution - the execution joinpointpublic void message(JoinPoint call)
call - the call
public void message(Object caller,
JoinPoint call)
caller - the callercall - the call
public void message(Object sender,
Object target,
String methodName,
Object[] args)
sender - the sendertarget - the targetmethodName - the method nameargs - the argspublic void returnMessage(JoinPoint call)
call - the call
public void returnMessage(JoinPoint call,
Object returnValue)
call - the callreturnValue - the return value
public void returnMessage(Object returnee,
Object returnValue)
returnee - the returneereturnValue - the return value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||