public class UnionEntry extends SymtabEntry
Modifier | Constructor and Description |
---|---|
protected |
UnionEntry() |
protected |
UnionEntry(SymtabEntry that,
IDLID clone) |
protected |
UnionEntry(UnionEntry that) |
Modifier and Type | Method and Description |
---|---|
void |
addBranch(UnionBranch branch) |
void |
addContained(SymtabEntry entry) |
Vector |
branches()
This is a vector of UnionBranch's.
|
Object |
clone()
This is a shallow copy clone
|
Vector |
contained()
This is a vector of SymtabEntry's.
|
TypedefEntry |
defaultBranch()
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.
|
Generator |
generator()
Access the union generator.
|
comment, comment, container, container, dynamicVariable, dynamicVariable, emit, emit, fullName, getVariableKey, isReferencable, isReferencable, module, module, name, name, repositoryID, repositoryID, sourceFile, sourceFile, type, type, typeName, typeName
protected UnionEntry()
protected UnionEntry(UnionEntry that)
protected UnionEntry(SymtabEntry that, IDLID clone)
public Object clone()
SymtabEntry
clone
in class SymtabEntry
public void generate(Hashtable symbolTable, PrintWriter stream)
generate
in class SymtabEntry
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.SymtabEntry
public Generator generator()
generator
in class SymtabEntry
UnionGen
public void addBranch(UnionBranch branch)
public Vector branches()
public void defaultBranch(TypedefEntry branch)
public TypedefEntry defaultBranch()
public void addContained(SymtabEntry entry)
public Vector contained()
union A switch (long) { case 0: long x; case 1: Struct B { long a; long b; } y; }Struct B is contained within union A.
Copyright © 2017 JBoss by Red Hat. All rights reserved.