Package gnu.mapping

Class Setter0

All Implemented Interfaces:
Named

public class Setter0 extends Setter
A special case of Setter, retricted to no arguments, except the RHS.
  • Constructor Details

  • Method Details

    • numArgs

      public int numArgs()
      Description copied from class: Procedure
      Return minArgs()|(maxArgs<<12). We use a single virtual function to reduce the number of methods in the system, as well as the number of virtual method table entries. We shift by 12 so the number can normally be represented using a sipush instruction, without requiring a constant pool entry.
      Overrides:
      numArgs in class Setter
    • apply1

      public Object apply1(Object result) throws Throwable
      Overrides:
      apply1 in class Procedure
      Throws:
      Throwable
    • applyN

      public Object applyN(Object[] args) throws Throwable
      Overrides:
      applyN in class Setter
      Throws:
      Throwable