|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.compiler.Compiler
The Compiler
interface provides the API to
drive the actual build system.
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 |
compile(Context context,
boolean rebuild,
boolean wait)
compile -- compile the context (may be project, workspace, file, ...) and return true if they are no errors else false. |
abstract boolean |
compile(Context context,
boolean rebuild,
boolean wait,
boolean save)
|
abstract void |
compile(Context context,
boolean rebuild,
PostBuilder postBuild,
boolean save)
compile -- compile the context (may be project, workspace, file, ...) on a background thread and call the specified worker object once compilation is completed with build successful or not as the postBuild method input parameter. |
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)
|
abstract boolean |
lock(Context context,
boolean wait)
lock/unlock the context (may be project, workspace, file, ...) and return true if the opeartion 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 |
Constructor Detail |
public Compiler()
Method Detail |
public static Compiler getCompiler()
public static void setCompiler(Compiler compiler)
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 terminatepublic abstract boolean compile(Context context, boolean rebuild, boolean wait, boolean save)
public abstract void compile(Context context, boolean rebuild, PostBuilder postBuild, boolean save)
context
- -- workspace, project or file to compilerebuild
- -- if true, unconditionally rebuild sourcessave
- -- 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 isBusy(Context context)
public abstract boolean lock(Context context, boolean wait)
context
- -- workspace, project or file to lock/unlockwait
- -- if true, wait for compilation to terminate
public abstract boolean unlock(Context context)
public abstract boolean addBuildSystemListener(BuildSystemListener bsl)
BuildSystemListener
for more information.
bsl
- build system listener to add
public abstract boolean removeBuildSystemListener(BuildSystemListener bsl)
BuildSystemListener
for more information.
bsl
- build system listener to remove
public abstract boolean addCopyListener(CopyListener cl)
CopyListener
for more information.
cl
- copy listener to add
public abstract boolean removeCopyListener(CopyListener cl)
CopyListener
for more information.
cl
- copy listener to remove
public abstract LogPage getOutputLog()
public abstract LogPage getErrorLog()
public abstract void logOutMsg(java.lang.String msg)
msg
- -- msg to print on the log
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.