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

org.cantaloop.cgimlet.lang
Interface CodeCompiler

All Known Implementing Classes:
JCompiler

public interface CodeCompiler

Defines the interface of a compiler or interpreter. Implementations of this class may be used to check the validity of the generated code.

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

Method Summary
 void compile(java.io.File f)
          Compiles the given file.
 void compile(java.util.List l)
          Compiles the given list of files.
 org.cantaloop.tools.logging.Logger getLogger()
          Returns the logger.
 java.io.File getTargetDir()
          Returns the target directory of this compiler.
 void setLogger(org.cantaloop.tools.logging.Logger l)
          Sets the logger that should be used to log the messages of the compiler
 void setTargetDir(java.io.File targetDir)
          Sets the directory under which the compiled files should be placed.
 

Method Detail

setLogger

public void setLogger(org.cantaloop.tools.logging.Logger l)
Sets the logger that should be used to log the messages of the compiler

getLogger

public org.cantaloop.tools.logging.Logger getLogger()
Returns the logger.

setTargetDir

public void setTargetDir(java.io.File targetDir)
Sets the directory under which the compiled files should be placed.

getTargetDir

public java.io.File getTargetDir()
Returns the target directory of this compiler.

compile

public void compile(java.io.File f)
Compiles the given file.

compile

public void compile(java.util.List l)
Compiles the given list of files.
Parameters:
l - a List of Files.

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