public class TryHandler extends CommandHandlerWithHelp
helpArg
Constructor and Description |
---|
TryHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandle(CommandContext ctx) |
boolean |
isAvailable(CommandContext ctx)
Checks whether the command is available in the current context
(e.g.
|
handle, isBatchMode, printHelp, printList
addArgument, getArgument, getArguments, hasArgument, hasArgument, recognizeArguments
public boolean isAvailable(CommandContext ctx)
CommandHandler
isAvailable
in interface CommandHandler
isAvailable
in class CommandHandlerWithHelp
ctx
- current contextprotected void doHandle(CommandContext ctx) throws CommandLineException
doHandle
in class CommandHandlerWithHelp
CommandLineException
Copyright © 2023 JBoss by Red Hat. All rights reserved.