Java Code Examples for com.sun.tools.corba.se.idl.InterfaceEntry#isLocalSignature()

The following examples show how to use com.sun.tools.corba.se.idl.InterfaceEntry#isLocalSignature() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InterfaceGen.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}
 
Example 2
Source File: InterfaceGen.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}
 
Example 3
Source File: InterfaceGen.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}
 
Example 4
Source File: InterfaceGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}
 
Example 5
Source File: InterfaceGen.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}
 
Example 6
Source File: InterfaceGen.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}
 
Example 7
Source File: InterfaceGen.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}
 
Example 8
Source File: InterfaceGen.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Generate the interface and all the files associated with it.
 * Provides general algorithm for binding generation:
 * 1.) Initialize symbol table and symbol table entry members, common to all generators.
 * 2.) Generate the skeleton if required by calling generateSkeletn ()
 * 3.) Generate the holder by calling generateHolder ()
 * 4.) Generate the helper by calling generateHelper ()
 * 5.) Generate the stub if required by calling generateStub ()
 * 6.) Generate the interface by calling generateInterface ()
 **/
public void generate (Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
{
  if (!isPseudo(i))
  {
    this.symbolTable = symbolTable;
    this.i           = i;
    init ();

    // for sun_local pragma, just generate the signature and operations interfaces
    // for sun_localservant pragma, generate the Local Stubs, and Skel, should not
    // have _invoke defined.
    // for local (is_local()) case, generate only Helpers and Holder, where they
    // have been modified to throw appropriate exceptions for read and write, and
    // narrow is modified to not invoke _is_a

    if (! (i.isLocalSignature())) {
        // generate the stubs and skeletons for non-local interfaces
        if (! (i.isLocal())) {
            // for local servant case just generate the skeleton, but
            // for others generate the stubs also
            generateSkeleton ();

            // _REVISIT_, Whenever there is time restructure the code to
            // encapsulate stub and skeleton generation.

            // If the option is -fallTie then generate the Tie class first
            // and then generate the ImplBase class to make the generation
            // complete for the Hierarchy.
            Arguments theArguments = (Arguments)Compile.compiler.arguments;
            if( (theArguments.TIEServer == true )
              &&(theArguments.emit == theArguments.All ) )
            {
                theArguments.TIEServer = false;
                // Generate the ImplBase class
                generateSkeleton ();
                // Revert in case file contains multiple interfaces
                theArguments.TIEServer = true;
            }
            generateStub ();
        }
        generateHolder ();
        generateHelper ();
    }
    intfType = SIGNATURE;
    generateInterface ();
    intfType = OPERATIONS;
    generateInterface ();
    intfType = 0;
  }
}