org.duelengine.duel.codegen
Class JavaCodeGen
java.lang.Object
org.duelengine.duel.codegen.JavaCodeGen
- All Implemented Interfaces:
- CodeGenerator
public class JavaCodeGen
- extends Object
- implements CodeGenerator
Code generator which emits Java source from CodeDOM classes
Inherently thread-safe as contains no mutable instance data.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaCodeGen
public JavaCodeGen()
JavaCodeGen
public JavaCodeGen(CodeGenSettings settings)
getFileExtension
public String getFileExtension()
- Specified by:
getFileExtension in interface CodeGenerator
write
public void write(Appendable output,
VIEWCommandNode... views)
throws IOException
- Generates server-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 server-side code for the given views
- Specified by:
write in interface CodeGenerator
- Parameters:
output - views -
- Throws:
IOException
writeCode
public void writeCode(Appendable output,
CodeObject code)
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.