当前位置: 首页>>代码示例>>Java>>正文


Java AttributeEntry类代码示例

本文整理汇总了Java中com.sun.tools.corba.se.idl.AttributeEntry的典型用法代码示例。如果您正苦于以下问题:Java AttributeEntry类的具体用法?Java AttributeEntry怎么用?Java AttributeEntry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AttributeEntry类属于com.sun.tools.corba.se.idl包,在下文中一共展示了AttributeEntry类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: interfaceMethod

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 *
 **/
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 ();
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:AttributeGen.java

示例2: stub

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 *
 **/
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 ();
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:AttributeGen.java

示例3: skeleton

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 *
 **/
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 ();
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:AttributeGen.java

示例4: dispatchSkeleton

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 *
 **/
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 ();
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:AttributeGen.java

示例5: writeMethodTable

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 *
 **/
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 ();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:Skeleton.java

示例6: writeMethods

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 *
 **/
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 ();
        }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:Skeleton.java

示例7: abstractMethod

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 * <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 ();
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:AttributeGen24.java

示例8: interfaceMethod

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 * <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 ();
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:AttributeGen24.java

示例9: abstractMethod

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 * (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 ();
  }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:AttributeGen24.java

示例10: interfaceMethod

import com.sun.tools.corba.se.idl.AttributeEntry; //导入依赖的package包/类
/**
 * (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 ();
  }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:AttributeGen24.java


注:本文中的com.sun.tools.corba.se.idl.AttributeEntry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。