Class RpCommand

  • All Implemented Interfaces:
    java.io.Serializable

    public final class RpCommand
    extends java.lang.Object
    implements java.io.Serializable
    Data type for the command string
    See Also:
    RpEval, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getRef()
      Additional data, the number of the constant, variable, operator or function.
      short getType()
      Returns the type of an individual command.
      java.lang.String toString()  
      java.lang.String toString​(RpEval rpe)
      Enhanced RpCommand to String conversion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        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
      • getType

        public short getType()
        Returns the type of an individual command. The return value will be one of the constants defined in RpEval. These include RpEval.CONST - constants, RpEval.VAR - variables, RpEval.ASSIGN assignments x=..., RpEval.FUN functions. Other indices correspond to unary and binary operators, RpEval.ADD.
        Returns:
        an integer representing the type
      • getRef

        public short getRef()
        Additional data, the number of the constant, variable, operator or function.
        Returns: