|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.DefaultTreeHandler
public class DefaultTreeHandler
Default implementation of the
TreeHandler
interface. This implementation provides
functionality to build simple pipes of tree handlers, where a given handler
can pass on notifications to its successor in the pipe.
Constructor Summary | |
---|---|
DefaultTreeHandler()
Constructs a new handler with no successor. |
|
DefaultTreeHandler(TreeHandler successor)
Constructs a new handler with the specified successor. |
Method Summary | |
---|---|
void |
exit()
Notifies the successor of this handler about the end of the stream. |
TreeHandler |
getSuccessor()
Returns the successor of this handler. |
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. |
void |
setSuccessor(TreeHandler handler)
Replaces the successor of this handler with the specified handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTreeHandler(TreeHandler successor)
successor
- the successor of this handlerpublic DefaultTreeHandler()
Method Detail |
---|
public TreeHandler getSuccessor()
public void setSuccessor(TreeHandler handler)
handler
- the new successor of this handlerpublic void init()
init
in interface TreeHandler
public void next(Tree tree)
next
in interface TreeHandler
tree
- the tree about which the successor of this handler is to be
notifiedpublic void exit()
exit
in interface TreeHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |