Class Nary


  • public class Nary
    extends Lop
    Lop to perform an operation on a variable number of operands.
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Lop
        Method to have Lops print their state. This is for debugging purposes.
        Specified by:
        toString in class Lop
      • getInstructions

        public String getInstructions​(String[] inputs,
                                      String output)
        Generate the complete instruction string for this Lop. This instruction string can have a variable number of input operands. It displays the following:
        • Execution type (CP, SPARK, etc.)
        • Operand delimiter (°)
        • Opcode (printf, etc.)
        • Operand delimiter (°)
        • Variable number of inputs, each followed by an operand delimiter (°)
          • Input consists of (label · data type · value type · is literal)
        • Output consisting of (label · data type · value type)
        Example:
        The following DML
        print('hello %s', 'world')
        generates the instruction string:
        CP°printf°hello %s·SCALAR·STRING·true°world·SCALAR·STRING·true°_Var1·SCALAR·STRING
        Overrides:
        getInstructions in class Lop