|
8 | 8 | /** |
9 | 9 | * The {@link Onstruct} annotation declares variables based on getters of an |
10 | 10 | * object.<br /> |
11 | | - * The variables names are the one specified. If the annotation has parameters for prefix and suffix, those parameters are added to the variable names.<br /> |
| 11 | + * The variables names are the one specified. If the annotation has parameters |
| 12 | + * for prefix and suffix, those parameters are added to the variable |
| 13 | + * names.<br /> |
12 | 14 | * The getter is the existing method in the object's class verifying |
13 | 15 | * <ol> |
14 | | - * <li>return non-void type</li> |
15 | | - * <li>requires no argument</li> |
16 | | - * <li>match the variable name specified, prefixed by get|is, and ignoring case. In the order : |
17 | | - * <ol> |
18 | | - * <li>getName is selected if exists</li> |
19 | | - * <li>isName is selected if exists</li> |
20 | | - * <li>getname (ignoring case) is selected if exists only ONE. compiling error if several found</li> |
21 | | - * <li>isname (ignoring case) is selected if exists only ONE. compiling error if several found</li> |
22 | | - * <li>if no matching method exists, error</li> |
23 | | - * </ol> |
24 | | - * </li> |
| 16 | + * <li>return non-void type</li> |
| 17 | + * <li>requires no argument</li> |
| 18 | + * <li>match the variable name specified, prefixed by get|is, and ignoring case. |
| 19 | + * In the order : |
| 20 | + * <ol> |
| 21 | + * <li>getName is selected if exists</li> |
| 22 | + * <li>isName is selected if exists</li> |
| 23 | + * <li>getname (ignoring case) is selected if exists only ONE. compiling error |
| 24 | + * if several found</li> |
| 25 | + * <li>isname (ignoring case) is selected if exists only ONE. compiling error if |
| 26 | + * several found</li> |
| 27 | + * <li>name is selected if exists</li> |
| 28 | + * <li>name (ignoring case) is selected if exists only ONE. compiling error if |
| 29 | + * several found</li> |
| 30 | + * <li>if no matching method exists, error</li> |
| 31 | + * </ol> |
| 32 | + * </li> |
25 | 33 | * </ol> |
26 | 34 | * |
27 | 35 | * <p> |
28 | | - * It MUST only be applied to var declarations. |
| 36 | + * It MUST only be applied to typed declarations. No garantee is present for var |
| 37 | + * declaration. |
29 | 38 | * </p> |
30 | 39 | * |
31 | 40 | * |
32 | 41 | * <p> |
33 | 42 | * Before: |
34 | 43 | * |
35 | 44 | * <pre> |
36 | | - * @Onstruct(prefix="b_") |
37 | | - * var author, name, editiondate, purchasable = mybook; |
| 45 | + * @Onstruct(prefix = "b_") |
| 46 | + * Object author, name, editiondate, purchasable = mybook; |
38 | 47 | * </pre> |
39 | 48 | * |
40 | 49 | * After: |
|
0 commit comments