public class Options
extends <any>
Options()
.
#parse(String[],MessageReceiver)
has_[X]()
. get_[X]_[n]()
. get_[X]_[n](k)
. If anything went wrong in parsing, errors
have been sent to the MessageReceiver
.
Then further analysis methods can be applied (#getParsingProtocol()
, #getMissingOptions()
, #usage()
, etc.)
For further details. please see the
documentation of the methods inherited from the superclass Model
and the option
compiler's user documentation.
Here is the source text.
There have been description texts only in one language, namely en.
The usage()
method will show this screen:
====== USAGE: ====== -d / --destination uri(=".") file system directory which is the root of the class file hierarchy -0 / --sourcefile ( uri(="") )* source file containing the model declaration -V / --version (bool)?(=true iff present) give version information
Modifier and Type | Class and Description |
---|---|
class |
Options.Descriptions
Programmatically generated catalog of translations.
|
class |
Options.Values_sourcefile
One instance realizes one repeated argument group of option
sourcefile . |
Modifier and Type | Field and Description |
---|---|
protected boolean |
has_destination |
protected boolean |
has_sourcefile |
protected boolean |
has_version |
protected List<Options.Values_sourcefile> |
repvalues_sourcefile |
Function<Options.Values_sourcefile,String> |
serialize_sourcefile |
protected String |
value_destination_0 |
protected boolean |
value_version_0 |
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
protected void |
_finalCheck() |
String |
_getMissingOptions() |
String |
_getRedundantOptions() |
protected void |
checkActive() |
String |
get_destination_0()
Getter method for the only argument of option
destination . |
String |
get_sourcefile_0(int index)
Getter method for the only repeated argument of option
sourcefile . |
List<Options.Values_sourcefile> |
get_sourcefile()
Getter method for all repetition groups of option
sourcefile . |
boolean |
get_version_0()
Getter method for the only argument of option
version . |
boolean |
has_destination()
Deprecated.
|
boolean |
has_sourcefile()
Deprecated.
|
boolean |
has_version()
Deprecated.
|
Options |
makeDefaultInstance() |
protected int |
numberOfPositionals() |
protected void |
parseAbbrev(String select) |
protected void |
parseName(String select) |
protected void |
parsePositionals() |
String |
serialize() |
void |
usage_en()
Print usage information in the language 'en' on System.err.
|
void |
usage_en(PrintStream pr)
Print usage information in the language 'en'.
|
void |
usage(PrintStream pr)
Print usage information in the default language.
|
void |
usage(PrintStream pr,
String lang)
Print usage information in the requested language.
|
protected boolean has_destination
protected String value_destination_0
protected boolean has_sourcefile
protected List<Options.Values_sourcefile> repvalues_sourcefile
public final Function<Options.Values_sourcefile,String> serialize_sourcefile
protected boolean has_version
protected boolean value_version_0
public Options makeDefaultInstance()
protected void checkActive()
@Deprecated public boolean has_destination()
get_destination_0()
.public String get_destination_0()
destination
.
-d / --destination uri(=".")
@Deprecated public boolean has_sourcefile()
get_sourcefile()
.public List<Options.Values_sourcefile> get_sourcefile()
sourcefile
.
-0 / --sourcefile ( uri(="") )*
public String get_sourcefile_0(int index)
sourcefile
.
For details of this option see the method get_sourcefile()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_version()
get_version_0()
.public boolean get_version_0()
version
.
-V / --version (bool)?(=true iff present)
public String serialize()
public void usage(PrintStream pr)
public void usage(PrintStream pr, String lang)
public void usage_en()
public void usage_en(PrintStream pr)
protected void parseAbbrev(String select)
protected void parseName(String select)
protected int numberOfPositionals()
protected void parsePositionals()
protected void _finalCheck()
public String _getMissingOptions()
public String _getRedundantOptions()
see also the complete user documentation .