Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST

org.cantaloop.cgimlet.lang.java
Class JavaClassWriter

java.lang.Object
  |
  +--org.cantaloop.cgimlet.lang.AbstractCodeWriter
        |
        +--org.cantaloop.cgimlet.lang.java.JavaClassWriter
All Implemented Interfaces:
CodeWriter

public class JavaClassWriter
extends AbstractCodeWriter

A CodeWriter for the java programming language.

Version:
0.2.0 ($Revision: 1.2 $)
Author:
Stefan Heimann

Fields inherited from class org.cantaloop.cgimlet.lang.AbstractCodeWriter
m_baseDir, m_prettyPrintConfig, m_prettyPrinting
 
Constructor Summary
JavaClassWriter()
           
JavaClassWriter(java.io.File baseDir, boolean prettyPrinting)
           
 
Method Summary
 java.io.File write(ClassTemplate tmpl)
          Write the code for tmpl.
 java.io.File[] write(ClassTemplate[] tmpl)
          Write the code for tmpls.
 
Methods inherited from class org.cantaloop.cgimlet.lang.AbstractCodeWriter
getBaseDir, getPrettyPrintConfiguration, isPrettyPrinting, setBaseDir, setPrettyPrintConfiguration, setPrettyPrinting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaClassWriter

public JavaClassWriter()

JavaClassWriter

public JavaClassWriter(java.io.File baseDir,
                       boolean prettyPrinting)
Method Detail

write

public java.io.File[] write(ClassTemplate[] tmpl)
                     throws java.io.IOException
Description copied from interface: CodeWriter
Write the code for tmpls.
Following copied from interface: org.cantaloop.cgimlet.lang.CodeWriter
Returns:
the written file(s)
Throws:
java.io.IOException - if an error occures while writing the code.

write

public java.io.File write(ClassTemplate tmpl)
                   throws java.io.IOException
Description copied from interface: CodeWriter
Write the code for tmpl.
Following copied from interface: org.cantaloop.cgimlet.lang.CodeWriter
Returns:
the written file
Throws:
java.io.IOException - if an error occures while writing the code.

Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved.