public class IfHandler extends CommandHandlerWithHelp
helpArg| Constructor and Description |
|---|
IfHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doHandle(CommandContext ctx) |
ConditionArgument |
getConditionArgument() |
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.
|
boolean |
isAvailable(CommandContext ctx)
Checks whether the command is available in the current context
(e.g.
|
displayHelp, handle, isBatchMode, printHelp, printListaddArgument, getArgument, getArguments, getArgumentsMap, recognizeArgumentspublic ConditionArgument getConditionArgument()
public boolean isAvailable(CommandContext ctx)
CommandHandlerisAvailable in interface CommandHandlerisAvailable in class CommandHandlerWithHelpctx - current contextprotected 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 © 2018 JBoss by Red Hat. All rights reserved.