final MessageDirection what, final MessageDirection mc,
final boolean hasBaseClass ) throws Exception
{
// Generate interface file
doFile( dir, getIntfName( intf, mc ) + fnSuffix, lh, new Gen()
{
public void run( PrintWriter pw ) throws Exception
{
generateIntf( pw, intf, mc, hasBaseClass );
}
} );
// Generate remote file
if (mc == MessageDirection.BOTH || what == MessageDirection.BOTH
|| mc != what)
doFile( dir, getRemoteName( intf, mc ) + fnSuffix, lh, new Gen()
{
public void run( PrintWriter pw ) throws Exception
{
generateRemote( pw, intf, mc, hasBaseClass );
}
} );
// Generate stub file
if (mc == MessageDirection.BOTH || what == MessageDirection.BOTH
|| mc == what)
doFile( dir, getStubName( intf, mc ) + fnSuffix, lh, new Gen()
{
public void run( PrintWriter pw ) throws Exception
{
generateStub( pw, intf, mc, hasBaseClass );
}