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


Java ModuleEntry类代码示例

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


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

示例1: generate

import com.sun.tools.corba.se.idl.ModuleEntry; //导入依赖的package包/类
/**
 * Generate Java code for all members of an IDL module.
 **/
public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream)
{
  // Generate the package directory
  String name = Util.containerFullName( entry ) ;
  Util.mkdir (name);

  // Generate all of the contained types
  Enumeration e = entry.contained ().elements ();
  while (e.hasMoreElements ())
  {
    SymtabEntry element = (SymtabEntry)e.nextElement ();
    if (element.emit ())
      element.generate (symbolTable, stream);
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:ModuleGen.java

示例2: generate

import com.sun.tools.corba.se.idl.ModuleEntry; //导入依赖的package包/类
/**
 * Generate Java code for an IDL constant.  A constant is written to
 * a new class only when it is not a member of an interface; otherwise
 * it written to the interface class in which it resides.
 **/
public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s)
{
  this.symbolTable = symbolTable;
  this.c           = c;
  this.stream      = s;
  init ();

  if (c.container () instanceof ModuleEntry)
    generateConst ();
  else if (stream != null)
    writeConstExpr ();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:ConstGen.java

示例3: writeConstExpr

import com.sun.tools.corba.se.idl.ModuleEntry; //导入依赖的package包/类
/**
 * Write the entire constant expression and any comment, if present.
 **/
protected void writeConstExpr ()
{
  if (c.comment () != null)
    c.comment ().generate ("  ", stream);
  if (c.container () instanceof ModuleEntry) {

    stream.print ("  public static final " + Util.javaName (c.type ()) + " value = ");
  } else {
    stream.print ("  public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = ");
  }
  writeConstValue (c.type ());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:ConstGen.java


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