Package org.apache.etch.compiler.Backend

Examples of org.apache.etch.compiler.Backend.Gen


  }

  private void generateReadme( final Service intf, Output dir,
    final MessageDirection msgDir ) throws Exception
  {
    doFile( dir, "readme-etch-csharp-files.txt", lh, new Gen()
    {
      public void run( PrintWriter pw ) throws Exception
      {
        generateReadme( pw, intf, msgDir );
      }
View Full Code Here


  }

  private void generateVf( final Service intf, Output dir )
    throws Exception
  {
    doFile( dir, getVfName( intf ) + fnSuffix, lh, new Gen()
    {
      public void run( PrintWriter pw ) throws Exception
      {
        generateVf( pw, intf );
      }
View Full Code Here

  }

  private void generateHelper( final Service intf, Output dir,
    final MessageDirection msgDir ) throws Exception
  {
    doFile( dir, getHelperName( intf ) + fnSuffix, lh, new Gen()
    {
      public void run( PrintWriter pw ) throws Exception
      {
        generateHelper( pw, intf, msgDir );
      }
View Full Code Here

 
  private void generateKeywordList(final Service intf, Output dir,
      final MessageDirection what, final MessageDirection mc,
      final boolean hasBaseClass) throws Exception {
    doFile(dir, getKeywordFilename(intf), lh,
        new Gen() {
          public void run(PrintWriter pw) throws Exception {
            generateKeywords(pw, intf, mc, hasBaseClass);
          }
        });
  }
View Full Code Here

  private void generateMain( final Service intf, Output dir,
    MessageDirection msgDir ) throws Exception
  {
    if (msgDir == MessageDirection.BOTH
        || msgDir == MessageDirection.CLIENT)
      doFile( dir, getMainName( intf, MessageDirection.CLIENT ) + fnSuffix, lh, new Gen()
      {
        public void run( PrintWriter pw ) throws Exception
        {
          generateMain( pw, intf, MessageDirection.CLIENT, false );
        }
      } );

    if (msgDir == MessageDirection.BOTH
        || msgDir == MessageDirection.SERVER)
      doFile( dir, getMainName( intf, MessageDirection.SERVER ) + fnSuffix, lh, new Gen()
      {
        public void run( PrintWriter pw ) throws Exception
        {
          generateMain( pw, intf, MessageDirection.SERVER, false );
        }
View Full Code Here

  private void generateBase( final Service intf, Output dir,
    MessageDirection msgDir ) throws Exception
  {
    if (msgDir == MessageDirection.BOTH || msgDir == MessageDirection.CLIENT)
      doFile( dir, getBaseName( intf, MessageDirection.CLIENT ) + fnSuffix, lh, new Gen()
      {
        public void run( PrintWriter pw ) throws Exception
        {
          generateBase (pw, intf, MessageDirection.CLIENT, false );
        }
      } );

    if (msgDir == MessageDirection.BOTH || msgDir == MessageDirection.SERVER)
      doFile( dir, getBaseName( intf, MessageDirection.SERVER ) + fnSuffix, lh, new Gen()
      {
        public void run( PrintWriter pw ) throws Exception
        {
          generateBase (pw, intf, MessageDirection.SERVER, false );
        }
View Full Code Here

  private void generateImpl( final Service intf, Output dir,
    MessageDirection msgDir ) throws Exception
  {
    if (msgDir == MessageDirection.BOTH
        || msgDir == MessageDirection.CLIENT)
      doFile( dir, getImplName( intf, MessageDirection.CLIENT ) + fnSuffix, lh, new Gen()
      {
        public void run( PrintWriter pw ) throws Exception
        {
          generateImpl( pw, intf, MessageDirection.CLIENT, false );
        }
      } );

    if (msgDir == MessageDirection.BOTH
        || msgDir == MessageDirection.SERVER)
      doFile( dir, getImplName( intf, MessageDirection.SERVER ) + fnSuffix, lh, new Gen()
      {
        public void run( PrintWriter pw ) throws Exception
        {
          generateImpl( pw, intf, MessageDirection.SERVER, false );
        }
View Full Code Here

    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 );
        }
View Full Code Here

  }

  private void generateMakefile( final Service intf, Output dir,
    final MessageDirection msgDir ) throws Exception
  {
    doFile( dir, "Makefile", lh, new Gen()
    {
      public void run( PrintWriter pw ) throws Exception
      {
        generateMakefile( pw, intf, msgDir );
      }
View Full Code Here

  }

  private void generateReadme( final Service intf, Output dir,
    final MessageDirection msgDir ) throws Exception
  {
    doFile( dir, "readme-etch-java-files.txt", lh, new Gen()
    {
      public void run( PrintWriter pw ) throws Exception
      {
        generateReadme( pw, intf, msgDir );
      }
View Full Code Here

TOP

Related Classes of org.apache.etch.compiler.Backend.Gen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.