public class FlaggedOptionConfiguration extends OptionConfiguration
JSAPAntTask
,
FlaggedOption
Constructor and Description |
---|
FlaggedOptionConfiguration()
Creates a new FlaggedOptionConfiguration.
|
Modifier and Type | Method and Description |
---|---|
void |
createMethod(String methodName,
PrintStream out)
Creates source code for a java method that will instantiate a
FlaggedOption matching this
configuration.
|
String |
getLongflag()
Returns the long flag for this option.
|
Parameter |
getParameter()
Returns a FlaggedOption preconfigured according to this configuration.
|
char |
getShortflag()
Returns the short flag for this option.
|
void |
setAllowmultipledeclarations(boolean allowMultipleDeclarations)
Specifies whether this option can be declared multiple times on the same
command line.
|
void |
setLongflag(String longFlag)
Sets the long flag for this option.
|
void |
setShortflag(char shortFlag)
Sets the short flag for this option.
|
addConfiguredProperty, createParentStatements, declaredListSeparator, getIslist, getListseparator, getParserProperties, getRequired, getStringparser, hasProperties, setIslist, setListseparator, setRequired, setStringparser, setupStringParser
addConfiguredDefault, getDefaults, getId, setDefault, setId
public FlaggedOptionConfiguration()
public void setShortflag(char shortFlag)
shortFlag
- the short flag for this option.public char getShortflag()
public void setLongflag(String longFlag)
longFlag
- the long flag for this option.public String getLongflag()
public void setAllowmultipledeclarations(boolean allowMultipleDeclarations)
allowMultipleDeclarations
- if true, this option can be declared
multiple times on the same
command line.public Parameter getParameter()
getParameter
in class ParameterConfiguration
public void createMethod(String methodName, PrintStream out)
createMethod
in class ParameterConfiguration
methodName
- the name of the method to createout
- the PrintStream to which the java source for the method
should be written.Copyright © 2016. All rights reserved.