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

The following examples show how to use com.sun.tools.corba.se.idl.AttributeEntry. 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: AttributeGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void stub (String className, boolean isAbstract, Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.stub (className, isAbstract, symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.stub (className, isAbstract, symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #2
Source File: AttributeGen24.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * <d62023-klr> Added for 2.4 RTF
 **/
protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.abstractMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.abstractMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #3
Source File: AttributeGen.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void skeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.skeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.skeleton (symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #4
Source File: AttributeGen.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void stub (String className, boolean isAbstract, Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.stub (className, isAbstract, symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.stub (className, isAbstract, symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #5
Source File: AttributeGen.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void skeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.skeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.skeleton (symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #6
Source File: AttributeGen.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void dispatchSkeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.dispatchSkeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.dispatchSkeleton (symbolTable, m, stream, index + 1);
    clear ();
  }
}
 
Example #7
Source File: Skeleton.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeMethodTable ()
{
  // Write the methods hashtable
  stream.println ("  private static java.util.Hashtable _methods = new java.util.Hashtable ();");
  stream.println ("  static");
  stream.println ("  {");

  int count = -1;
  Enumeration e = methodList.elements ();
  while (e.hasMoreElements ())
  {
    MethodEntry method = (MethodEntry)e.nextElement ();
    if (method instanceof AttributeEntry)
    {
      stream.println ("    _methods.put (\"_get_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
      if (!((AttributeEntry)method).readOnly ())
        stream.println ("    _methods.put (\"_set_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
    }
    else
      stream.println ("    _methods.put (\"" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
  }
  stream.println ("  }");
  stream.println ();
}
 
Example #8
Source File: Skeleton.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeMethodTable ()
{
  // Write the methods hashtable
  stream.println ("  private static java.util.Hashtable _methods = new java.util.Hashtable ();");
  stream.println ("  static");
  stream.println ("  {");

  int count = -1;
  Enumeration e = methodList.elements ();
  while (e.hasMoreElements ())
  {
    MethodEntry method = (MethodEntry)e.nextElement ();
    if (method instanceof AttributeEntry)
    {
      stream.println ("    _methods.put (\"_get_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
      if (!((AttributeEntry)method).readOnly ())
        stream.println ("    _methods.put (\"_set_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
    }
    else
      stream.println ("    _methods.put (\"" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
  }
  stream.println ("  }");
  stream.println ();
}
 
Example #9
Source File: Skeleton.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeMethods ()
{
    int realI = 0;
    for (int i = 0; i < methodList.size (); ++i)
        {
            MethodEntry method = (MethodEntry)methodList.elementAt (i);
            ((MethodGen)method.generator ()).skeleton
                (symbolTable, method, stream, realI);
            if (method instanceof AttributeEntry &&
                !((AttributeEntry)method).readOnly ())
                realI += 2;
            else
                ++realI;
            stream.println ();
        }
}
 
Example #10
Source File: AttributeGen24.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * <d62023-klr> Added for 2.4 RTF
 **/
protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.abstractMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.abstractMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #11
Source File: AttributeGen24.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * <d62023-klr> Added for 2.4 RTF
 **/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.interfaceMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.interfaceMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #12
Source File: Skeleton.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeMethodTable ()
{
  // Write the methods hashtable
  stream.println ("  private static java.util.Hashtable _methods = new java.util.Hashtable ();");
  stream.println ("  static");
  stream.println ("  {");

  int count = -1;
  Enumeration e = methodList.elements ();
  while (e.hasMoreElements ())
  {
    MethodEntry method = (MethodEntry)e.nextElement ();
    if (method instanceof AttributeEntry)
    {
      stream.println ("    _methods.put (\"_get_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
      if (!((AttributeEntry)method).readOnly ())
        stream.println ("    _methods.put (\"_set_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
    }
    else
      stream.println ("    _methods.put (\"" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
  }
  stream.println ("  }");
  stream.println ();
}
 
Example #13
Source File: AttributeGen.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void dispatchSkeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.dispatchSkeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.dispatchSkeleton (symbolTable, m, stream, index + 1);
    clear ();
  }
}
 
Example #14
Source File: AttributeGen.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void skeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.skeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.skeleton (symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #15
Source File: AttributeGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.interfaceMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.interfaceMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #16
Source File: AttributeGen.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.interfaceMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.interfaceMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #17
Source File: AttributeGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void skeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.skeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.skeleton (symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #18
Source File: AttributeGen.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void dispatchSkeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.dispatchSkeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.dispatchSkeleton (symbolTable, m, stream, index + 1);
    clear ();
  }
}
 
Example #19
Source File: AttributeGen.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.interfaceMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.interfaceMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #20
Source File: Skeleton.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeMethodTable ()
{
  // Write the methods hashtable
  stream.println ("  private static java.util.Hashtable _methods = new java.util.Hashtable ();");
  stream.println ("  static");
  stream.println ("  {");

  int count = -1;
  Enumeration e = methodList.elements ();
  while (e.hasMoreElements ())
  {
    MethodEntry method = (MethodEntry)e.nextElement ();
    if (method instanceof AttributeEntry)
    {
      stream.println ("    _methods.put (\"_get_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
      if (!((AttributeEntry)method).readOnly ())
        stream.println ("    _methods.put (\"_set_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
    }
    else
      stream.println ("    _methods.put (\"" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
  }
  stream.println ("  }");
  stream.println ();
}
 
Example #21
Source File: Skeleton.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void writeMethods ()
{
    int realI = 0;
    for (int i = 0; i < methodList.size (); ++i)
        {
            MethodEntry method = (MethodEntry)methodList.elementAt (i);
            ((MethodGen)method.generator ()).skeleton
                (symbolTable, method, stream, realI);
            if (method instanceof AttributeEntry &&
                !((AttributeEntry)method).readOnly ())
                realI += 2;
            else
                ++realI;
            stream.println ();
        }
}
 
Example #22
Source File: AttributeGen24.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * <d62023-klr> Added for 2.4 RTF
 **/
protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.abstractMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.abstractMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #23
Source File: AttributeGen24.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * <d62023-klr> Added for 2.4 RTF
 **/
protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.abstractMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.abstractMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #24
Source File: AttributeGen.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void dispatchSkeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.dispatchSkeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.dispatchSkeleton (symbolTable, m, stream, index + 1);
    clear ();
  }
}
 
Example #25
Source File: AttributeGen.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void stub (String className, boolean isAbstract, Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.stub (className, isAbstract, symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.stub (className, isAbstract, symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #26
Source File: AttributeGen.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.interfaceMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.interfaceMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #27
Source File: AttributeGen.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.interfaceMethod (symbolTable, a, stream);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.interfaceMethod (symbolTable, a, stream);
    clear ();
  }
}
 
Example #28
Source File: AttributeGen.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void stub (String className, boolean isAbstract, Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.stub (className, isAbstract, symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.stub (className, isAbstract, symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #29
Source File: AttributeGen.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void skeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.skeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.skeleton (symbolTable, a, stream, index + 1);
    clear ();
  }
}
 
Example #30
Source File: AttributeGen.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 *
 **/
protected void dispatchSkeleton (Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
{
  AttributeEntry a = (AttributeEntry)m;

  // Generate for the get method
  super.dispatchSkeleton (symbolTable, a, stream, index);

  // Generate for the set method if the attribute is not readonly
  if (!a.readOnly ())
  {
    setupForSetMethod ();
    super.dispatchSkeleton (symbolTable, m, stream, index + 1);
    clear ();
  }
}