Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({FIELD})
public @interface CommandLine.Parameters
Marks a field that receives positional parameters.
Methods
public abstract String index() default "" | The positions it takes: 0, 1..3, 1..*. |
public abstract String[] description() default {} | Help text. |
public abstract String arity() default "" | How many values it takes. |
public abstract String paramLabel() default "" | The placeholder printed for it. |
public abstract String defaultValue() default "" | The value used when it is absent. |
public abstract String split() default "" | A separator that splits one value into several. |
public abstract boolean hidden() default false | Leaves it out of the help. |
public abstract Class<?> converter() default void | A converter for a type the build does not convert by itself. |
Method details
index
public abstract String index() default ""The positions it takes:
0, 1..3, 1..*. Defaults to the next
position, or the rest for an array or a list.description
public abstract String[] description() default {}Help text.
arity
public abstract String arity() default ""How many values it takes.
paramLabel
public abstract String paramLabel() default ""The placeholder printed for it.
defaultValue
public abstract String defaultValue() default ""The value used when it is absent.
split
public abstract String split() default ""A separator that splits one value into several.
converter
public abstract Class<?> converter() default voidA converter for a type the build does not convert by itself.