Package com.sun.tools.corba.ee.idl
Class UnionEntry
java.lang.Object
com.sun.tools.corba.ee.idl.SymtabEntry
com.sun.tools.corba.ee.idl.UnionEntry
This is the symbol table entry for unions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vector
<UnionBranch> A vector of UnionBranch's.private Vector
<SymtabEntry> private TypedefEntry
(package private) static UnionGen
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
UnionEntry
(SymtabEntry that, IDLID clone) protected
UnionEntry
(UnionEntry that) -
Method Summary
Modifier and TypeMethodDescription(package private) void
addBranch
(UnionBranch branch) void
addContained
(SymtabEntry entry) branches()
This is a vector of UnionBranch's.clone()
This is a shallow copy cloneThis is a vector ofSymtabEntry
s.This TypedefEntry describes the type and name for the default branch.void
defaultBranch
(TypedefEntry branch) This TypedefEntry describes the type and name for the default branch.void
generate
(Hashtable symbolTable, PrintWriter stream) Invoke the union generator.Access the union generator.(package private) boolean
has
(Expression label) (package private) boolean
has
(TypedefEntry typedef) 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
-
_branches
A vector of UnionBranch's. -
_defaultBranch
-
_contained
-
unionGen
-
-
Constructor Details
-
UnionEntry
protected UnionEntry() -
UnionEntry
-
UnionEntry
-
-
Method Details
-
clone
Description copied from class:SymtabEntry
This is a shallow copy clone- Overrides:
clone
in classSymtabEntry
-
generate
Invoke the union 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 union generator.- Overrides:
generator
in classSymtabEntry
- Returns:
- an object which implements the UnionGen interface.
- See Also:
-
addBranch
-
branches
This is a vector of UnionBranch's.- Returns:
- a
Vector
ofUnionBranch
-
defaultBranch
This TypedefEntry describes the type and name for the default branch. Like the entries in the branches vector, only the type and name fields are pertinent.- Parameters:
branch
- theTypedefEntry
for the default
-
defaultBranch
This TypedefEntry describes the type and name for the default branch. Like the entries in the branches vector, only the type and name fields are pertinent.- Returns:
TypedefEntry
for the default
-
addContained
-
contained
This is a vector ofSymtabEntry
s. It itemizes any types which this union contains. For example:union A switch (long) { case 0: long x; case 1: Struct B { long a; long b; } y; }
Struct B is contained within union A.- Returns:
- a Vector of
SymtabEntry
s contained within
-
has
-
has
-