Package | Description |
---|---|
model | |
visitors | |
visitors.impl |
Modifier and Type | Method and Description |
---|---|
private IVisitor |
VisitorDemoModel.loadVisitor(java.lang.String classname)
Utility method to load a visitor given its classname, without the leading "visitors.impl.".
|
Modifier and Type | Field and Description |
---|---|
static IVisitor |
IVisitor.NULL_VISITOR
A null visitor, used when no visitor is yet defined.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
IHost.execute(IVisitor algo,
java.lang.Object... params)
Execute the given visitor, passing the given parameters and returning the result
|
java.lang.Object |
HostC.execute(IVisitor algo,
java.lang.Object... params) |
java.lang.Object |
HostB.execute(IVisitor algo,
java.lang.Object... params) |
java.lang.Object |
HostA.execute(IVisitor algo,
java.lang.Object... params) |
Modifier and Type | Class and Description |
---|---|
class |
Visitor1
A visitor that returns a String that says "This is the result from HostX,
where HostX is the type of the IHost object executing this visitor.
|
class |
Visitor2
A visitor that sets the paint cmd in the VisitorDemoModel to a cmd that draws various shapes.
|