|
GUI Commands 2.0 has arrived!
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pietschy.command.AbstractVisitor
public abstract class AbstractVisitor
AbstractVisitor provides a default implementation of GroupVisitor that predefines
a number of visitation modes by providing a default implementation of conditionallyVisitChildren(org.pietschy.command.CommandGroup).
The available modes are as follows.
| Nested Class Summary | |
|---|---|
static class |
AbstractVisitor.VisitMode
|
| Field Summary | |
|---|---|
static AbstractVisitor.VisitMode |
DEEP
The visitor traverse the entire graph of commands under the top level group. |
protected AbstractVisitor.VisitMode |
mode
The mode in which the visitor should operate. |
static AbstractVisitor.VisitMode |
SHALLOW
The visitor will visit the immediate children only (including inline children). |
| Constructor Summary | |
|---|---|
AbstractVisitor(AbstractVisitor.VisitMode mode)
Constructs a new Abstract visitor using the specified visitation mode. |
|
| Method Summary | |
|---|---|
void |
conditionallyVisitChildren(CommandGroup group)
|
protected boolean |
isParentGroup(CommandGroup group)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pietschy.command.GroupVisitor |
|---|
visit, visit |
| Field Detail |
|---|
public static final AbstractVisitor.VisitMode SHALLOW
public static final AbstractVisitor.VisitMode DEEP
protected AbstractVisitor.VisitMode mode
| Constructor Detail |
|---|
public AbstractVisitor(AbstractVisitor.VisitMode mode)
mode - the AbstractVisitor.VisitMode the visitor should use.| Method Detail |
|---|
public void conditionallyVisitChildren(CommandGroup group)
protected boolean isParentGroup(CommandGroup group)
|
GUI Commands 2.0 has arrived!
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||