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.24 2004/05/06 12:39:58 nicolas Exp $

Author:
Wei-ju Wu

Nested Class Summary

class
JacIDL.I2JPackageTagHandler
Inner class that will read the i2jpackage tags.

Constructor Summary

JacIDL()

Method Summary

void
addDefine(org.apache.tools.ant.types.Environment.Variable def)
void
addUndefine(org.apache.tools.ant.types.Environment.Variable def)
JacIDL.I2JPackageTagHandler
createI2jpackage()
Will be called whenever an nested PCDATA element is encountered.
void
execute()
The execute() method of the task.
File[]
getFileList()
protected void
resetFileLists()
Clear the list of files to be compiled and copied..
protected void
scanFiles(files[] )
Scans the directory looking for source files to be compiled.
void
setAll(boolean flag)
Set the flag to generate all files.
void
setAmi_callback(boolean flag)
Sets the flag to generate AMI callbacks.
void
setDebuglevel(int level)
Set the debug level.
void
setDestdir(File dir)
Set the destination directory.
void
setForceOverwrite(boolean flag)
Sets the flag to overwrite existing files.
void
setGenerateir(boolean flag)
Set the flag to generate the interface repository files.
void
setIncludepath(Path path)
Set the include path for the idl compiler.
void
setNofinal(boolean flag)
Setter for 'nofinal' property that indicates whether generated code should have a final class definition.
void
setNoskel(boolean flag)
Set the flag to leave out skeleton generation.
void
setNostub(boolean flag)
Set the flag to leave out stub generation.
void
setOmgprefix(boolean flag)
Set the flag to use the omg package prefix
void
setParseonly(boolean flag)
Set the flag to parse the idl only.
void
setSloppyforward(boolean flag)
Set the flag to use sloppy forwards.
void
setSloppynames(boolean flag)
Set the flag to use sloppy names.
void
setSrcdir(File dir)
Set the source directory.
void
setUncheckedNarrow(boolean flag)
Sets the flag to generated unchecked narrow() calls in stubs

Constructor Details

JacIDL

public JacIDL()

Method Details

addDefine

public void addDefine(org.apache.tools.ant.types.Environment.Variable def)


addUndefine

public void addUndefine(org.apache.tools.ant.types.Environment.Variable def)


createI2jpackage

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


execute

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


getFileList

public File[] getFileList()


resetFileLists

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


scanFiles

protected void scanFiles(files[] )
            throws BuildException
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.


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:


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