public class JrpcgenUnion extends Object
JrpcgenUnion
class represents a single union defined
in an rpcgen "x"-file.Modifier and Type | Field and Description |
---|---|
JrpcgenDeclaration |
descriminant
JrpcgenDeclaration of descriminant element (containing its
identifier and data type). |
Vector |
elements
Contains arms of union.
|
String |
identifier
Union identifier.
|
Constructor and Description |
---|
JrpcgenUnion(String identifier,
JrpcgenDeclaration descriminant,
Vector elements)
Constructs a
JrpcgenUnion and sets the identifier, the
descrimant element as well as all attribute elements. |
Modifier and Type | Method and Description |
---|---|
void |
dump()
Dumps the union together with its attribute elements end the
descriminant to
System.out . |
String |
toString()
Returns just the identifier.
|
public String identifier
public JrpcgenDeclaration descriminant
JrpcgenDeclaration
of descriminant element (containing its
identifier and data type).public Vector elements
JrpcgenDeclaration
. The keys are the descriminant values.public JrpcgenUnion(String identifier, JrpcgenDeclaration descriminant, Vector elements)
JrpcgenUnion
and sets the identifier, the
descrimant element as well as all attribute elements.identifier
- Identifier to be declared.descriminant
- Descriminant element of class
JrpcgenDeclaration
.elements
- Vector of atrribute elements of class
JrpcgenDeclaration
.Copyright © 2022. All rights reserved.