I want to make all field modifieres public that are annotated with a certain annotation e.g. @UiField. Currently the modifier might be anything else than public. I tried the templates below but the problems are; I miss e.g. protected and private fields and parameters of the @UiField annotation go mission on the replacement code (so @UiField ($Params$) doesn't capture the params). Can you please tell me how I make this the right way?
@Modifier("packageLocal") $FieldType$ $FieldName$ = $Init$;
public $FieldType$ $FieldName$ = $Init$;