|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Utility
public abstract class Utility
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.
| Constructor Summary | |
|---|---|
Utility()
Create a new utility. |
|
| Method Summary | |
|---|---|
void |
register(Visitor visitor)
Set the visitor for this utility. |
Visitor |
visitor()
Get the visitor for this utility. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utility()
| Method Detail |
|---|
public void register(Visitor visitor)
visitor - The new visitor.public Visitor visitor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||