org.jacorb.idl

Class JacIDL

public class JacIDL extends MatchingTask

This is the idl compile task for using the idl compiler from the ANT build tool.

Version: $Id: JacIDL.java,v 1.28 2006/06/26 14:37:45 alphonse.bendt Exp $

Author: Wei-ju Wu

Nested Class Summary
classJacIDL.I2JPackageTagHandler
Inner class that will read the i2jpackage tags.
Constructor Summary
JacIDL()
Method Summary
voidaddDefine(Variable def)
voidaddUndefine(Variable def)
JacIDL.I2JPackageTagHandlercreateI2jpackage()
Will be called whenever an nested PCDATA element is encountered.
voidexecute()
The execute() method of the task.
File[]getFileList()
protected voidresetFileLists()
Clear the list of files to be compiled and copied..
protected voidscanFiles(String[] files)
Scans the directory looking for source files to be compiled.
voidsetAll(boolean flag)
Set the flag to generate all files.
voidsetAmi_callback(boolean flag)
Sets the flag to generate AMI callbacks.
voidsetDebuglevel(int level)
Set the debug level.
voidsetDestdir(File dir)
Set the destination directory.
voidsetForceOverwrite(boolean flag)
Sets the flag to overwrite existing files.
voidsetGenerateDIIStubs(boolean flag)
voidsetGenerateEnhanced(boolean flag)
Sets the flag to generated enhanced stubs
voidsetGenerateir(boolean flag)
Set the flag to generate the interface repository files.
voidsetIncludepath(Path path)
Set the include path for the idl compiler.
voidsetNofinal(boolean flag)
Setter for 'nofinal' property that indicates whether generated code should have a final class definition.
voidsetNoskel(boolean flag)
Set the flag to leave out skeleton generation.
voidsetNostub(boolean flag)
Set the flag to leave out stub generation.
voidsetOmgprefix(boolean flag)
Set the flag to use the omg package prefix
voidsetParseonly(boolean flag)
Set the flag to parse the idl only.
voidsetSloppyforward(boolean flag)
Set the flag to use sloppy forwards.
voidsetSloppynames(boolean flag)
Set the flag to use sloppy names.
voidsetSrcdir(File dir)
Set the source directory.
voidsetUncheckedNarrow(boolean flag)
Sets the flag to generated unchecked narrow() calls in stubs

Constructor Detail

JacIDL

public JacIDL()

Method Detail

addDefine

public void addDefine(Variable def)

addUndefine

public void addUndefine(Variable def)

createI2jpackage

public JacIDL.I2JPackageTagHandler createI2jpackage()
Will be called whenever an nested PCDATA element is encountered.

execute

public void execute()
The execute() method of the task.

Throws: BuildException

getFileList

public File[] getFileList()

resetFileLists

protected void resetFileLists()
Clear the list of files to be compiled and copied..

scanFiles

protected void scanFiles(String[] files)
Scans the directory looking for source files to be compiled. The results are returned in the class variable compileList

setAll

public void setAll(boolean flag)
Set the flag to generate all files.

Parameters: flag the flag

setAmi_callback

public void setAmi_callback(boolean flag)
Sets the flag to generate AMI callbacks.

setDebuglevel

public void setDebuglevel(int level)
Set the debug level.

Parameters: level the debug level

setDestdir

public void setDestdir(File dir)
Set the destination directory.

Parameters: dir the destination directory

setForceOverwrite

public void setForceOverwrite(boolean flag)
Sets the flag to overwrite existing files.

setGenerateDIIStubs

public void setGenerateDIIStubs(boolean flag)

setGenerateEnhanced

public void setGenerateEnhanced(boolean flag)
Sets the flag to generated enhanced stubs

setGenerateir

public void setGenerateir(boolean flag)
Set the flag to generate the interface repository files.

Parameters: flag the flag

setIncludepath

public void setIncludepath(Path path)
Set the include path for the idl compiler.

Parameters: path the include path

setNofinal

public void setNofinal(boolean flag)
Setter for 'nofinal' property that indicates whether generated code should have a final class definition.

Parameters: nofinal true for definitions that are not final.

setNoskel

public void setNoskel(boolean flag)
Set the flag to leave out skeleton generation.

Parameters: flag the flag

setNostub

public void setNostub(boolean flag)
Set the flag to leave out stub generation.

Parameters: flag the flag

setOmgprefix

public void setOmgprefix(boolean flag)
Set the flag to use the omg package prefix

Parameters: flag the flag

setParseonly

public void setParseonly(boolean flag)
Set the flag to parse the idl only.

Parameters: flag the flag

setSloppyforward

public void setSloppyforward(boolean flag)
Set the flag to use sloppy forwards.

Parameters: flag the flag

setSloppynames

public void setSloppynames(boolean flag)
Set the flag to use sloppy names.

Parameters: flag the flag

setSrcdir

public void setSrcdir(File dir)
Set the source directory.

Parameters: dir the source directory

setUncheckedNarrow

public void setUncheckedNarrow(boolean flag)
Sets the flag to generated unchecked narrow() calls in stubs