|
Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Classes that want to print or write the generated code must implement this interface.
AbstractCodeWriter
Method Summary | |
java.io.File |
getBaseDir()
Get the base directory of the generated files. |
java.io.File |
getPrettyPrintConfiguration()
Get the configuration file for the pretty printer. |
boolean |
isPrettyPrinting()
Check if pretty printing is enabled or not. |
void |
setBaseDir(java.io.File f)
Set the base directory of the generated files. |
void |
setPrettyPrintConfiguration(java.io.File f)
Set the configuration file for the pretty printer. |
void |
setPrettyPrinting(boolean b)
Specify if generated files should be pretty-printed. |
java.io.File |
write(ClassTemplate tmpl)
Write the code for tmpl . |
java.io.File[] |
write(ClassTemplate[] tmpl)
Write the code for tmpls . |
Method Detail |
public void setPrettyPrinting(boolean b)
b
- a boolean
valuepublic boolean isPrettyPrinting()
boolean
valuepublic void setPrettyPrintConfiguration(java.io.File f)
f
- a File
valuepublic java.io.File getPrettyPrintConfiguration()
File
valuepublic void setBaseDir(java.io.File f)
f
- a File
valuepublic java.io.File getBaseDir()
File
valuepublic java.io.File write(ClassTemplate tmpl) throws java.io.IOException
tmpl
.java.io.IOException
- if an error occures while writing the code.public java.io.File[] write(ClassTemplate[] tmpl) throws java.io.IOException
tmpls
.java.io.IOException
- if an error occures while writing the code.
|
Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |