Class RpCommand
- java.lang.Object
-
- com.singularsys.extensions.fastreal.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.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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:
-
-