Decompiled Code For DSUM( B2:E8, "Yield", B10:B11 )
The expression
=DSUM( B2:E8, "Yield", B10:B11 )
is compiled to the following class(es):
package org.formulacompiler.gen; import org.formulacompiler.runtime.Computation; import org.formulacompiler.runtime.internal.Environment; import org.formulacompiler.tests.reference.base.Inputs; import org.formulacompiler.tests.reference.base.Outputs; final class $Root extends Outputs implements Computation { private final Inputs $inputs; final Environment $environment; $Root(Inputs inputs, Environment environment) { $environment = environment; $inputs = inputs; } final double get$0() { return get$1(); } public final double dbl() { return get$0(); } final double get$1() { double d = 0.0; if (get$2("Apple")) d += 14.0; if (get$2("Pear")) d += 10.0; if (get$2("Cherry")) d += 9.0; if (get$2("Apple")) d += 10.0; if (get$2("Pear")) d += 8.0; if (get$2("Apple")) d += 6.0; return d; } final boolean get$2(String string) { if (string.equalsIgnoreCase("Apple")) return true; return false; } }