Class RpCommand

java.lang.Object
com.singularsys.extensions.fastreal.RpCommand
All Implemented Interfaces:
Serializable

public final class RpCommand extends Object implements Serializable
Data type for the command string
See Also:
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public 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 the 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: