Package gnu.mapping

Class Setter1

  • All Implemented Interfaces:
    Named

    public class Setter1
    extends Setter
    A special case of Setter, retricted to one argument (plus the RHS).
    • Constructor Detail

      • Setter1

        public Setter1​(Procedure getter)
    • Method Detail

      • 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
      • apply2

        public java.lang.Object apply2​(java.lang.Object arg,
                                       java.lang.Object value)
                                throws java.lang.Throwable
        Overrides:
        apply2 in class Procedure
        Throws:
        java.lang.Throwable
      • applyN

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