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

The following examples show how to use com.sun.tools.corba.se.idl.GenFileStream. 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: UnionGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  // If the discriminator is an enum, assign the typePackage string.
  if (unionIsEnum)
    typePackage = Util.javaQualifiedName (utype) + '.';
  else
    typePackage = "";

  Util.writePackage (stream, u);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  String className = u.name ();
  stream.println ("public final class " + u.name () + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #2
Source File: StructGen.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, s);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (s.comment () != null)
    s.comment ().generate ("", stream);

  stream.print ("public final class " + s.name ());
  if (thisIsReallyAnException)
    stream.print (" extends org.omg.CORBA.UserException");
  else
    stream.print(" implements org.omg.CORBA.portable.IDLEntity");
  stream.println ();
  stream.println ("{");
}
 
Example #3
Source File: UnionGen.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  // If the discriminator is an enum, assign the typePackage string.
  if (unionIsEnum)
    typePackage = Util.javaQualifiedName (utype) + '.';
  else
    typePackage = "";

  Util.writePackage (stream, u);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  String className = u.name ();
  stream.println ("public final class " + u.name () + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #4
Source File: UnionGen.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  // If the discriminator is an enum, assign the typePackage string.
  if (unionIsEnum)
    typePackage = Util.javaQualifiedName (utype) + '.';
  else
    typePackage = "";

  Util.writePackage (stream, u);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  String className = u.name ();
  stream.println ("public final class " + u.name () + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #5
Source File: UnionGen.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  // If the discriminator is an enum, assign the typePackage string.
  if (unionIsEnum)
    typePackage = Util.javaQualifiedName (utype) + '.';
  else
    typePackage = "";

  Util.writePackage (stream, u);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  String className = u.name ();
  stream.println ("public final class " + u.name () + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #6
Source File: StructGen.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, s);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (s.comment () != null)
    s.comment ().generate ("", stream);

  stream.print ("public final class " + s.name ());
  if (thisIsReallyAnException)
    stream.print (" extends org.omg.CORBA.UserException");
  else
    stream.print(" implements org.omg.CORBA.portable.IDLEntity");
  stream.println ();
  stream.println ("{");
}
 
Example #7
Source File: UnionGen.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  // If the discriminator is an enum, assign the typePackage string.
  if (unionIsEnum)
    typePackage = Util.javaQualifiedName (utype) + '.';
  else
    typePackage = "";

  Util.writePackage (stream, u);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  String className = u.name ();
  stream.println ("public final class " + u.name () + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #8
Source File: StructGen.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, s);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (s.comment () != null)
    s.comment ().generate ("", stream);

  stream.print ("public final class " + s.name ());
  if (thisIsReallyAnException)
    stream.print (" extends org.omg.CORBA.UserException");
  else
    stream.print(" implements org.omg.CORBA.portable.IDLEntity");
  stream.println ();
  stream.println ("{");
}
 
Example #9
Source File: UnionGen.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  // If the discriminator is an enum, assign the typePackage string.
  if (unionIsEnum)
    typePackage = Util.javaQualifiedName (utype) + '.';
  else
    typePackage = "";

  Util.writePackage (stream, u);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  String className = u.name ();
  stream.println ("public final class " + u.name () + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #10
Source File: StructGen.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, s);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (s.comment () != null)
    s.comment ().generate ("", stream);

  stream.print ("public final class " + s.name ());
  if (thisIsReallyAnException)
    stream.print (" extends org.omg.CORBA.UserException");
  else
    stream.print(" implements org.omg.CORBA.portable.IDLEntity");
  stream.println ();
  stream.println ("{");
}
 
Example #11
Source File: UnionGen.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  // If the discriminator is an enum, assign the typePackage string.
  if (unionIsEnum)
    typePackage = Util.javaQualifiedName (utype) + '.';
  else
    typePackage = "";

  Util.writePackage (stream, u);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  String className = u.name ();
  stream.println ("public final class " + u.name () + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #12
Source File: StructGen.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, s);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (s.comment () != null)
    s.comment ().generate ("", stream);

  stream.print ("public final class " + s.name ());
  if (thisIsReallyAnException)
    stream.print (" extends org.omg.CORBA.UserException");
  else
    stream.print(" implements org.omg.CORBA.portable.IDLEntity");
  stream.println ();
  stream.println ("{");
}
 
Example #13
Source File: StructGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, s);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (s.comment () != null)
    s.comment ().generate ("", stream);

  stream.print ("public final class " + s.name ());
  if (thisIsReallyAnException)
    stream.print (" extends org.omg.CORBA.UserException");
  else
    stream.print(" implements org.omg.CORBA.portable.IDLEntity");
  stream.println ();
  stream.println ("{");
}
 
Example #14
Source File: StructGen.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, s);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (s.comment () != null)
    s.comment ().generate ("", stream);

  stream.print ("public final class " + s.name ());
  if (thisIsReallyAnException)
    stream.print (" extends org.omg.CORBA.UserException");
  else
    stream.print(" implements org.omg.CORBA.portable.IDLEntity");
  stream.println ();
  stream.println ("{");
}
 
Example #15
Source File: Stub.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, i, Util.StubFile);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  // Transfer interface comment to target <31jul1997>.
  if (i.comment () != null)
    i.comment ().generate ("", stream);

  writeClassDeclaration ();
  stream.println ('{');
}
 
Example #16
Source File: ConstGen.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Write the heading for the class defining the constant.
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, c);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());
  stream.println ("public interface " + c.name ());
      // should not be done according to the mapping
      // + " extends org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #17
Source File: ForwardValueGen.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, v);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (v.comment () != null)
    v.comment ().generate ("", stream);

  stream.print ("public class " + v.name () + " implements org.omg.CORBA.portable.IDLEntity");
    // There should ALWAYS be at least one:  ValueBase

  stream.println ("{");
}
 
Example #18
Source File: ConstGen.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Write the heading for the class defining the constant.
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, c);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());
  stream.println ("public interface " + c.name ());
      // should not be done according to the mapping
      // + " extends org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #19
Source File: ValueBoxGen.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
   *
   **/
  protected void writeHeading ()
  {
    Util.writePackage (stream, v);
    Util.writeProlog (stream, ((GenFileStream)stream).name ());
    if (v.comment () != null)
      v.comment ().generate ("", stream);
//  stream.println ("public class " + v.name () + " implements org.omg.CORBA.portable.ValueBase, org.omg.CORBA.portable.Streamable");
    stream.println ("public class " + v.name () + " implements org.omg.CORBA.portable.ValueBase"); // <d60929>
    stream.println ("{");
  }
 
Example #20
Source File: Util.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static GenFileStream getStream (String name, SymtabEntry entry)
{
  // <f46838.4>
  String absPathName = ((Arguments)Compile.compiler.arguments).targetDir + name;
  if (Compile.compiler.arguments.keepOldFiles && new File (absPathName).exists ())
    return null;
  else
    // Write the data to the file stream
    return new GenFileStream (absPathName);
}
 
Example #21
Source File: Skeleton.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected void writeHeading ()
{
  Util.writePackage (stream, i, Util.StubFile);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());
  if (i.comment () != null)
    i.comment ().generate ("", stream);
  writeClassDeclaration ();
  stream.println ('{');
  stream.println ();
}
 
Example #22
Source File: Skeleton.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected void writeHeading ()
{
  Util.writePackage (stream, i, Util.StubFile);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());
  if (i.comment () != null)
    i.comment ().generate ("", stream);
  writeClassDeclaration ();
  stream.println ('{');
  stream.println ();
}
 
Example #23
Source File: Skeleton.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected void writeHeading ()
{
  Util.writePackage (stream, i, Util.StubFile);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());
  if (i.comment () != null)
    i.comment ().generate ("", stream);
  writeClassDeclaration ();
  stream.println ('{');
  stream.println ();
}
 
Example #24
Source File: Util.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static GenFileStream getStream (String name, SymtabEntry entry)
{
  // <f46838.4>
  String absPathName = ((Arguments)Compile.compiler.arguments).targetDir + name;
  if (Compile.compiler.arguments.keepOldFiles && new File (absPathName).exists ())
    return null;
  else
    // Write the data to the file stream
    return new GenFileStream (absPathName);
}
 
Example #25
Source File: ForwardValueGen.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, v);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  if (v.comment () != null)
    v.comment ().generate ("", stream);

  stream.print ("public class " + v.name () + " implements org.omg.CORBA.portable.IDLEntity");
    // There should ALWAYS be at least one:  ValueBase

  stream.println ("{");
}
 
Example #26
Source File: ConstGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Write the heading for the class defining the constant.
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, c);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());
  stream.println ("public interface " + c.name ());
      // should not be done according to the mapping
      // + " extends org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #27
Source File: Util.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static GenFileStream getStream (String name, SymtabEntry entry)
{
  // <f46838.4>
  String absPathName = ((Arguments)Compile.compiler.arguments).targetDir + name;
  if (Compile.compiler.arguments.keepOldFiles && new File (absPathName).exists ())
    return null;
  else
    // Write the data to the file stream
    return new GenFileStream (absPathName);
}
 
Example #28
Source File: EnumGen.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Write the heading of the enumeration class, including the package,
 * imports, class statement, and open curly.
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, e);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());
  if (e.comment () != null)
    e.comment ().generate ("", stream);
  stream.println ("public class " + className + " implements org.omg.CORBA.portable.IDLEntity");
  stream.println ("{");
}
 
Example #29
Source File: Stub.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 **/
protected void writeHeading ()
{
  Util.writePackage (stream, i, Util.StubFile);
  Util.writeProlog (stream, ((GenFileStream)stream).name ());

  // Transfer interface comment to target <31jul1997>.
  if (i.comment () != null)
    i.comment ().generate ("", stream);

  writeClassDeclaration ();
  stream.println ('{');
}
 
Example #30
Source File: Util.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static GenFileStream getStream (String name, SymtabEntry entry)
{
  // <f46838.4>
  String absPathName = ((Arguments)Compile.compiler.arguments).targetDir + name;
  if (Compile.compiler.arguments.keepOldFiles && new File (absPathName).exists ())
    return null;
  else
    // Write the data to the file stream
    return new GenFileStream (absPathName);
}