Class ApplyToArgs

  • All Implemented Interfaces:
    Named

    public class ApplyToArgs
    extends ProcedureN
    Implement the standard Scheme function "apply". This has been generalized so that the last (list argument) can be any sequence, or any primitive array coercible to Object[].
    • Field Detail

      • applyToObjectA2A

        public static final java.lang.invoke.MethodHandle applyToObjectA2A
      • applyToConsumerA2A

        public static final java.lang.invoke.MethodHandle applyToConsumerA2A
    • Constructor Detail

      • ApplyToArgs

        public ApplyToArgs​(java.lang.String name,
                           Language language)
    • Method Detail

      • index

        public static java.lang.Object index​(java.lang.CharSequence str,
                                             java.lang.Object index)
      • apply1

        public java.lang.Object apply1​(java.lang.Object arg1,
                                       java.lang.Object arg2)
                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • apply2

        public java.lang.Object apply2​(java.lang.Object arg1,
                                       java.lang.Object arg2)
                                throws java.lang.Throwable
        Overrides:
        apply2 in class Procedure
        Throws:
        java.lang.Throwable
      • apply3

        public java.lang.Object apply3​(java.lang.Object arg1,
                                       java.lang.Object arg2,
                                       java.lang.Object arg3)
                                throws java.lang.Throwable
        Overrides:
        apply3 in class Procedure
        Throws:
        java.lang.Throwable
      • apply4

        public java.lang.Object apply4​(java.lang.Object arg1,
                                       java.lang.Object arg2,
                                       java.lang.Object arg3,
                                       java.lang.Object arg4)
                                throws java.lang.Throwable
        Overrides:
        apply4 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 Procedure
        Throws:
        java.lang.Throwable
      • applyToConsumerA2A

        public static java.lang.Object applyToConsumerA2A​(Procedure proc,
                                                          CallContext ctx)
                                                   throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • applyToObjectA2A

        public static java.lang.Object applyToObjectA2A​(Procedure proc,
                                                        CallContext ctx)
                                                 throws java.lang.Throwable
        Throws:
        java.lang.Throwable