Class JrpcgenProgramInfo

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

class JrpcgenProgramInfo extends Object
The JrpcgenProgramInfo class contains information about a single ONC/RPC program as defined in an rpcgen "x"-file.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:46 $ $State: Exp $ $Locker: $
Author:
Harald Albrecht
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Identifier assigned to the program number of an ONC/RPC program.
    Program number assigned to an ONC/RPC program.
    Set of versions specified for a particular ONC/RPC program.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JrpcgenProgramInfo(String programId, String programNumber, Vector versions)
    Construct a new JrpcgenProgramInfo object containing the programs's identifier and number, as well as the versions defined for this particular ONC/RPC program.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Generates source code to define all constants belonging to this program.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • programNumber

      public String programNumber
      Program number assigned to an ONC/RPC program. This attribute contains either an integer literal or an identifier (which must resolve to an integer).
    • programId

      public String programId
      Identifier assigned to the program number of an ONC/RPC program.
    • versions

      public Vector versions
      Set of versions specified for a particular ONC/RPC program. The elements in the set are of class JrpcgenVersionInfo.
  • Constructor Details

    • JrpcgenProgramInfo

      public JrpcgenProgramInfo(String programId, String programNumber, Vector versions)
      Construct a new JrpcgenProgramInfo object containing the programs's identifier and number, as well as the versions defined for this particular ONC/RPC program.
      Parameters:
      programId - Identifier defined for this ONC/RPC program.
      programNumber - Program number assigned to this ONC/RPC program.
      versions - Vector of versions defined for this ONC/RPC program.
  • Method Details

    • dumpConstants

      public void dumpConstants(PrintWriter out)
      Generates source code to define all constants belonging to this program.
      Parameters:
      out - PrintWriter to send source code to.