up
Class TransformerHandler

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

public class TransformerHandler
extends DefaultTreeHandler

Sends the next tree through a chain of tree transformers.


Constructor Summary
TransformerHandler(TreeTransformer transformer)
          Constructs a new handler with the specified transformer.
 
Method Summary
 void next(Tree tree)
          Transforms the specified tree and sends it to the next handler in the chain.
 
Methods inherited from class up.DefaultTreeHandler
exit, getSuccessor, init, setSuccessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformerHandler

public TransformerHandler(TreeTransformer transformer)
Constructs a new handler with the specified transformer.

Parameters:
transformer - the tree transformer to be applied to the trees in the stream
Method Detail

next

public void next(Tree tree)
Transforms the specified tree and sends it to the next handler in the chain.

Specified by:
next in interface TreeHandler
Overrides:
next in class DefaultTreeHandler
Parameters:
tree - the next tree in the stream