|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--sjm.imperative.Command
|
+--sjm.imperative.NullCommand
This command does nothing, which can simplify coding
in some cases. For example, an "if" command with no
given "else" uses a NullCommand for its else
command.
| Constructor Summary | |
NullCommand()
|
|
| Method Summary | |
void |
execute()
Does nothing. |
java.lang.String |
toString()
Returns a string description of this null command. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public NullCommand()
| Method Detail |
public void execute()
public java.lang.String toString()
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||