public class IfHandler extends CommandHandlerWithHelp
helpArg| Constructor and Description |
|---|
IfHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doHandle(CommandContext ctx) |
boolean |
hasArgument(CommandContext ctx,
int index)
It has to accept everything since we don't know what kind of command will be edited.
|
boolean |
hasArgument(CommandContext ctx,
String name)
Checks whether the command handler recognizes the argument by the name.
|
handle, isAvailable, isBatchMode, printHelp, printListaddArgument, getArgument, getArguments, recognizeArgumentsprotected void doHandle(CommandContext ctx) throws CommandLineException
doHandle in class CommandHandlerWithHelpCommandLineExceptionpublic boolean hasArgument(CommandContext ctx, int index)
hasArgument in interface CommandHandlerhasArgument in class CommandHandlerWithArgumentsctx - the current contextindex - argument index to checkpublic boolean hasArgument(CommandContext ctx, String name)
CommandHandlerhasArgument in interface CommandHandlerhasArgument in class CommandHandlerWithArgumentsctx - the current contextname - argument name to checkCopyright © 2014 JBoss by Red Hat. All rights reserved.