|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.ejutr.logger.EBOBActionLogger
public class EBOBActionLogger
EBOBActionLogger is the class responsible for logging actions run by the Object Bench. This class will maintain a list of all objects that are interacted with using the bench, and a list of all the methods that were called, what their parameters were, and what order they were called in. Eventually it will be possible to take an instance of this class and feed it to some other object that will dump the contents to a file. Implemented as a singleton. Probably can have it clean out its vector when the plugin gets unloaded.
Method Summary | |
---|---|
void |
clearLog()
Empties the action list. |
static EBOBActionLogger |
getInstance()
Returns a handle to the shared EBOBActionLogger instance. |
java.util.Iterator |
iterator()
Returns an iterator through the list of additions/removals/method calls. |
EJUTRLogEntry |
lastEntry()
Returns the last element added to the list. |
void |
logAssertion(java.lang.String lhs,
java.lang.String comp,
java.lang.String rhs,
boolean res)
Method responsible for logging an assertion. |
void |
logMethodCall(java.lang.String instanceName,
java.lang.String methodName,
java.lang.String paramSignature,
java.lang.String retType)
Method responsible for logging method calls. |
void |
logObjectAddition(java.lang.String objName,
java.lang.String instanceName)
Method responsible for logging the creation of new objects on the bench. |
void |
logObjectRemoval(java.lang.String objName,
java.lang.String instanceName)
Method responsible for logging the removal of objects from the bench. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EBOBActionLogger getInstance()
public void logMethodCall(java.lang.String instanceName, java.lang.String methodName, java.lang.String paramSignature, java.lang.String retType)
instanceName
- name of the instance of the calling objectmethodname
- name of the method that was actually calledretType
- return type of the method callpublic void logObjectAddition(java.lang.String objName, java.lang.String instanceName)
objName
- the fully qualified name of the object.instanceName
- the instance name of the object.public void logObjectRemoval(java.lang.String objName, java.lang.String instanceName)
objName
- instanceName
- public void logAssertion(java.lang.String lhs, java.lang.String comp, java.lang.String rhs, boolean res)
lhs
- left hand side of the boolean comparisoncomp
- the comparison portion of the assertionrhs
- the right hand side of the boolean comparisonres
- the expected result of the assertion.public java.util.Iterator iterator()
public void clearLog()
public EJUTRLogEntry lastEntry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |