- java.lang.Object
-
- org.scijava.ops.engine.matcher.reduce.ReductionUtils
-
public final class ReductionUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static ObjectjavassistOp(Object originalOp, ReducedOpInfo reducedInfo)Creates a Class given an Op and aReducedOpInfo.
-
-
-
Method Detail
-
javassistOp
protected static Object javassistOp(Object originalOp, ReducedOpInfo reducedInfo) throws Throwable
Creates a Class given an Op and aReducedOpInfo. This class implements aFunctionalInterfacethat is of a smaller arity thanoriginalOp.- Parameters:
originalOp- - the Op that will be reducedreducedInfo- - theReducedOpInfocontaining the information required to reduceoriginalOp.- Returns:
- a wrapper of
originalOptaking arguments that are then mutated to satisfyoriginalOp, producing outputs that are then mutated to satisfy the desired output of the wrapper. - Throws:
Throwable
-
-