|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.compiler.Compiler
public abstract class Compiler
The Compiler
interface provides the API to drive the actual build system.
Field Summary | |
---|---|
static java.lang.String |
COMPILER_GENERATE_CLASSES_DESPITE_ERRORS Deprecated. The setting of compiler options is an internal process, exposed through the visual UI. |
Constructor Summary | |
---|---|
Compiler() |
Method Summary | |
---|---|
abstract boolean |
addBuildSystemListener(BuildSystemListener bsl) addBuildSystemListener method adds a build system listener instance implementation to the build system, see BuildSystemListener for more information. |
abstract boolean |
addCopyListener(CopyListener cl) addCopyListener method adds a copy listener instance implementation to the build system, see CopyListener for more information. |
abstract boolean |
clean(Context context, boolean throwOnFailedDelete, java.io.OutputStream outStream, java.io.OutputStream errStream) Clean the context (may be workspace or project). |
abstract boolean |
compile(CompileArguments compileArguments) Compile one or more targets using the arguments defined in the CompileArguments object. |
abstract boolean |
compile(Context context, boolean rebuild, boolean wait) Deprecated. Use compile(CompileArguments) instead |
abstract boolean |
compile(Context context, boolean rebuild, boolean wait, boolean save) Deprecated. Use compile(CompileArguments) instead |
abstract boolean |
compile(Context context, boolean rebuild, boolean wait, java.io.OutputStream outStream, java.io.OutputStream errStream) Deprecated. Use compile(CompileArguments) instead |
abstract void |
compile(Context context, boolean rebuild, PostBuilder postBuild, boolean save) Deprecated. Use compile(CompileArguments) instead |
static Compiler |
getCompiler() Returns the active Compiler instance. |
abstract LogPage |
getErrorLog() |
abstract LogPage |
getOutputLog() get{Output|Error}Log gets the default compiler output/error log. |
abstract boolean |
isBusy(Context context) Determine if the compiler is already busy with a compilation. |
abstract boolean |
lock(Context context, boolean wait) lock/unlock the context (may be project, workspace, file, ...) and return true if the operation was successful. |
abstract void |
logOutMsg(java.lang.String msg) logOutMsg log a message on the default compiler output log |
abstract boolean |
removeBuildSystemListener(BuildSystemListener bsl) removeBuildSystemListener method removes a build system listener instance implementation from the build system, see BuildSystemListener for more information. |
abstract boolean |
removeCopyListener(CopyListener cl) removeCopyListener method removes a copy listener instance implementation from the build system, see CopyListener for more information. |
static void |
setCompiler(Compiler compiler) Sets the active Compiler instance. |
abstract boolean |
unlock(Context context) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated
public static final java.lang.String COMPILER_GENERATE_CLASSES_DESPITE_ERRORS
Constructor Detail |
---|
public Compiler()
Method Detail |
---|
public static Compiler getCompiler()
public static void setCompiler(Compiler compiler)
public abstract boolean compile(CompileArguments compileArguments)
compileArguments
- The arguments that define the compilation, which cannot be null.java.lang.IllegalArgumentException
- if compileArguments is null or if compileArguments.getContext() return null
@Deprecated
public abstract boolean compile(Context context,
boolean rebuild,
boolean wait,
java.io.OutputStream outStream,
java.io.OutputStream errStream)
context
- -- workspace, project or file to compilerebuild
- -- if true, unconditionally rebuild sourceswait
- -- if true, wait for compile to terminateoutStream
- -- stream where to log all verbose build system messageserrStream
- -- stream where to log all translators errors/warnings
@Deprecated
public abstract boolean compile(Context context,
boolean rebuild,
boolean wait)
context
- -- workspace, project or file to compilerebuild
- -- if true, unconditionally rebuild sourceswait
- -- if true, wait for compile to terminate
@Deprecated
public abstract boolean compile(Context context,
boolean rebuild,
boolean wait,
boolean save)
context
- -- workspace, project or file to compilerebuild
- -- if true, unconditionally rebuild sourceswait
- -- if true, wait for compile to terminatesave
- -- if true, will save files before compiling if the IDE setting is enabled; if false, will never save files, regardless of the IDE setting. The compile method without the save parameter will never save files.
@Deprecated
public abstract void compile(Context context,
boolean rebuild,
PostBuilder postBuild,
boolean save)
context
- -- workspace, project or file to compilerebuild
- -- if true, unconditionally rebuild sourcespostBuild
- --method postBuild will be called once the build is completedsave
- -- if true, will save files before compiling if the IDE setting is enabled; if false, will never save files, regardless of the IDE setting. The compile method without the save parameter will never save files.public abstract boolean clean(Context context, boolean throwOnFailedDelete, java.io.OutputStream outStream, java.io.OutputStream errStream) throws java.io.IOException
context
- -- workspace or project to cleanthrowOnFailedDelete
- -- if true, throw an IOException if delete on any file or directory failsoutStream
- -- stream where to log any verbose system message; if null, stdout will be usederrStream
- -- stream where to log any error/warning; if null, stderr will be usedjava.io.IOException
- if throwOnDeleteFailure is true and delete on any file or directory failspublic abstract boolean isBusy(Context context)
context
- -- workspace, project or filepublic abstract boolean lock(Context context, boolean wait)
context
- -- workspace, project or file to lock/unlockwait
- -- if true, wait for compilation to terminatepublic abstract boolean unlock(Context context)
public abstract boolean addBuildSystemListener(BuildSystemListener bsl)
BuildSystemListener
for more information.bsl
- build system listener to addpublic abstract boolean removeBuildSystemListener(BuildSystemListener bsl)
BuildSystemListener
for more information.bsl
- build system listener to removepublic abstract boolean addCopyListener(CopyListener cl)
CopyListener
for more information.cl
- copy listener to addpublic abstract boolean removeCopyListener(CopyListener cl)
CopyListener
for more information.cl
- copy listener to removepublic abstract LogPage getOutputLog()
public abstract LogPage getErrorLog()
public abstract void logOutMsg(java.lang.String msg)
msg
- -- msg to print on the log
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |