|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectovm.polyd.runemu.RunaboutQuick
public class RunaboutQuick
A Runabout emulation that uses PolyD factories to speed up the construction of new dispatchers. In order to take advantage of this emulation, the code of existing programs that use the Runabout neeeds to be slightly altered as follows:
public class Xyz extends RunaboutQuick {
private static ovm.polyd.Factory fact=Runabout.prepare(Xyz.class);
public Xyz() {
super();
fact.getDispatcher1(this);
}
...visit() methods...
}
Field Summary | |
---|---|
RunaboutBase2 |
the$$$Dispatcher
Internal use only. |
Method Summary | |
---|---|
static Factory |
prepare(java.lang.Class c)
Prepares a new Factory , in order to create dispatchers
that use RunaboutQuick . |
void |
visit(java.lang.Object o)
A "catch-all" visit method. |
void |
visitAppropriate(java.lang.Object obj)
The bridge method that performs the actual dispatching, calling the appropriate visit for this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public RunaboutBase2 the$$$Dispatcher
Method Detail |
---|
public static Factory prepare(java.lang.Class c)
Factory
, in order to create dispatchers
that use RunaboutQuick
.
c
- the desired subclass of RunaboutQuick
Factory
.public void visit(java.lang.Object o)
visit
method. It will
not further redispatch the message.
o
- the object that should be visitedpublic void visitAppropriate(java.lang.Object obj)
visit
for this object.
obj
- the object that should be visited
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |