Class ReductionUtils


  • public final class ReductionUtils
    extends Object
    • Method Detail

      • javassistOp

        protected static Object javassistOp​(Object originalOp,
                                            ReducedOpInfo reducedInfo)
                                     throws Throwable
        Creates a Class given an Op and a ReducedOpInfo. This class implements a FunctionalInterface that is of a smaller arity than originalOp.
        Parameters:
        originalOp - - the Op that will be reduced
        reducedInfo - - the ReducedOpInfo containing the information required to reduce originalOp.
        Returns:
        a wrapper of originalOp taking arguments that are then mutated to satisfy originalOp, producing outputs that are then mutated to satisfy the desired output of the wrapper.
        Throws:
        Throwable