|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.weaver.ShadowDummy
public class ShadowDummy
A Dummy ShadowObject interface implementation which counts how many method invocations and keeps an order. Used in some of the Compiler tests to confirm that methods are called and are called in the right order.
| Nested Class Summary | |
|---|---|
static class |
ShadowDummy.Memento
Momento class holds a snapshot of the state of the ShadowDummy class. |
| Field Summary | |
|---|---|
protected int |
getUserObject
|
| Constructor Summary | |
|---|---|
ShadowDummy()
Creates an ShadowDummy |
|
ShadowDummy(org.sourceforge.jemm.types.ID id)
Create an ShadowDummy with the given id result. |
|
| Method Summary | |
|---|---|
void |
beginLock()
|
void |
beginLock(java.lang.Object obj)
|
void |
constructionComplete(org.sourceforge.jemm.util.JEMMObject proxyClass,
org.sourceforge.jemm.util.JEMMObjectImpl proxyImpl)
|
void |
endLock()
|
void |
endLock(java.lang.Object obj)
|
void |
entityEntered()
|
void |
entityEntered(java.lang.String methodSignature)
|
void |
entityExited()
|
void |
entityExited(java.lang.String methodSignature)
|
int |
getBeginLock()
Get the call order of the last time the beginLock() method was called. |
int |
getBeginMethod()
Get the call order of the last time beginMethod() was called. |
int |
getCount()
Return the count of method calls processed. |
org.sourceforge.jemm.lifecycle.ShadowData |
getData()
|
int |
getEndLock()
Get the call order of the last time the endLock() method was called. |
int |
getEndMethod()
Get the call order of the last time the endMethod() method was called. |
int |
getGetUserObject()
Get the call order of the last time the getObject() method was called. |
org.sourceforge.jemm.types.ID |
getID()
|
org.sourceforge.jemm.util.JEMMObjectImpl |
getImpl()
|
ShadowDummy.Memento |
getMemento()
Create a Momento - a snapshot of all of the current call order values for comparison. |
org.sourceforge.jemm.util.JEMMObject |
getUserObject()
|
boolean |
hasUserObject()
|
void |
initialiseUserObject(org.sourceforge.jemm.util.JEMMObject userObject)
|
void |
reset()
Reset all of the call order counters to 0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int getUserObject
| Constructor Detail |
|---|
public ShadowDummy()
public ShadowDummy(org.sourceforge.jemm.types.ID id)
id - The id to return getId()| Method Detail |
|---|
public void beginLock()
beginLock in interface org.sourceforge.jemm.lifecycle.ShadowUserObjectpublic void entityEntered()
public void endLock()
endLock in interface org.sourceforge.jemm.lifecycle.ShadowUserObjectpublic void beginLock(java.lang.Object obj)
beginLock in interface org.sourceforge.jemm.lifecycle.ShadowUserObjectpublic void endLock(java.lang.Object obj)
endLock in interface org.sourceforge.jemm.lifecycle.ShadowUserObjectpublic void entityExited()
public boolean hasUserObject()
public void constructionComplete(org.sourceforge.jemm.util.JEMMObject proxyClass,
org.sourceforge.jemm.util.JEMMObjectImpl proxyImpl)
public org.sourceforge.jemm.util.JEMMObjectImpl getImpl()
public void entityEntered(java.lang.String methodSignature)
entityEntered in interface org.sourceforge.jemm.lifecycle.ShadowUserObjectpublic void entityExited(java.lang.String methodSignature)
entityExited in interface org.sourceforge.jemm.lifecycle.ShadowUserObjectpublic org.sourceforge.jemm.util.JEMMObject getUserObject()
getUserObject in interface org.sourceforge.jemm.lifecycle.ShadowObjectpublic org.sourceforge.jemm.types.ID getID()
getID in interface org.sourceforge.jemm.lifecycle.ShadowObjectpublic void initialiseUserObject(org.sourceforge.jemm.util.JEMMObject userObject)
public int getCount()
public int getBeginMethod()
public int getEndMethod()
public int getBeginLock()
public int getEndLock()
public int getGetUserObject()
public ShadowDummy.Memento getMemento()
public void reset()
public org.sourceforge.jemm.lifecycle.ShadowData getData()
getData in interface org.sourceforge.jemm.lifecycle.ShadowUserObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||