public class OptionInfo
extends java.lang.Object
valueInfo
member holds any of the following
alternatives:
OptionInfo.VoidInfo
if the option holds no value (or the value
has no native type)
OptionInfo.ValueInfo
if the option is of type boolean or String,
holds the current value and the default value.
OptionInfo.NumberInfo
if the option is of type BigInteger or
double, holds the current and default value, as well as the minimum and
maximum.
OptionInfo.ModeInfo
if the option is a mode option, holds the
current and default values, as well as a list of valid modes.
booleanValue()
, stringValue()
,
intValue()
, and doubleValue()
.
They assert that the option has the respective type and return the current
value.Modifier and Type | Class and Description |
---|---|
class |
OptionInfo.BaseInfo
Abstract class for OptionInfo values
|
class |
OptionInfo.ModeInfo |
class |
OptionInfo.NumberInfo<T>
Default value, current value, minimum and maximum of a numeric value
|
class |
OptionInfo.ValueInfo<T>
Has the current and the default value
|
class |
OptionInfo.VoidInfo
Has no value information
|
Modifier and Type | Field and Description |
---|---|
protected long |
pointer |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Obtain the current value as a Boolean.
|
void |
deletePointer() |
protected void |
deletePointer(long pointer) |
double |
doubleValue()
Obtain the current value as a double.
|
java.lang.String[] |
getAliases() |
OptionInfo.BaseInfo |
getBaseInfo() |
java.lang.String |
getName() |
long |
getPointer() |
boolean |
getSetByUser() |
java.math.BigInteger |
intValue()
Obtain the current value as as int.
|
java.lang.String |
stringValue()
Obtain the current value as a string.
|
java.lang.String |
toString() |
protected java.lang.String |
toString(long pointer) |
protected void deletePointer(long pointer)
public java.lang.String toString()
protected java.lang.String toString(long pointer)
public java.lang.String getName()
public java.lang.String[] getAliases()
public boolean getSetByUser()
public OptionInfo.BaseInfo getBaseInfo()
public boolean booleanValue()
public java.lang.String stringValue()
public java.math.BigInteger intValue()
public double doubleValue()
public long getPointer()
public void deletePointer()