com.sun.tools.corba.se.idl.ParameterEntry Java Examples

The following examples show how to use com.sun.tools.corba.se.idl.ParameterEntry. 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: MethodGen24.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #2
Source File: MethodGen24.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #3
Source File: MethodGen24.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #4
Source File: MethodGen24.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #5
Source File: MethodGen24.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #6
Source File: MethodGen24.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #7
Source File: MethodGen24.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #8
Source File: MethodGen24.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Print the parameter list for the factory method.
 * @param m The method to list parameters for
 * @param listTypes If try, declare the parms, otherwise just list them
 * @param stream The PrintWriter to print on
 */
protected void writeParmList (MethodEntry m, boolean listTypes, PrintWriter stream) {
  boolean firstTime = true;
  Enumeration e = m.parameters ().elements ();
  while (e.hasMoreElements ())
  {
    if (firstTime)
      firstTime = false;
    else
      stream.print (", ");
    ParameterEntry parm = (ParameterEntry)e.nextElement ();
    if (listTypes) {
      writeParmType (parm.type (), parm.passType ());
      stream.print (' ');
    }
    // Print parm name
    stream.print (parm.name ());
    // end of parameter list
  }
}
 
Example #9
Source File: MethodGen.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
private void writeSkeletonBody ()
{
  SymtabEntry mtype = Util.typeOf (m.type ());

  // If there is a return value, increment the appropriate counter
  stream.print ("    ");
  if (mtype != null)
    stream.print ("return ");
  stream.print ("_impl." + m.name () + '(');

  // Load the parameters
  Enumeration parms = m.parameters ().elements ();
  boolean first = true;
  while (parms.hasMoreElements ())
  {
    ParameterEntry parm = (ParameterEntry)parms.nextElement ();
    if (first)
      first = false;
    else
      stream.print (", ");
    stream.print (parm.name ());
  }
  if (m.contexts ().size () != 0)
  {
    if (!first)
      stream.print (", ");
    stream.print ("$context");
  }

  stream.println (");");
}
 
Example #10
Source File: AttributeGen.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #11
Source File: MethodGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
private void writeSkeletonBody ()
{
  SymtabEntry mtype = Util.typeOf (m.type ());

  // If there is a return value, increment the appropriate counter
  stream.print ("    ");
  if (mtype != null)
    stream.print ("return ");
  stream.print ("_impl." + m.name () + '(');

  // Load the parameters
  Enumeration parms = m.parameters ().elements ();
  boolean first = true;
  while (parms.hasMoreElements ())
  {
    ParameterEntry parm = (ParameterEntry)parms.nextElement ();
    if (first)
      first = false;
    else
      stream.print (", ");
    stream.print (parm.name ());
  }
  if (m.contexts ().size () != 0)
  {
    if (!first)
      stream.print (", ");
    stream.print ("$context");
  }

  stream.println (");");
}
 
Example #12
Source File: AttributeGen.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #13
Source File: MethodGen.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
private void writeSkeletonBody ()
{
  SymtabEntry mtype = Util.typeOf (m.type ());

  // If there is a return value, increment the appropriate counter
  stream.print ("    ");
  if (mtype != null)
    stream.print ("return ");
  stream.print ("_impl." + m.name () + '(');

  // Load the parameters
  Enumeration parms = m.parameters ().elements ();
  boolean first = true;
  while (parms.hasMoreElements ())
  {
    ParameterEntry parm = (ParameterEntry)parms.nextElement ();
    if (first)
      first = false;
    else
      stream.print (", ");
    stream.print (parm.name ());
  }
  if (m.contexts ().size () != 0)
  {
    if (!first)
      stream.print (", ");
    stream.print ("$context");
  }

  stream.println (");");
}
 
Example #14
Source File: AttributeGen.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #15
Source File: MethodGen.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}
 
Example #16
Source File: MethodGen.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}
 
Example #17
Source File: AttributeGen.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #18
Source File: MethodGen.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}
 
Example #19
Source File: AttributeGen.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #20
Source File: MethodGen.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
private void writeSkeletonBody ()
{
  SymtabEntry mtype = Util.typeOf (m.type ());

  // If there is a return value, increment the appropriate counter
  stream.print ("    ");
  if (mtype != null)
    stream.print ("return ");
  stream.print ("_impl." + m.name () + '(');

  // Load the parameters
  Enumeration parms = m.parameters ().elements ();
  boolean first = true;
  while (parms.hasMoreElements ())
  {
    ParameterEntry parm = (ParameterEntry)parms.nextElement ();
    if (first)
      first = false;
    else
      stream.print (", ");
    stream.print (parm.name ());
  }
  if (m.contexts ().size () != 0)
  {
    if (!first)
      stream.print (", ");
    stream.print ("$context");
  }

  stream.println (");");
}
 
Example #21
Source File: MethodGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}
 
Example #22
Source File: MethodGen.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}
 
Example #23
Source File: AttributeGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #24
Source File: MethodGen.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}
 
Example #25
Source File: MethodGen.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}
 
Example #26
Source File: MethodGen.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
private void writeSkeletonBody ()
{
  SymtabEntry mtype = Util.typeOf (m.type ());

  // If there is a return value, increment the appropriate counter
  stream.print ("    ");
  if (mtype != null)
    stream.print ("return ");
  stream.print ("_impl." + m.name () + '(');

  // Load the parameters
  Enumeration parms = m.parameters ().elements ();
  boolean first = true;
  while (parms.hasMoreElements ())
  {
    ParameterEntry parm = (ParameterEntry)parms.nextElement ();
    if (first)
      first = false;
    else
      stream.print (", ");
    stream.print (parm.name ());
  }
  if (m.contexts ().size () != 0)
  {
    if (!first)
      stream.print (", ");
    stream.print ("$context");
  }

  stream.println (");");
}
 
Example #27
Source File: AttributeGen.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #28
Source File: AttributeGen.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void setupForSetMethod ()
{
  ParameterEntry parm = Compile.compiler.factory.parameterEntry ();
  parm.type (m.type ());
  parm.name ("new" + Util.capitalize (m.name ()));
  m.parameters ().addElement (parm);
  realType = m.type ();
  m.type (null);
}
 
Example #29
Source File: MethodGen.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
private void writeSkeletonBody ()
{
  SymtabEntry mtype = Util.typeOf (m.type ());

  // If there is a return value, increment the appropriate counter
  stream.print ("    ");
  if (mtype != null)
    stream.print ("return ");
  stream.print ("_impl." + m.name () + '(');

  // Load the parameters
  Enumeration parms = m.parameters ().elements ();
  boolean first = true;
  while (parms.hasMoreElements ())
  {
    ParameterEntry parm = (ParameterEntry)parms.nextElement ();
    if (first)
      first = false;
    else
      stream.print (", ");
    stream.print (parm.name ());
  }
  if (m.contexts ().size () != 0)
  {
    if (!first)
      stream.print (", ");
    stream.print ("$context");
  }

  stream.println (");");
}
 
Example #30
Source File: MethodGen.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeParmType (SymtabEntry parm, int passType)
{
  if (passType != ParameterEntry.In)
  {
    parm = Util.typeOf (parm);
    stream.print (Util.holderName (parm));
  }
  else // passType is `in'
    // <f46082.51> Remove -stateful feature; javaStatefulName() obsolete.
    //stream.print (Util.javaStatefulName (parm));
    stream.print (Util.javaName (parm));
}