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


Java SymtabEntry.type方法代码示例

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


在下文中一共展示了SymtabEntry.type方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeMembers

import com.sun.tools.corba.se.idl.SymtabEntry; //导入方法依赖的package包/类
/**
 *
 **/
protected void writeMembers ()
{
  // Write members and populate quality arrays
  int size = s.members ().size ();
  memberIsPrimitive = new boolean [size];
  memberIsInterface = new boolean [size];
  memberIsTypedef   = new boolean [size];
  for (int i = 0; i < s.members ().size (); ++i)
  {
    SymtabEntry member = (SymtabEntry)s.members ().elementAt (i);
    memberIsPrimitive[i] = member.type () instanceof PrimitiveEntry;
    memberIsInterface[i] = member.type () instanceof InterfaceEntry;
    memberIsTypedef[i]   = member.type () instanceof TypedefEntry;
    Util.fillInfo (member);
    // Transfer member comment to target <31jul1997>.
    if (member.comment () != null)
       member.comment ().generate ("  ", stream);
    Util.writeInitializer ("  public ", member.name (), "", member, stream);
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:24,代码来源:StructGen.java

示例2: writeConstValue

import com.sun.tools.corba.se.idl.SymtabEntry; //导入方法依赖的package包/类
/**
 * Write the constant's value according to its type.
 **/
private void writeConstValue (SymtabEntry type)
{
  if (type instanceof PrimitiveEntry)
    stream.println ('(' + Util.javaName (type) + ")(" + Util.parseExpression (c.value ()) + ");");
  else if (type instanceof StringEntry)
    stream.println (Util.parseExpression (c.value ()) + ';');
  else if (type instanceof TypedefEntry)
  {
    while (type instanceof TypedefEntry)
      type = type.type ();
    writeConstValue (type);
  }
  else
    stream.println (Util.parseExpression (c.value ()) + ';');
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:ConstGen.java

示例3: hasRepId

import com.sun.tools.corba.se.idl.SymtabEntry; //导入方法依赖的package包/类
private static boolean hasRepId (SymtabEntry member)
{
  SymtabEntry mType = Util.typeOf (member);
  return !( mType instanceof PrimitiveEntry ||
            mType instanceof StringEntry ||
            ( mType instanceof TypedefEntry &&
              !(((TypedefEntry)mType).arrayInfo ().isEmpty ()) ) ||
            ( mType instanceof TypedefEntry && member.type () instanceof SequenceEntry) );
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:ValueGen.java

示例4: typeOf

import com.sun.tools.corba.se.idl.SymtabEntry; //导入方法依赖的package包/类
/**
 *
 **/
public static SymtabEntry typeOf (SymtabEntry entry)
{
  while (entry instanceof TypedefEntry && ((TypedefEntry)entry).arrayInfo ().isEmpty () && !(entry.type () instanceof SequenceEntry))
    entry = entry.type ();
  return entry;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:Util.java

示例5: fillValueBoxInfo

import com.sun.tools.corba.se.idl.SymtabEntry; //导入方法依赖的package包/类
/**
 *
 **/
static void fillValueBoxInfo (ValueBoxEntry vb)
{
  SymtabEntry stateMember = (((InterfaceState) vb.state ().elementAt (0)).entry);
  if (stateMember.type() != null)
    Util.fillInfo (stateMember.type ());
  Util.fillInfo (stateMember);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:Util.java

示例6: checkForBounds

import com.sun.tools.corba.se.idl.SymtabEntry; //导入方法依赖的package包/类
/**
 * Determine the import lines for template types.
 **/
static private void checkForBounds (SymtabEntry entry, Vector importTypes, Vector importList)
{
  // Obtain actual type, just to be complete.
  SymtabEntry entryType = entry;
  while (entryType instanceof TypedefEntry)
    entryType = entryType.type ();

  if (entryType instanceof StringEntry && ((StringEntry)entryType).maxSize () != null)
    checkForGlobalConstants (((StringEntry)entryType).maxSize ().rep (), importTypes, importList);
  else
    if (entryType instanceof SequenceEntry && ((SequenceEntry)entryType).maxSize () != null)
      checkForGlobalConstants (((SequenceEntry)entryType).maxSize ().rep (), importTypes, importList);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:Util.java


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