java.lang.Object
dev.civl.gmc.Option
- All Implemented Interfaces:
Serializable
An instance of this class represents a command-line parameter for a model
checker.
The type of the option specifies the type of the values that the parameter
can take.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value for this optionReturns the human-readable description of this option.booleaninthashCode()name()Returns the name of this option.static OptionnewMapOption(String name, String description) Returns a new option of type MAP with default value the empty map.static OptionnewScalarOption(String name, Option.OptionType type, String description, Object defaultValue) voidprint(PrintStream out) toString()Prints a human-readable description of this option, including its name, type, and default value.type()Returns the type of this option
-
Method Details
-
newScalarOption
public static Option newScalarOption(String name, Option.OptionType type, String description, Object defaultValue) -
newMapOption
Returns a new option of type MAP with default value the empty map.- Parameters:
name- the name to assign to this optiondescription- a human readable description of this option- Returns:
- new option of type MAP with default value the empty map
-
name
Returns the name of this option.- Returns:
- the name of this option
-
type
Returns the type of this option- Returns:
- the type of this option
-
description
Returns the human-readable description of this option.- Returns:
- the human-readable description of this option
-
defaultValue
Returns the default value for this option- Returns:
- the default value for this option
-
toString
Prints a human-readable description of this option, including its name, type, and default value. The form is appropriate for including in a "usage" message. -
print
-
equals
-
hashCode
public int hashCode()
-