ozone core API

org.ozoneDB.tools.OPP.compiler
Class AbstractJavaCompiler

java.lang.Object
  extended byorg.ozoneDB.tools.OPP.compiler.AbstractJavaCompiler
All Implemented Interfaces:
JavaCompiler
Direct Known Subclasses:
ExternalJavaCompiler, InternalJavaCompiler

public abstract class AbstractJavaCompiler
extends java.lang.Object
implements JavaCompiler

Abstract configuration interface for JDK build compilers. Date: 2003-sep-21 Time: 15:04:09


Field Summary
private  java.lang.String classpath
           
private  boolean debug
           
private  boolean deprecation
           
private  boolean noWarn
           
private  boolean optimize
           
private  java.io.File outputPath
           
private  java.io.File sourcePath
           
 
Constructor Summary
AbstractJavaCompiler()
           
 
Method Summary
protected  java.lang.String[] getArguments(java.util.Collection classes)
           
protected  java.lang.String[] getArguments(java.lang.String command, java.util.Collection classes)
          Returns command line arguments from the compiler settings.
 java.lang.String getClasspath()
           
 java.io.File getOutputPath()
           
 java.io.File getSourcePath()
           
 boolean isDebug()
           
 boolean isDeprecation()
           
 boolean isNoWarn()
           
 boolean isOptimize()
           
 void setClasspath(java.lang.String classpath)
           
 void setDebug(boolean debug)
           
 void setDeprecation(boolean deprecation)
           
 void setNoWarn(boolean noWarn)
           
 void setOptimize(boolean optimize)
           
 void setOutputPath(java.io.File outputPath)
           
 void setSourcePath(java.io.File sourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.tools.OPP.compiler.JavaCompiler
compile
 

Field Detail

classpath

private java.lang.String classpath

optimize

private boolean optimize

debug

private boolean debug

noWarn

private boolean noWarn

deprecation

private boolean deprecation

sourcePath

private java.io.File sourcePath

outputPath

private java.io.File outputPath
Constructor Detail

AbstractJavaCompiler

public AbstractJavaCompiler()
Method Detail

getOutputPath

public java.io.File getOutputPath()

setOutputPath

public void setOutputPath(java.io.File outputPath)

isOptimize

public boolean isOptimize()

setOptimize

public void setOptimize(boolean optimize)

isDebug

public boolean isDebug()

setDebug

public void setDebug(boolean debug)

isNoWarn

public boolean isNoWarn()

setNoWarn

public void setNoWarn(boolean noWarn)

isDeprecation

public boolean isDeprecation()

setDeprecation

public void setDeprecation(boolean deprecation)

getSourcePath

public java.io.File getSourcePath()

setSourcePath

public void setSourcePath(java.io.File sourcePath)

getClasspath

public java.lang.String getClasspath()

setClasspath

public void setClasspath(java.lang.String classpath)

getArguments

protected java.lang.String[] getArguments(java.util.Collection classes)

getArguments

protected java.lang.String[] getArguments(java.lang.String command,
                                          java.util.Collection classes)
Returns command line arguments from the compiler settings.

Parameters:
command - Compiler command, skipped if null.
classes - The number classes to compile
Returns:
The array of a arguments

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.