private abstract static class Test.BaseOperation extends java.lang.Object implements Test.Operation
Modifier | Constructor and Description |
---|---|
private |
BaseOperation() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
parseMultipleValueOption(Test.Arguments args,
java.io.PrintWriter pw,
java.lang.String opt,
java.lang.String descr,
java.util.function.Consumer<java.lang.String> consumer)
try to parse an option with one or more values
|
protected java.lang.Integer |
parseSingleIntValueOption(Test.Arguments args,
java.io.PrintWriter pw,
java.lang.String opt,
java.lang.String descr)
try to parse a single value option, which must be an integer value
|
protected java.lang.String |
parseSingleValueOption(Test.Arguments args,
java.io.PrintWriter pw,
java.lang.String opt,
java.lang.String descr)
try to parse a single value option
|
protected void |
printRepeatedOptionError(java.io.PrintWriter pw,
java.lang.String opt)
print an error that the option may not be repeated
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, parse, printHelp
protected void printRepeatedOptionError(java.io.PrintWriter pw, java.lang.String opt)
pw
- the print writer to use for error outputopt
- the optionprotected java.lang.String parseSingleValueOption(Test.Arguments args, java.io.PrintWriter pw, java.lang.String opt, java.lang.String descr)
args
- the argumentspw
- the print writer to use for error outputopt
- the option for errorsdescr
- the description of the argument, for errorsnull
protected java.lang.Integer parseSingleIntValueOption(Test.Arguments args, java.io.PrintWriter pw, java.lang.String opt, java.lang.String descr)
args
- the argumentspw
- the print writer to use for error outputopt
- the option for errorsdescr
- the description of the argument, for errorsnull
protected boolean parseMultipleValueOption(Test.Arguments args, java.io.PrintWriter pw, java.lang.String opt, java.lang.String descr, java.util.function.Consumer<java.lang.String> consumer)
args
- the argumentspw
- the print writer to use for error outputopt
- the option for errorsdescr
- the description of the argument, for errorsconsumer
- the consumer receiving the valuestrue
if successfulCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH