Interface ParameterDefinition

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getComment()
      Get the Comment for this variable
      DataType getDataType()
      Get the Data Type of this variable
      int getLength()
      Get the length of this variable
      java.lang.String getName()
      Get the Name of this variable.
      int getOrdinal()
      Returns the ordinal (index) of this parameter within the function signature.
      boolean isEquivalent​(ParameterDefinition parm)
      Returns true if the specified parameter definition represents the same parameter by ordinal and dataType
      boolean isEquivalent​(Variable variable)
      Returns true if the specified variable represents the same parameter by ordinal and dataType
      void setComment​(java.lang.String comment)
      Set the comment for this variable
      void setDataType​(DataType type)
      Set the Data Type of this variable.
      void setName​(java.lang.String name)
      Set the name of this variable.
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Method Detail

      • getOrdinal

        int getOrdinal()
        Returns the ordinal (index) of this parameter within the function signature.
      • getDataType

        DataType getDataType()
        Get the Data Type of this variable
        Returns:
        the data type of the variable
      • setDataType

        void setDataType​(DataType type)
                  throws InvalidInputException
        Set the Data Type of this variable. The given dataType must have a fixed length.
        Parameters:
        type - the data type
        Throws:
        InvalidInputException - if data type is not a fixed length or will not fit.
      • getName

        java.lang.String getName()
        Get the Name of this variable.
        Returns:
        the name of the variable or null if no name has been specified.
      • getLength

        int getLength()
        Get the length of this variable
        Returns:
        the length of the variable
      • setName

        void setName​(java.lang.String name)
        Set the name of this variable.
        Parameters:
        name - the name
      • getComment

        java.lang.String getComment()
        Get the Comment for this variable
        Returns:
        the comment
      • setComment

        void setComment​(java.lang.String comment)
        Set the comment for this variable
        Parameters:
        comment - the comment
      • isEquivalent

        boolean isEquivalent​(Variable variable)
        Returns true if the specified variable represents the same parameter by ordinal and dataType
      • isEquivalent

        boolean isEquivalent​(ParameterDefinition parm)
        Returns true if the specified parameter definition represents the same parameter by ordinal and dataType