org.stjs.generator.writer.templates
Class MethodToPropertyTemplate<JS>

java.lang.Object
  extended by org.stjs.generator.writer.templates.MethodToPropertyTemplate<JS>
All Implemented Interfaces:
VisitorContributor<com.sun.source.tree.MethodInvocationTree,JS,GenerationContext<JS>,WriterVisitor<JS>>, WriterContributor<com.sun.source.tree.MethodInvocationTree,JS>

public class MethodToPropertyTemplate<JS>
extends Object
implements WriterContributor<com.sun.source.tree.MethodInvocationTree,JS>

$method() => $method and
$method(x) => $method = x and $staticMethod(x) => x.$method and
$staticMethod(x, y) => x.$method = y

Author:
acraciun

Constructor Summary
MethodToPropertyTemplate()
           
 
Method Summary
 JS visit(WriterVisitor<JS> visitor, com.sun.source.tree.MethodInvocationTree tree, GenerationContext<JS> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodToPropertyTemplate

public MethodToPropertyTemplate()
Method Detail

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.