up
Class ParserHandler

java.lang.Object
  extended by up.DefaultTreeHandler
      extended by up.ParserHandler
All Implemented Interfaces:
TreeHandler

public class ParserHandler
extends DefaultTreeHandler

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

ParserHandler

public ParserHandler(Grammar grammar)
Constructs a new handler based on the specified grammar.

Parameters:
grammar - the grammar to be used for parsing
Method Detail

next

public void next(Tree tree)
Description copied from class: DefaultTreeHandler
Notifies the successor of this handler about the specified tree.

Specified by:
next in interface TreeHandler
Overrides:
next in class DefaultTreeHandler
Parameters:
tree - the tree about which the successor of this handler is to be notified

exit

public void exit()
Description copied from class: DefaultTreeHandler
Notifies the successor of this handler about the end of the stream.

Specified by:
exit in interface TreeHandler
Overrides:
exit in class DefaultTreeHandler