public class MlwOptions extends Model<MlwOptions>
MlwOptions()
.
Model.parse(String[],MessageReceiver,String)
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 (Model.getParsingProtocol()
, Model.getMissingOptions()
, Model.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.
The usage()
method will show this screen:
====== USAGE: ====== -0 / --inputfile uri(="") text file in tscore format to process -1 / --outputfile uri(="") uri(="") uri(="") output text file templates for TeX/musixTeX sources, scale format, then fifths format, then survey table
Modifier and Type | Class and Description |
---|---|
class |
MlwOptions.Descriptions
Programmatically generated catalog of translations.
|
Model.ExcDuplicate, Model.ExcEndOfRepet, Model.ExcNoData, Model.ExcNoData_allowed, Model.ExcSkipReachesEnd, Model.ExcUnknownOpt, Model.ExcWrongType, Model.Pre20220613, Model.SeemsToWorkForLinuxAndSomeWindowsVersions20220613
Modifier and Type | Field and Description |
---|---|
protected boolean |
has_inputfile |
protected boolean |
has_outputfile |
protected String |
value_inputfile_0 |
protected String |
value_outputfile_0 |
protected String |
value_outputfile_1 |
protected String |
value_outputfile_2 |
curArg, curArgGroup, curOption, currentErrorPos, descriptions, dummyRat, hasNonMetaOptions, inputlength, inputstring, matcher, messages, msg, nextToken, optionDirector, p_rest, positionalPhase, positionalsExplicit, positionalsFound, protocol, shellAdapter
Constructor and Description |
---|
MlwOptions() |
Modifier and Type | Method and Description |
---|---|
protected void |
_finalCheck()
Callback, overridden by compiled code.
|
String |
_getMissingOptions()
Is overridden in the generated code and concatenates the "longest names"
of all otions marked as required, but not present in the parsed input.
|
String |
_getRedundantOptions()
Callback, overridden by compiled code.
|
protected void |
checkActive()
The generated code will evaluate all conditions to activate/deactive
options in the GUI.
|
String |
get_inputfile_0()
Getter method for the only argument of option
inputfile . |
String |
get_outputfile_0()
Getter method for the 0th argument of option
outputfile . |
String |
get_outputfile_1()
Getter method for the 1st argument of option
outputfile . |
String |
get_outputfile_2()
Getter method for the 2nd argument of option
outputfile . |
boolean |
has_inputfile()
Deprecated.
|
boolean |
has_outputfile()
Deprecated.
|
MlwOptions |
makeDefaultInstance()
Overriden by the generated code to make a constructor call of the actual
Model (sub-)class.
|
protected int |
numberOfPositionals()
The generated code will return the number of positional parameters.
|
protected void |
parseAbbrev(String select)
Callback, overridden by compiled code, which realizes a switch over all one character
option names.
|
protected void |
parseName(String select)
Callback, overridden by compiled code, which realizes a switch over all long
option names.
|
protected void |
parsePositionals()
Callback, overridden by compiled code, which calls one after the other
the positional parameters.
|
String |
serialize()
Called to generate a String representation of the model's state.
|
void |
usage_de()
Print usage information in the language 'de' on System.err.
|
void |
usage_de(PrintStream pr)
Print usage information in the language 'de'.
|
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.
|
ARG_ERROR, ARG_ERROR, canReenterRepetitionGroup, convert_integer_10_or_16, descriptionKeyForCommentField, descriptionKeyForEnum, descriptionKeyForEnum, descriptionKeyForEnumItem, ERROR_plus, ERROR_UNKNOWN_ABBREV, ERROR_UNKNOWN_NAME, ERROR, getInputString, getMissingOptions, getNextToken_required, getNextToken, getParsingProtocol, HINT, INSITU, parse, parseBool_optional, parseBool, parseBoolTest, parseEnum, parseEnumSet, parseFloat, parseInit, parseInt_16or10, parseInt, parseOneString, parseOneString, parseOneUri, parseRational, parseString, putprot_option, putprot, serialize_hex, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize, skipToOption, type_error, TYPE_MISMATCH, TYPE_MISMATCH, usage, usage, WARNING
protected boolean has_inputfile
protected String value_inputfile_0
protected boolean has_outputfile
protected String value_outputfile_0
protected String value_outputfile_1
protected String value_outputfile_2
public MlwOptions makeDefaultInstance()
eu.bandm.tools.option.runtime.Model
makeDefaultInstance
in class Model<MlwOptions>
protected void checkActive()
eu.bandm.tools.option.runtime.Model
checkActive
in class Model<MlwOptions>
@Deprecated public boolean has_inputfile()
get_inputfile_0()
.public String get_inputfile_0()
inputfile
.
-0 / --inputfile uri(="")
@Deprecated public boolean has_outputfile()
get_outputfile_0()
.public String get_outputfile_0()
outputfile
.
-1 / --outputfile uri(="") uri(="") uri(="")The other arguments of this option are accessed by the method(s) starting with
get_outputfile..
.public String get_outputfile_1()
outputfile
.
For details of this option see the method get_outputfile_0()
.public String get_outputfile_2()
outputfile
.
For details of this option see the method get_outputfile_0()
.public String serialize()
eu.bandm.tools.option.runtime.Model
serialize
in class Model<MlwOptions>
public void usage(PrintStream pr)
usage
in class Model<MlwOptions>
public void usage(PrintStream pr, String lang)
usage
in class Model<MlwOptions>
public void usage_de()
public void usage_de(PrintStream pr)
public void usage_en()
public void usage_en(PrintStream pr)
protected void parseAbbrev(String select)
eu.bandm.tools.option.runtime.Model
parseAbbrev
in class Model<MlwOptions>
select
- the one-character option name, as parsed by this code.protected void parseName(String select)
eu.bandm.tools.option.runtime.Model
parseName
in class Model<MlwOptions>
select
- the multi-character option name, as parsed by this code.protected int numberOfPositionals()
eu.bandm.tools.option.runtime.Model
numberOfPositionals
in class Model<MlwOptions>
protected void parsePositionals()
eu.bandm.tools.option.runtime.Model
parsePositionals
in class Model<MlwOptions>
protected void _finalCheck()
eu.bandm.tools.option.runtime.Model
_finalCheck
in class Model<MlwOptions>
public String _getMissingOptions()
eu.bandm.tools.option.runtime.Model
_getMissingOptions
in class Model<MlwOptions>
public String _getRedundantOptions()
eu.bandm.tools.option.runtime.Model
_getRedundantOptions
in class Model<MlwOptions>