Changes for try/catch handling

This commit is contained in:
rogerl@netscape.com
1999-04-16 02:54:56 +00:00
parent 4d9b383818
commit 500afc1787
5 changed files with 120 additions and 10 deletions
+17 -1
View File
@@ -13,13 +13,29 @@ class PostorderNodeIterator {
start = n;
}
Node peekParent()
{
if (stack.isEmpty())
return null;
else
return (Node)stack.peek();
}
void pop()
{
if (stack.isEmpty())
current = null;
else
current = (Node)stack.pop();
}
Node nextNode()
{
if (current == null)
return current = start;
if (stack.isEmpty())
return null;
return current = null;
else {
current = current.next;
if (current != null) {