Java Code Examples for com.sun.tools.corba.se.idl.InterfaceEntry#name()
The following examples show how to use
com.sun.tools.corba.se.idl.InterfaceEntry#name() .
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 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 2
Source File: Helper.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 3
Source File: Helper.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 4
Source File: Helper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 5
Source File: Helper.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 6
Source File: Helper.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 7
Source File: Helper.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 8
Source File: Helper.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Return the stub name for the interface entry. **/ protected String stubName (InterfaceEntry entry) { String name; if (entry.container ().name ().equals ("")) name = '_' + entry.name () + "Stub"; else { name = Util.containerFullName (entry.container ()) + "._" + entry.name () + "Stub"; } return name.replace ('/', '.'); }
Example 9
Source File: MethodGen.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }
Example 10
Source File: MethodGen.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }
Example 11
Source File: MethodGen.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }
Example 12
Source File: MethodGen.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }
Example 13
Source File: MethodGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }
Example 14
Source File: MethodGen.java From hottub with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }
Example 15
Source File: MethodGen.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }
Example 16
Source File: MethodGen.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected void writeLocalStubBody (InterfaceEntry i) { // Step 1 Create a request String methodName = Util.stripLeadingUnderscores (m.name ()); if (m instanceof AttributeEntry) { if (m.type () == null) // if it's a modifier methodName = "_set_" + methodName; else methodName = "_get_" + methodName; } //stream.println (" while(true) {"); stream.println (" org.omg.CORBA.portable.ServantObject $so = " + "_servant_preinvoke (\"" + methodName + "\", " + "_opsClass);"); //stream.println (" if ($so == null) {"); //stream.println (" continue;"); //stream.println (" }"); String opsName = i.name() + "Operations"; stream.println (" " + opsName + " $self = " + "(" + opsName + ") " + "$so.servant;"); stream.println (); stream.println (" try {"); stream.print (" "); if (m.type () != null) // not a void method stream.print ("return "); stream.print ("$self." + m.name () + " ("); { // write parm names boolean firstTime = true; Enumeration e = m.parameters ().elements (); while (e.hasMoreElements ()) { if (firstTime) firstTime = false; else stream.print (", "); ParameterEntry parm = (ParameterEntry)e.nextElement (); stream.print (parm.name ()); } // Step 2. Add the context parameter if necessary. <d59297> if (m.contexts ().size () > 0) { if (!firstTime) stream.print (", "); stream.print ("$context"); } } stream.println (");"); //stream.println (" } catch (org.omg.CORBA.portable.RemarshalException $rm) {"); //stream.println (" continue; "); stream.println (" } finally {"); stream.println (" _servant_postinvoke ($so);"); stream.println (" }"); //stream.println (" }"); }