Class JrpcgenDeclaration

java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration
All Implemented Interfaces:
Cloneable, JrpcgenItem

public class JrpcgenDeclaration extends JrpcgenDocumentable implements JrpcgenItem, Cloneable
The JrpcgenDeclaration class represents a single declaration from an rpcgen "x"-file.
Version:
$Revision: 1.2 $ $Date: 2003/08/14 08:08:34 $ $State: Exp $ $Locker: $
Author:
Harald Albrecht
  • Constructor Details

    • JrpcgenDeclaration

      public JrpcgenDeclaration(String identifier, JrpcgenTypeMapping typeMapping)
      Constructs a JrpcgenDeclaration and sets the identifier and its data type. The kind of the declaration is assumed to be
      invalid reference
      JrpcgenDeclaration#SCALAR
      .
      Parameters:
      identifier - Identifier to be declared.
      type - Data type the identifier is declared of.
    • JrpcgenDeclaration

      public JrpcgenDeclaration(String identifier, JrpcgenTypeMapping typeMapping, JrpcgenDeclaration.Kind kind, String size)
      Constructs a JrpcgenDeclaration and sets the identifier, its data type, kind and size of vector. This constructur is typically used when declaring either fixed-size or dynamic arrays.
      Parameters:
      identifier - Identifier to be declared.
      kind - Kind of declaration (scalar, vector, indirection).
      size - Size of array (if fixed-sized or bounded, otherwise null).
      type - Data type the identifier is declared of.
  • Method Details