- All Implemented Interfaces:
- VisitorContributor<com.sun.source.tree.MethodInvocationTree,JS,GenerationContext<JS>,WriterVisitor<JS>>, WriterContributor<com.sun.source.tree.MethodInvocationTree,JS>
public class PrefixTemplate<JS>
extends Object
implements WriterContributor<com.sun.source.tree.MethodInvocationTree,JS>
This template can be used to prefix the name of a method that can be Java keyword.
When used without parameters as @Template("prefix"), this template simply strips the
leading character of the Java method name
$method() => method() or _method() => method()
When used with a single parameters, this template removes the first param.length characters
from the java method name and makes the first letter of the resulting identifier lowercase
- Author:
- acraciun