|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.util.ContextStack
public final class ContextStack
Utility class to track newly constructed object references.
Method Summary | |
---|---|
static void |
clearObject(java.lang.Object obj)
Removes all instances of the object from the top of the stack. |
static void |
clearReferences()
|
static int |
countReferences()
Counts the number of references remaining and returns the count. |
static boolean |
hasLastReference()
If only one reference remains then it is the last reference. |
static java.lang.Object |
peekReference()
|
static java.lang.Object |
popReference()
Return the last constructed reference pushed onto the constructor stack. |
static void |
pushReference(java.lang.Object ref)
Push a constructor reference onto the constructor stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void pushReference(java.lang.Object ref)
ref
- The constructed item reference.public static java.lang.Object popReference()
public static java.lang.Object peekReference()
public static void clearObject(java.lang.Object obj)
public static int countReferences()
public static void clearReferences()
public static boolean hasLastReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |