Package org.acplt.oncrpc.apps.jrpcgen
Class JrpcgenUnion
- java.lang.Object
-
- org.acplt.oncrpc.apps.jrpcgen.JrpcgenUnion
-
public class JrpcgenUnion extends java.lang.ObjectTheJrpcgenUnionclass represents a single union defined in an rpcgen "x"-file.- Version:
- $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:47 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
-
Field Summary
Fields Modifier and Type Field Description JrpcgenDeclarationdescriminantJrpcgenDeclarationof descriminant element (containing its identifier and data type).java.util.VectorelementsContains arms of union.java.lang.StringidentifierUnion identifier.
-
Constructor Summary
Constructors Constructor Description JrpcgenUnion(java.lang.String identifier, JrpcgenDeclaration descriminant, java.util.Vector elements)Constructs aJrpcgenUnionand sets the identifier, the descrimant element as well as all attribute elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump()Dumps the union together with its attribute elements end the descriminant toSystem.out.java.lang.StringtoString()Returns just the identifier.
-
-
-
Field Detail
-
identifier
public java.lang.String identifier
Union identifier.
-
descriminant
public JrpcgenDeclaration descriminant
JrpcgenDeclarationof descriminant element (containing its identifier and data type).
-
elements
public java.util.Vector elements
Contains arms of union. The arms are of classJrpcgenDeclaration. The keys are the descriminant values.
-
-
Constructor Detail
-
JrpcgenUnion
public JrpcgenUnion(java.lang.String identifier, JrpcgenDeclaration descriminant, java.util.Vector elements)Constructs aJrpcgenUnionand sets the identifier, the descrimant element as well as all attribute elements.- Parameters:
identifier- Identifier to be declared.descriminant- Descriminant element of classJrpcgenDeclaration.elements- Vector of atrribute elements of classJrpcgenDeclaration.
-
-