本文整理汇总了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);
}
}
示例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 ()) + ';');
}
示例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) );
}
示例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;
}
示例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);
}
示例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);
}