Class JrpcgenUnion

java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.JrpcgenUnion

public class JrpcgenUnion extends Object
The JrpcgenUnion class 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 Details

    • identifier

      public String identifier
      Union identifier.
    • descriminant

      public JrpcgenDeclaration descriminant
      JrpcgenDeclaration of descriminant element (containing its identifier and data type).
    • elements

      public Vector elements
      Contains arms of union. The arms are of class JrpcgenDeclaration. The keys are the descriminant values.
  • Constructor Details

    • JrpcgenUnion

      public JrpcgenUnion(String identifier, JrpcgenDeclaration descriminant, Vector elements)
      Constructs a JrpcgenUnion and sets the identifier, the descrimant element as well as all attribute elements.
      Parameters:
      identifier - Identifier to be declared.
      descriminant - Descriminant element of class JrpcgenDeclaration.
      elements - Vector of atrribute elements of class JrpcgenDeclaration.
  • Method Details

    • toString

      public String toString()
      Returns just the identifier.
      Overrides:
      toString in class Object
    • dump

      public void dump()
      Dumps the union together with its attribute elements end the descriminant to System.out.