org.stjs.generator.writer.templates
Class PrefixTemplate<JS>
java.lang.Object
org.stjs.generator.writer.templates.PrefixTemplate<JS>
- 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.
$method() => method() or _method() => method()
- Author:
- acraciun
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrefixTemplate
public PrefixTemplate()
visit
public JS visit(WriterVisitor<JS> visitor,
com.sun.source.tree.MethodInvocationTree tree,
GenerationContext<JS> context)
- Specified by:
visit in interface VisitorContributor<com.sun.source.tree.MethodInvocationTree,JS,GenerationContext<JS>,WriterVisitor<JS>>
Copyright © 2014. All Rights Reserved.