| java.lang.Object xtc.tree.Utility
All known Subclasses: xtc.tree.Printer, xtc.parser.Analyzer,
Utility | abstract public class Utility (Code) | | The superclass of all utilities. A utility provides state and
functionality for visitors. Utilities are implemented as separate
classes (instead of visitors inheriting from utilities) so that the
same utility can be reused across visitors and also shared amongst
several, composed visitors.
author: Robert Grimm version: $Revision: 1.5 $ |
Constructor Summary | |
public | Utility() Create a new utility. |
Utility | public Utility()(Code) | | Create a new utility.
|
register | public void register(Visitor visitor)(Code) | | Set the visitor for this utility.
Parameters: visitor - The new visitor. |
visitor | public Visitor visitor()(Code) | | Get the visitor for this utility.
The visitor. |
|
|