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 StructGen
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
StructEntry
(StructEntry that) protected
StructEntry
(SymtabEntry that, IDLID clone) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContained
(SymtabEntry entry) void
addMember
(TypedefEntry member) Add a member to the member list.clone()
This is a shallow copy cloneThis is a vector of SymtabEntry's.void
generate
(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:SymtabEntry
This is a shallow copy clone- Overrides:
clone
in classSymtabEntry
-
generate
Invoke the struct generator.- Overrides:
generate
in 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:
generator
in 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
Vector
of 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
Vector
of theSymtabEntry
in the Struct
-