@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) @Documented public @interface Replace
The annotation's value contains TypeScript which is generated as is by the JSweet transpiler. The code will be checked by the TypeScript transpiler.
The replacing code can contain variables substituted using a mustache-like convention ({{variableName}}). Here is the list of supported variables:
[before code] let _result = () => { {{body}} }(); [after code] return result;
public abstract String value