|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.DefaultTreeHandler
up.TreeCounter
public class TreeCounter
A counter for trees.
Constructor Summary | |
---|---|
TreeCounter()
Constructs a new counter that reports the current count after each 1000 trees. |
|
TreeCounter(int interval)
Constructs a new counter. |
Method Summary | |
---|---|
void |
exit()
Notifies the successor of this handler about the end of the stream. |
void |
init()
Notifies the successor of this handler about the start of the stream. |
void |
next(Tree tree)
Notifies the successor of this handler about the specified tree. |
Methods inherited from class up.DefaultTreeHandler |
---|
getSuccessor, setSuccessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeCounter(int interval)
interval
- the interval at which the current count is reportedpublic TreeCounter()
Method Detail |
---|
public void init()
DefaultTreeHandler
init
in interface TreeHandler
init
in class DefaultTreeHandler
public void next(Tree tree)
DefaultTreeHandler
next
in interface TreeHandler
next
in class DefaultTreeHandler
tree
- the tree about which the successor of this handler is to be
notifiedpublic void exit()
DefaultTreeHandler
exit
in interface TreeHandler
exit
in class DefaultTreeHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |