Package com.sun.tools.corba.ee.idl
Class StructEntry
java.lang.Object
com.sun.tools.corba.ee.idl.SymtabEntry
com.sun.tools.corba.ee.idl.StructEntry
- Direct Known Subclasses:
ExceptionEntry
This is the symbol table entry for structs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vector<SymtabEntry> private Vector<TypedefEntry> (package private) static StructGenFields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedStructEntry(StructEntry that) protectedStructEntry(SymtabEntry that, IDLID clone) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContained(SymtabEntry entry) voidaddMember(TypedefEntry member) Add a member to the member list.clone()This is a shallow copy cloneThis is a vector of SymtabEntry's.voidgenerate(Hashtable symbolTable, PrintWriter stream) Invoke the struct generator.Access the struct generator.members()This is a vector of TypedefEntry's.Methods inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
comment, comment, container, container, dynamicVariable, dynamicVariable, emit, emit, enteringInclude, exitingInclude, fullName, getVariableKey, growVars, initDynamicVars, isReferencable, isReferencable, module, module, name, name, repositoryID, repositoryID, sourceFile, sourceFile, type, type, typeName, typeName
-
Field Details
-
_members
-
_contained
-
structGen
-
-
Constructor Details
-
StructEntry
protected StructEntry() -
StructEntry
-
StructEntry
-
-
Method Details
-
clone
Description copied from class:SymtabEntryThis is a shallow copy clone- Overrides:
clonein classSymtabEntry
-
generate
Invoke the struct generator.- Overrides:
generatein classSymtabEntry- Parameters:
symbolTable- the symbol table is a hash table whose key is a fully qualified type name and whose value is a SymtabEntry or a subclass of SymtabEntry.stream- the stream to which the generator should sent its output.- See Also:
-
generator
Access the struct generator.- Overrides:
generatorin classSymtabEntry- Returns:
- an object which implements the StructGen interface.
- See Also:
-
addMember
Add a member to the member list.- Parameters:
member- member to add to list
-
members
This is a vector of TypedefEntry's. In this context, only the name, type, and arrayInfo fields hold any meaning.- Returns:
- a
Vectorof the members of the stuct
-
addContained
-
contained
This is a vector of SymtabEntry's. It itemizes any types which this struct contains. It is different than the member list. For example:struct A { long x; Struct B { long a; long b; } y; }Struct B is contained within struct A. The members vector will contain entries for x and y.- Returns:
- a
Vectorof theSymtabEntryin the Struct
-