Inherits java.io.Serializable.
Public Member Functions | |
UnionMember (String name, boolean is_pointer, int[] labels, TypeCode type) | |
Public Attributes | |
String | name |
The name of the union member. | |
boolean | is_pointer |
Indicates whether the union member is a pointer or not. | |
int[] | labels |
The labels of the union member. | |
TypeCode | type |
The type of the union member. |
UnionMember | ( | String | name, | |
boolean | is_pointer, | |||
int[] | labels, | |||
TypeCode | type | |||
) |
Constructs a UnionMember object initialized with the given values.
String name |
The name of the union member.
Cannot be null.
boolean is_pointer |
Indicates whether the union member is a pointer or not.
int [] labels |
The labels of the union member.
Each union member should contain at least one label. If the union discriminator type is not int the label value should be evaluated to an integer value. For instance, 'a' would be evaluated to 97.