Class UnionBranch

java.lang.Object
com.sun.tools.corba.ee.idl.UnionBranch

public class UnionBranch extends 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 Details

    • typedef

      public TypedefEntry typedef
      The type definition for the branch.
    • labels

      public 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.
  • Constructor Details

    • UnionBranch

      public UnionBranch()