Java Code Examples for com.sun.tools.corba.se.idl.InterfaceEntry#isLocalServant()
The following examples show how to use
com.sun.tools.corba.se.idl.InterfaceEntry#isLocalServant() .
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: Helper.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 2
Source File: Helper.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 3
Source File: Helper.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 4
Source File: Helper.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 5
Source File: Helper.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 6
Source File: Helper.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 7
Source File: Helper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 8
Source File: Helper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 9
Source File: Helper.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 10
Source File: Helper.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 11
Source File: Helper.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 12
Source File: Helper.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 13
Source File: Helper.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 14
Source File: Helper.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 15
Source File: Helper.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Generate the read method. **/ protected void writeRead () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static " + helperType + " read (org.omg.CORBA.portable.InputStream istream)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperRead (helperType, entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }
Example 16
Source File: Helper.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Generate the write method. **/ protected void writeWrite () { boolean isLocalInterface = false; if (entry instanceof InterfaceEntry) { InterfaceEntry ie = (InterfaceEntry) entry; // for #pragma sun_local or sun_localservant, or actual local // local interface, set the flag by checking on both isLocalInterface = ie.isLocal() | ie.isLocalServant(); } stream.println (" public static void write (org.omg.CORBA.portable.OutputStream ostream, " + helperType + " value)"); stream.println (" {"); if ( !isLocalInterface ) { // nonLocal Interface and other types ((JavaGenerator)entry.generator ()).helperWrite (entry, stream); } else { //Local interface should throw exception stream.println (" throw new org.omg.CORBA.MARSHAL ();"); } stream.println (" }"); stream.println (); }