org.duelengine.duel.codegen
Class ClientCodeGen

java.lang.Object
  extended by org.duelengine.duel.codegen.ClientCodeGen
All Implemented Interfaces:
CodeGenerator

public class ClientCodeGen
extends Object
implements CodeGenerator

Generates client-side code for views Inherently thread-safe as contains no mutable instance data.


Constructor Summary
ClientCodeGen()
           
ClientCodeGen(CodeGenSettings settings)
           
 
Method Summary
 String getFileExtension()
           
 void write(Appendable output, Iterable<VIEWCommandNode> views)
          Generates client-side code for the given views
 void write(Appendable output, VIEWCommandNode... views)
          Generates client-side code for the given views
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCodeGen

public ClientCodeGen()

ClientCodeGen

public ClientCodeGen(CodeGenSettings settings)
Method Detail

getFileExtension

public String getFileExtension()
Specified by:
getFileExtension in interface CodeGenerator

write

public void write(Appendable output,
                  VIEWCommandNode... views)
           throws IOException
Generates client-side code for the given views

Specified by:
write in interface CodeGenerator
Parameters:
output -
views -
Throws:
IOException

write

public void write(Appendable output,
                  Iterable<VIEWCommandNode> views)
           throws IOException
Generates client-side code for the given views

Specified by:
write in interface CodeGenerator
Parameters:
output -
views -
Throws:
IOException


Copyright © 2012. All Rights Reserved.