|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.DefaultTreeHandler
up.ParserHandler
public class ParserHandler
Parse the yields of a stream of trees.
Constructor Summary | |
---|---|
ParserHandler(Grammar grammar)
Constructs a new handler based on the specified grammar. |
Method Summary | |
---|---|
void |
exit()
Notifies the successor of this handler about the end of the stream. |
void |
next(Tree tree)
Notifies the successor of this handler about the specified tree. |
Methods inherited from class up.DefaultTreeHandler |
---|
getSuccessor, init, setSuccessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParserHandler(Grammar grammar)
grammar
- the grammar to be used for parsingMethod Detail |
---|
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 |