public abstract class CommandArgument extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
name
The name of the argument to process
|
| Constructor and Description |
|---|
CommandArgument(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
abstract void |
postExecute(Command command,
String commandLine)
Method to execute after a command is executed.
|
abstract void |
preExecute(Command command,
String commandLine)
Method to execute before an argument is processed.
|
private String name
public CommandArgument(String name)
public abstract void preExecute(Command command, String commandLine)
command - the command that is executed after all arguments are processedcommandLine - the complete command line for this commandpublic abstract void postExecute(Command command, String commandLine)
command - the command that was executed before all arguments are processedcommandLine - the complete command line for this commandpublic String getName()
Copyright © 2020. All rights reserved.