public class UnflaggedOptionConfiguration extends OptionConfiguration
JSAPAntTask
,
UnflaggedOption
Constructor and Description |
---|
UnflaggedOptionConfiguration()
Creates a new UnflaggedOptionConfiguration.
|
Modifier and Type | Method and Description |
---|---|
void |
createMethod(String methodName,
PrintStream out)
Creates java source code for a method that instantiates an
UnflaggedOption and
configures it according to this configuration.
|
boolean |
getGreedy()
Returns a boolean indicating whether this UnflaggedOption is greedy.
|
Parameter |
getParameter()
Returns an UnflaggedOption configured according to this configuration.
|
void |
setGreedy(boolean greedy)
Sets whether this UnflaggedOption should be greedy.
|
addConfiguredProperty, createParentStatements, declaredListSeparator, getIslist, getListseparator, getParserProperties, getRequired, getStringparser, hasProperties, setIslist, setListseparator, setRequired, setStringparser, setupStringParser
addConfiguredDefault, getDefaults, getId, setDefault, setId
public UnflaggedOptionConfiguration()
public void setGreedy(boolean greedy)
greedy
- if true, this UnflaggedOption should be greedy.public boolean getGreedy()
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 generateout
- the PrintStream to which the java source code will be written.Copyright © 2016. All rights reserved.