Package revxrsal.commands.annotation
Annotation Interface Switch
Marks a (strictly)
boolean
parameter as a "switch", whose value will be
set by "flags", such as "-silent", which will represent a boolean parameter
annotated with @Switch("silent")
.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Returns the default value of this switchThe switch / flag name.
-
Element Details
-
value
String valueThe switch / flag name. If left empty, the parameter name will be used.- Returns:
- The switch name
- Default:
- ""
-
defaultValue
boolean defaultValueReturns the default value of this switch- Returns:
- The default switch value.
- Default:
- false
-