public class ConfigInt extends ConfigVariable
spec
Constructor and Description |
---|
ConfigInt(OptionSpec option) |
ConfigInt(OptionSpec option,
int value) |
Modifier and Type | Method and Description |
---|---|
void |
addToCommandline(org.apache.tools.ant.types.Commandline cmdline)
Adds arguments to the end of
cmdline corresponding to the state of this variable. |
boolean |
isSet()
Predicate specifying whether this ConfigVariable has been set.
|
void |
set(int value) |
void |
set(String value)
Set the value of this
ConfigVariable |
getSpec, matches
public ConfigInt(OptionSpec option)
public ConfigInt(OptionSpec option, int value)
public void set(int value)
public void set(String value)
ConfigVariable
ConfigVariable
set
in class ConfigVariable
value
- the value (as a String) that this ConfigVariable
should be set to.public boolean isSet()
ConfigVariable
set
.isSet
in class ConfigVariable
ConfigVariable
has been set, false otherwise.public void addToCommandline(org.apache.tools.ant.types.Commandline cmdline)
BaseConfigVariable
cmdline
corresponding to the state of this variable.addToCommandline
in interface IOptionSource
addToCommandline
in class BaseConfigVariable
cmdline
- The Commandline object to which arguments correspond to this option should be addedCopyright © 2016 The Apache Software Foundation. All rights reserved.