public abstract class AbstractCommandLineSwitch extends Object implements CommandLineSwitch
CommandLineSwitch
es.Constructor and Description |
---|
AbstractCommandLineSwitch(Set<String> commandLineSwitches)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkConsumeSwitchArgs(String commandLineSwitch,
String[] followUpArgs)
Checks if the switch args can be consumed.
|
boolean |
supportsSwitch(String commandLineSwitch)
Indicates if this switch supports the provided String switch.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumeSwitch, getHelpText, getNumFollowUpArgs
public boolean supportsSwitch(String commandLineSwitch)
supportsSwitch
in interface CommandLineSwitch
commandLineSwitch
- the command line switchprotected void checkConsumeSwitchArgs(String commandLineSwitch, String[] followUpArgs) throws IllegalArgumentException
commandLineSwitch
- the command line switchfollowUpArgs
- the follow-up argumentsIllegalArgumentException
Copyright © 2012–2019 Drombler. All rights reserved.