Package io.github.cvc5
Class OptionInfo
- java.lang.Object
-
- io.github.cvc5.OptionInfo
-
public class OptionInfo extends java.lang.ObjectHolds some description about a particular option, including its name, its aliases, whether the option was explicitly set by the user, and information concerning its value. ThevalueInfomember holds any of the following alternatives:-
OptionInfo.VoidInfoif the option holds no value (or the value has no native type) -
OptionInfo.ValueInfoif the option is of type boolean or String, holds the current value and the default value. -
OptionInfo.NumberInfoif the option is of type BigInteger or double, holds the current and default value, as well as the minimum and maximum. -
OptionInfo.ModeInfoif the option is a mode option, holds the current and default values, as well as a list of valid modes.
booleanValue(),stringValue(),intValue(), anddoubleValue(). They assert that the option has the respective type and return the current value. -
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOptionInfo.BaseInfoAbstract class for OptionInfo valuesclassOptionInfo.ModeInfoclassOptionInfo.NumberInfo<T>Default value, current value, minimum and maximum of a numeric valueclassOptionInfo.ValueInfo<T>Has the current and the default valueclassOptionInfo.VoidInfoHas no value information
-
Field Summary
Fields Modifier and Type Field Description protected longpointer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue()Obtain the current value as a Boolean.voiddeletePointer()protected voiddeletePointer(long pointer)doubledoubleValue()Obtain the current value as a double.java.lang.String[]getAliases()OptionInfo.BaseInfogetBaseInfo()java.lang.StringgetName()longgetPointer()booleangetSetByUser()java.math.BigIntegerintValue()Obtain the current value as as int.java.lang.StringstringValue()Obtain the current value as a string.java.lang.StringtoString()protected java.lang.StringtoString(long pointer)
-
-
-
Method Detail
-
deletePointer
protected void deletePointer(long pointer)
-
toString
public java.lang.String toString()
-
toString
protected java.lang.String toString(long pointer)
- Returns:
- A string representation of this OptionInfo.
-
getName
public java.lang.String getName()
-
getAliases
public java.lang.String[] getAliases()
-
getSetByUser
public boolean getSetByUser()
-
getBaseInfo
public OptionInfo.BaseInfo getBaseInfo()
-
booleanValue
public boolean booleanValue()
Obtain the current value as a Boolean. Asserts that valueInfo holds a Boolean.- Returns:
- The Boolean value.
-
stringValue
public java.lang.String stringValue()
Obtain the current value as a string. Asserts that valueInfo holds a string.- Returns:
- The string value.
-
intValue
public java.math.BigInteger intValue()
Obtain the current value as as int. Asserts that valueInfo holds an int.- Returns:
- The integer value.
-
doubleValue
public double doubleValue()
Obtain the current value as a double. Asserts that valueInfo holds a double.- Returns:
- The double value.
-
getPointer
public long getPointer()
-
deletePointer
public void deletePointer()
-
-