org.apache.cocoon.components.language.programming.java
Class Pizza

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler
              |
              +--org.apache.cocoon.components.language.programming.java.Javac
                    |
                    +--org.apache.cocoon.components.language.programming.java.Pizza
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, LanguageCompiler, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable

public class Pizza
extends Javac

This class wraps the Pizza Java Compiler.

Version:
CVS $Id: Pizza.java,v 1.2 2002/02/22 07:00:09 cziegeler Exp $
Author:
Vadim Gritsenko

Field Summary
static java.lang.String PIZZA_CLASS
           
 
Fields inherited from class org.apache.cocoon.components.language.programming.java.Javac
CLASSIC_CLASS, MODERN_CLASS
 
Fields inherited from class org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler
classpath, destDir, encoding, errors, file, srcDir
 
Constructor Summary
Pizza()
           
 
Method Summary
 boolean compile()
          Compile a source file yielding a loadable class file.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.cocoon.components.language.programming.java.Javac
parseClassicStream, parseModernStream, parseStream
 
Methods inherited from class org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler
fillArguments, getErrors, recycle, setClasspath, setDestination, setEncoding, setFile, setSource, toStringArray
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PIZZA_CLASS

public static final java.lang.String PIZZA_CLASS
Constructor Detail

Pizza

public Pizza()
Method Detail

compile

public boolean compile()
                throws java.io.IOException
Compile a source file yielding a loadable class file.
Overrides:
compile in class Javac
Parameters:
filename - The object program base file name
baseDirectory - The directory containing the object program file
encoding - The encoding expected in the source file or null if it is the platform's default encoding
Throws:
LanguageException - If an error occurs during compilation

toString

public java.lang.String toString()
Overrides:
toString in class Javac


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.