|
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
This abstract class represents a hierarchy of classes that encapsulate commands. A command object is a request that is dormant until a caller asks it to execute.
Subclasses typically encapsulate some primary function,
and allow for parameters that tailor a command to a
purpose. All subclasses must implement an execute
command, which is abstract here.
| Constructor Summary | |
Command()
|
|
| Method Summary | |
abstract void |
execute()
Perform the request encapsulated in this command. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Command()
| Method Detail |
public abstract void execute()
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||