Class RpCommandList

  • All Implemented Interfaces:
    java.io.Serializable

    public final class RpCommandList
    extends java.lang.Object
    implements java.io.Serializable
    A list of commands
    See Also:
    RpEval, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RpCommandList()
      Package private constructor
    • Constructor Detail

      • RpCommandList

        public RpCommandList()
        Package private constructor
    • Method Detail

      • addCommand

        public final void addCommand​(short command,
                                     short aux)
        Adds a command to the list
      • addCommand

        public final void addCommand​(short command)
      • getNumCommands

        public int getNumCommands()
      • getCommand

        public RpCommand getCommand​(int i)
      • toString

        public java.lang.String toString()
        Basic toString method.
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(RpEval rpe)
        Enhanced RpCommand to String conversion. Used when rpe instance is available, prints the values of the constants, variables and functions.
        Parameters:
        rpe - an RpEval instance to use
        Returns:
        String representation, one command per line