Package com.sun.tools.corba.ee.idl
Class UnionBranch
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.UnionBranch
-
public class UnionBranch extends java.lang.Object
This class encapsulates one branch of a union. Here are some examples of what it may contain:- case 1: short x;
- <short x, <1>, false>
- case 0: case 8: case 2: long x;
- <long x, <0, 8, 2>, false>
- default: long x;
- <long x, <>, true>
- case 0: case 2: default: char c;
- <char c, <0, 2>, true>
-
-
Field Summary
Fields Modifier and Type Field Description boolean
isDefault
true if this is the default branch.java.util.Vector<Expression>
labels
A vector of Expression's, one for each label in the order in which they appear in the IDL file.TypedefEntry
typedef
The type definition for the branch.
-
Constructor Summary
Constructors Constructor Description UnionBranch()
-
-
-
Field Detail
-
typedef
public TypedefEntry typedef
The type definition for the branch.
-
labels
public java.util.Vector<Expression> labels
A vector of Expression's, one for each label in the order in which they appear in the IDL file. The default branch has no label.
-
isDefault
public boolean isDefault
true if this is the default branch.
-
-