-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface Arg
Annotation specifies location where attribute should be stored.
You can annotate fields and methods. For methods, it must have only 1 format argument. Use
dest()
to specify which attribute to be assigned. If it is empty, the name of the attribute or method will be used instead. If the attribute value cannot be assigned to designated location, error will be issued. If you want to ignore this error, useignoreError()
.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
dest
The name of attribute to be assigned.boolean
ignoreError
Settrue
if you want to ignore the error in assignment.
-