public abstract class CommandOption extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandOption.Boolean |
static class |
CommandOption.Double |
static class |
CommandOption.DoubleArray |
static class |
CommandOption.File |
static class |
CommandOption.Integer |
static class |
CommandOption.IntegerArray |
static class |
CommandOption.List |
static interface |
CommandOption.ListProviding
For objects that can provide CommandOption.List's (which can be merged into other lists.
|
static class |
CommandOption.Object |
static class |
CommandOption.Set |
static class |
CommandOption.SpacedStrings |
static class |
CommandOption.String |
| Constructor and Description |
|---|
CommandOption(Class owner,
String name,
String argName,
Class argType,
boolean argRequired,
String shortdoc) |
CommandOption(Class owner,
String name,
String argName,
Class argType,
boolean argRequired,
String shortdoc,
String longdoc) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
defaultValueToString() |
String |
getFullName() |
static BshInterpreter |
getInterpreter() |
static CommandOption.List |
getList(Class owner) |
void |
parseArg(String arg) |
int |
parseArg(String[] args,
int argi)
Called after this CommandOption matches an argument.
|
void |
postParsing(CommandOption.List list)
To be overridden by subclasses;
"list" is the the CommandOption.List that called this option
|
static String[] |
process(Class owner,
String[] args) |
int |
process(String[] args,
int argi)
Give this CommandOption the opportunity to process the argi'th argument in args.
|
static void |
setSummary(Class owner,
String summary) |
abstract String |
valueToString() |
boolean |
wasInvoked()
Return true is this CommandOption was matched by one of the processed arguments.
|
public CommandOption(Class owner, String name, String argName, Class argType, boolean argRequired, String shortdoc, String longdoc)
public int process(String[] args, int argi)
public static BshInterpreter getInterpreter()
public static CommandOption.List getList(Class owner)
public String getFullName()
public abstract String defaultValueToString()
public abstract String valueToString()
public boolean wasInvoked()
public int parseArg(String[] args, int argi)
public void parseArg(String arg)
public void postParsing(CommandOption.List list)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.