org.stjs.generator.writer.expression
Class MethodInvocationWriter<JS>

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

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


Constructor Summary
MethodInvocationWriter()
           
 
Method Summary
static
<JS> List<JS>
buildArguments(WriterVisitor<JS> visitor, com.sun.source.tree.MethodInvocationTree tree, GenerationContext<JS> context)
           
static String buildMethodName(com.sun.source.tree.MethodInvocationTree tree)
           
static
<JS,T extends com.sun.source.tree.MethodInvocationTree>
JS
buildTarget(WriterVisitor<JS> visitor, TreeWrapper<T,JS> tw)
           
static
<JS> String
buildTemplateName(com.sun.source.tree.MethodInvocationTree tree, GenerationContext<JS> context)
           
 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

MethodInvocationWriter

public MethodInvocationWriter()
Method Detail

buildTarget

public static <JS,T extends com.sun.source.tree.MethodInvocationTree> JS buildTarget(WriterVisitor<JS> visitor,
                                                                                     TreeWrapper<T,JS> tw)

buildMethodName

public static String buildMethodName(com.sun.source.tree.MethodInvocationTree tree)

buildArguments

public static <JS> List<JS> buildArguments(WriterVisitor<JS> visitor,
                                           com.sun.source.tree.MethodInvocationTree tree,
                                           GenerationContext<JS> context)

buildTemplateName

public static <JS> String buildTemplateName(com.sun.source.tree.MethodInvocationTree tree,
                                            GenerationContext<JS> context)

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.