org.sourceforge.jemm.weaver
Class ShadowDummy.Memento

java.lang.Object
  extended by org.sourceforge.jemm.weaver.ShadowDummy.Memento
Enclosing class:
ShadowDummy

public static class ShadowDummy.Memento
extends java.lang.Object

Momento class holds a snapshot of the state of the ShadowDummy class.


Constructor Summary
ShadowDummy.Memento(int count, int beginMethod, int endMethod, int beginLock, int endLock, int getUserObject)
          Constructs a Momento of an ShadowDummy state.
 
Method Summary
 int diffBeginLock(ShadowDummy.Memento old)
          Begin lock count difference.
 int diffBeginMethod(ShadowDummy.Memento old)
          Begin method count difference.
 int diffCount(ShadowDummy.Memento old)
          'count' difference.
 int diffEndLock(ShadowDummy.Memento old)
          End lock count difference.
 int diffEndMethod(ShadowDummy.Memento old)
          End method count difference.
 int diffGetObject(ShadowDummy.Memento old)
          getObject() method count difference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowDummy.Memento

public ShadowDummy.Memento(int count,
                           int beginMethod,
                           int endMethod,
                           int beginLock,
                           int endLock,
                           int getUserObject)
Constructs a Momento of an ShadowDummy state.

Parameters:
count - The snapshot count.
beginMethod - The snapshot beginMethod value.
endMethod - The snapshot endMethod value.
beginLock - The snapshot beginLock value.
endLock - The snapshot endLock value.
getUserObject - The snapshot getUserObject value.
Method Detail

diffCount

public int diffCount(ShadowDummy.Memento old)
'count' difference.

Parameters:
old - The previous snapshot
Returns:
The difference of 'count' of this and the previous snapshot.

diffBeginMethod

public int diffBeginMethod(ShadowDummy.Memento old)
Begin method count difference.

Parameters:
old - The previous snapshot
Returns:
The difference of begin method count of this and the previous snapshot.

diffEndMethod

public int diffEndMethod(ShadowDummy.Memento old)
End method count difference.

Parameters:
old - The previous snapshot
Returns:
The difference of end method count of this and the previous snapshot.

diffBeginLock

public int diffBeginLock(ShadowDummy.Memento old)
Begin lock count difference.

Parameters:
old - The previous snapshot
Returns:
The difference of begin lock count of this and the previous snapshot.

diffEndLock

public int diffEndLock(ShadowDummy.Memento old)
End lock count difference.

Parameters:
old - The previous snapshot
Returns:
The difference of end lock count of this and the previous snapshot.

diffGetObject

public int diffGetObject(ShadowDummy.Memento old)
getObject() method count difference.

Parameters:
old - The previous snapshot
Returns:
The difference of getObject() method count of this and the previous snapshot.


Copyright © 2009. All Rights Reserved.