Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.cloudbees.groovy.cps.CpsDefaultGroovyMethods Maven / Gradle / Ivy
package com.cloudbees.groovy.cps;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.SortedSet;
import javax.annotation.Generated;
import com.cloudbees.groovy.cps.impl.Caller;
import com.cloudbees.groovy.cps.impl.CpsCallableInvocation;
import com.cloudbees.groovy.cps.impl.CpsFunction;
import groovy.lang.Closure;
import groovy.lang.DelegatingMetaClass;
import groovy.lang.ExpandoMetaClass;
import groovy.lang.GroovyObject;
import groovy.lang.GroovyRuntimeException;
import groovy.lang.GroovySystem;
import groovy.lang.ListWithDefault;
import groovy.lang.MapWithDefault;
import groovy.lang.MetaClass;
import groovy.lang.MetaClassImpl;
import groovy.lang.MetaClassRegistry;
import groovy.util.ClosureComparator;
import groovy.util.GroovyCollections;
import groovy.util.MapEntry;
import groovy.util.PermutationGenerator;
import org.codehaus.groovy.reflection.ClassInfo;
import org.codehaus.groovy.runtime.DefaultGroovyMethods;
import org.codehaus.groovy.runtime.DefaultGroovyMethodsSupport;
import org.codehaus.groovy.runtime.GroovyCategorySupport;
import org.codehaus.groovy.runtime.InvokerHelper;
import org.codehaus.groovy.runtime.ReverseListIterator;
import org.codehaus.groovy.runtime.ScriptBytecodeAdapter;
import org.codehaus.groovy.runtime.callsite.BooleanClosureWrapper;
import org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation;
import org.codehaus.groovy.util.ArrayIterator;
@Generated(value = "com.cloudbees.groovy.cps.tool.Translator", date = "Tue Sep 05 14:35:45 EDT 2017", comments = "based on groovy-cps-dgm-builder-1.19-jar-with-dependencies.jar")
@SuppressWarnings("rawtypes")
public class CpsDefaultGroovyMethods {
private CpsDefaultGroovyMethods() {
}
staticvoid addEntry(Map result, Object newEntry) {
CpsDefaultGroovyMethods.$addEntry__java_util_Map__java_lang_Object(result, newEntry);
}
private staticvoid $addEntry__java_util_Map__java_lang_Object(Map result, Object newEntry) {
Builder b = new Builder(loc("addEntry")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("result", "newEntry"), b.block(b.if_(b.instanceOf(3783, b.localVariable("newEntry"), b.constant(Map.class)), b.block(b.staticCall(3784, DefaultGroovyMethods.class, "leftShift", b.localVariable("result"), b.cast(3784, b.localVariable("newEntry"), Map.class, false))), b.if_(b.instanceOf(3785, b.localVariable("newEntry"), b.constant(List.class)), b.block(b.declareVariable(3786, List.class, "list", b.cast(3786, b.localVariable("newEntry"), List.class, false)), b.declareVariable(3788, Object.class, "key", b.ternaryOp(b.functionCall(3788, b.localVariable("list"), "isEmpty"), b.constant(null), b.functionCall(3788, b.localVariable("list"), "get", b.constant(0)))), b.declareVariable(3789, Object.class, "value", b.ternaryOp(b.lessThanEqual(3789, b.functionCall(3789, b.localVariable("list"), "size"), b.constant(1)), b.constant(null), b.functionCall(3789, b.localVariable("list"), "get", b.constant(1)))), b.staticCall(3790, DefaultGroovyMethods.class, "leftShift", b.localVariable("result"), b.new_(3790, MapEntry.class, b.localVariable("key"), b.localVariable("value")))), b.block(b.staticCall(3795, DefaultGroovyMethods.class, "leftShift", b.localVariable("result"), b.staticCall(3795, DefaultGroovyMethods.class, "asType", b.localVariable("newEntry"), b.property(3795, b.property(3795, b.constant(Map.class), "Entry"), "class"))))))));
throw new CpsCallableInvocation(f, null, result, newEntry);
}
public static void addShutdownHook(Object self, Closure closure) {
if ((!Caller.isAsynchronous(self, "addShutdownHook", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "addShutdownHook", self, closure))) {
DefaultGroovyMethods.addShutdownHook(self, closure);
return ;
}
CpsDefaultGroovyMethods.$addShutdownHook__java_lang_Object__groovy_lang_Closure(self, closure);
}
private static void $addShutdownHook__java_lang_Object__groovy_lang_Closure(Object self, Closure closure) {
Builder b = new Builder(loc("addShutdownHook")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.functionCall(499, b.functionCall(499, b.constant(Runtime.class), "getRuntime"), "addShutdownHook", b.new_(499, Thread.class, b.localVariable("closure")))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticboolean any(Iterable self, Closure closure) {
if ((!Caller.isAsynchronous(self, "any", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "any", self, closure))) {
return DefaultGroovyMethods.any(self, closure);
}
return CpsDefaultGroovyMethods.$any__java_lang_Iterable__groovy_lang_Closure(self, closure);
}
private staticboolean $any__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure closure) {
Builder b = new Builder(loc("any")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(2341, BooleanClosureWrapper.class, "bcw", b.new_(2341, BooleanClosureWrapper.class, b.localVariable("closure"))), b.forLoop(null, b.sequence(b.declareVariable(2342, Iterator.class, "iter", b.functionCall(2342, b.localVariable("self"), "iterator"))), b.functionCall(2342, b.localVariable("iter"), "hasNext"), b.sequence(), b.block(b.if_(b.functionCall(2343, b.localVariable("bcw"), "call", b.functionCall(2343, b.localVariable("iter"), "next")), b.return_(b.constant(true))))), b.return_(b.constant(false))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public static boolean any(Object self, Closure closure) {
if ((!Caller.isAsynchronous(self, "any", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "any", self, closure))) {
return DefaultGroovyMethods.any(self, closure);
}
return CpsDefaultGroovyMethods.$any__java_lang_Object__groovy_lang_Closure(self, closure);
}
private static boolean $any__java_lang_Object__groovy_lang_Closure(Object self, Closure closure) {
Builder b = new Builder(loc("any")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(2307, BooleanClosureWrapper.class, "bcw", b.new_(2307, BooleanClosureWrapper.class, b.localVariable("closure"))), b.forLoop(null, b.sequence(b.declareVariable(2308, Iterator.class, "iter", b.functionCall(2308, b.constant(InvokerHelper.class), "asIterator", b.localVariable("self")))), b.functionCall(2308, b.localVariable("iter"), "hasNext"), b.sequence(), b.block(b.if_(b.functionCall(2309, b.localVariable("bcw"), "call", b.functionCall(2309, b.localVariable("iter"), "next")), b.return_(b.constant(true))))), b.return_(b.constant(false))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticboolean any(Iterator self, Closure closure) {
if ((!Caller.isAsynchronous(self, "any", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "any", self, closure))) {
return DefaultGroovyMethods.any(self, closure);
}
return CpsDefaultGroovyMethods.$any__java_util_Iterator__groovy_lang_Closure(self, closure);
}
private staticboolean $any__java_util_Iterator__groovy_lang_Closure(Iterator self, Closure closure) {
Builder b = new Builder(loc("any")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(2324, BooleanClosureWrapper.class, "bcw", b.new_(2324, BooleanClosureWrapper.class, b.localVariable("closure"))), b.forLoop(null, b.sequence(b.declareVariable(2325, Iterator.class, "iter", b.localVariable("self"))), b.functionCall(2325, b.localVariable("iter"), "hasNext"), b.sequence(), b.block(b.if_(b.functionCall(2326, b.localVariable("bcw"), "call", b.functionCall(2326, b.localVariable("iter"), "next")), b.return_(b.constant(true))))), b.return_(b.constant(false))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticboolean any(Map self, Closure> closure) {
if ((!Caller.isAsynchronous(self, "any", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "any", self, closure))) {
return DefaultGroovyMethods.any(self, closure);
}
return CpsDefaultGroovyMethods.$any__java_util_Map__groovy_lang_Closure(self, closure);
}
private staticboolean $any__java_util_Map__groovy_lang_Closure(Map self, Closure> closure) {
Builder b = new Builder(loc("any")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(2365, BooleanClosureWrapper.class, "bcw", b.new_(2365, BooleanClosureWrapper.class, b.localVariable("closure"))), b.forInLoop(2366, null, java.util.Map.Entry.class, "entry", b.functionCall(2366, b.localVariable("self"), "entrySet"), b.block(b.if_(b.functionCall(2367, b.localVariable("bcw"), "callForMap", b.localVariable("entry")), b.block(b.return_(b.constant(true)))))), b.return_(b.constant(false))));
throw new CpsCallableInvocation(f, null, self, closure);
}
staticT callClosureForMapEntryAndCounter(Closure closure, java.util.Map.Entry entry, int counter) {
return CpsDefaultGroovyMethods.$callClosureForMapEntryAndCounter__groovy_lang_Closure__java_util_Map_Entry__int(closure, entry, counter);
}
private staticT $callClosureForMapEntryAndCounter__groovy_lang_Closure__java_util_Map_Entry__int(Closure closure, java.util.Map.Entry entry, int counter) {
Builder b = new Builder(loc("callClosureForMapEntryAndCounter")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("closure", "entry", "counter"), b.block(b.if_(b.compareEqual(5241, b.functionCall(5241, b.localVariable("closure"), "getMaximumNumberOfParameters"), b.constant(3)), b.block(b.return_(b.functionCall(5242, b.localVariable("closure"), "call", b.newArrayFromInitializers(b.functionCall(5242, b.localVariable("entry"), "getKey"), b.functionCall(5242, b.localVariable("entry"), "getValue"), b.localVariable("counter")))))), b.if_(b.compareEqual(5244, b.functionCall(5244, b.localVariable("closure"), "getMaximumNumberOfParameters"), b.constant(2)), b.block(b.return_(b.functionCall(5245, b.localVariable("closure"), "call", b.newArrayFromInitializers(b.localVariable("entry"), b.localVariable("counter")))))), b.return_(b.functionCall(5247, b.localVariable("closure"), "call", b.localVariable("entry")))));
throw new CpsCallableInvocation(f, null, closure, entry, counter);
}
staticT callClosureForMapEntry(Closure closure, java.util.Map.Entry entry) {
return CpsDefaultGroovyMethods.$callClosureForMapEntry__groovy_lang_Closure__java_util_Map_Entry(closure, entry);
}
private staticT $callClosureForMapEntry__groovy_lang_Closure__java_util_Map_Entry(Closure closure, java.util.Map.Entry entry) {
Builder b = new Builder(loc("callClosureForMapEntry")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("closure", "entry"), b.block(b.if_(b.compareEqual(5225, b.functionCall(5225, b.localVariable("closure"), "getMaximumNumberOfParameters"), b.constant(2)), b.block(b.return_(b.functionCall(5226, b.localVariable("closure"), "call", b.newArrayFromInitializers(b.functionCall(5226, b.localVariable("entry"), "getKey"), b.functionCall(5226, b.localVariable("entry"), "getValue")))))), b.return_(b.functionCall(5228, b.localVariable("closure"), "call", b.localVariable("entry")))));
throw new CpsCallableInvocation(f, null, closure, entry);
}
public staticMap collectEntries(Iterable self, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, transform))) {
return DefaultGroovyMethods.collectEntries(self, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_lang_Iterable__groovy_lang_Closure(self, transform);
}
private staticMap $collectEntries__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.staticCall(3564, CpsDefaultGroovyMethods.class, "$collectEntries__java_util_Iterator__groovy_lang_Closure", b.functionCall(3564, b.localVariable("self"), "iterator"), b.localVariable("transform")))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticMap collectEntries(Iterable self, Map collector, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, collector, transform))) {
return DefaultGroovyMethods.collectEntries(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_lang_Iterable__java_util_Map__groovy_lang_Closure(self, collector, transform);
}
private staticMap $collectEntries__java_lang_Iterable__java_util_Map__groovy_lang_Closure(Iterable self, Map collector, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.return_(b.staticCall(3661, CpsDefaultGroovyMethods.class, "$collectEntries__java_util_Iterator__java_util_Map__groovy_lang_Closure", b.functionCall(3661, b.localVariable("self"), "iterator"), b.localVariable("collector"), b.localVariable("transform")))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public staticMap collectEntries(E[] self, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, transform))) {
return DefaultGroovyMethods.collectEntries(self, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_lang_Object_array__groovy_lang_Closure(self, transform);
}
private staticMap $collectEntries__java_lang_Object_array__groovy_lang_Closure(E[] self, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.staticCall(3767, CpsDefaultGroovyMethods.class, "$collectEntries__java_lang_Iterable__java_util_Map__groovy_lang_Closure", b.cast(3767, b.staticCall(3767, DefaultGroovyMethods.class, "toList", b.localVariable("self")), Iterable.class, false), b.new_(3767, LinkedHashMap.class), b.localVariable("transform")))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticMap collectEntries(E[] self, Map collector, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, collector, transform))) {
return DefaultGroovyMethods.collectEntries(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_lang_Object_array__java_util_Map__groovy_lang_Closure(self, collector, transform);
}
private staticMap $collectEntries__java_lang_Object_array__java_util_Map__groovy_lang_Closure(E[] self, Map collector, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.return_(b.staticCall(3728, CpsDefaultGroovyMethods.class, "$collectEntries__java_lang_Iterable__java_util_Map__groovy_lang_Closure", b.cast(3728, b.staticCall(3728, DefaultGroovyMethods.class, "toList", b.localVariable("self")), Iterable.class, false), b.localVariable("collector"), b.localVariable("transform")))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public staticMap collectEntries(Iterator self, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, transform))) {
return DefaultGroovyMethods.collectEntries(self, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_util_Iterator__groovy_lang_Closure(self, transform);
}
private staticMap $collectEntries__java_util_Iterator__groovy_lang_Closure(Iterator self, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.staticCall(3539, CpsDefaultGroovyMethods.class, "$collectEntries__java_util_Iterator__java_util_Map__groovy_lang_Closure", b.localVariable("self"), b.new_(3539, LinkedHashMap.class), b.localVariable("transform")))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticMap collectEntries(Iterator self, Map collector, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, collector, transform))) {
return DefaultGroovyMethods.collectEntries(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_util_Iterator__java_util_Map__groovy_lang_Closure(self, collector, transform);
}
private staticMap $collectEntries__java_util_Iterator__java_util_Map__groovy_lang_Closure(Iterator self, Map collector, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.while_(null, b.functionCall(3630, b.localVariable("self"), "hasNext"), b.block(b.declareVariable(3631, Object.class, "next", b.functionCall(3631, b.localVariable("self"), "next")), b.staticCall(3632, CpsDefaultGroovyMethods.class, "$addEntry__java_util_Map__java_lang_Object", b.localVariable("collector"), b.functionCall(3632, b.localVariable("transform"), "call", b.localVariable("next"))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public staticMap, ?> collectEntries(Map self, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, transform))) {
return DefaultGroovyMethods.collectEntries(self, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_util_Map__groovy_lang_Closure(self, transform);
}
private staticMap, ?> $collectEntries__java_util_Map__groovy_lang_Closure(Map self, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.staticCall(3515, CpsDefaultGroovyMethods.class, "$collectEntries__java_util_Map__java_util_Map__groovy_lang_Closure", b.localVariable("self"), b.functionCall(3515, b.constant(DefaultGroovyMethodsSupport.class), "createSimilarMap", b.localVariable("self")), b.localVariable("transform")))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticMap collectEntries(Map self, Map collector, Closure> transform) {
if ((!Caller.isAsynchronous(self, "collectEntries", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectEntries", self, collector, transform))) {
return DefaultGroovyMethods.collectEntries(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collectEntries__java_util_Map__java_util_Map__groovy_lang_Closure(self, collector, transform);
}
private staticMap $collectEntries__java_util_Map__java_util_Map__groovy_lang_Closure(Map self, Map collector, Closure> transform) {
Builder b = new Builder(loc("collectEntries")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.forInLoop(3488, null, java.util.Map.Entry.class, "entry", b.functionCall(3488, b.localVariable("self"), "entrySet"), b.block(b.staticCall(3489, CpsDefaultGroovyMethods.class, "$addEntry__java_util_Map__java_lang_Object", b.localVariable("collector"), b.staticCall(3489, CpsDefaultGroovyMethods.class, "$callClosureForMapEntry__groovy_lang_Closure__java_util_Map_Entry", b.localVariable("transform"), b.localVariable("entry"))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public staticList collectMany(Iterable self, Closure> projection) {
if ((!Caller.isAsynchronous(self, "collectMany", projection))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectMany", self, projection))) {
return DefaultGroovyMethods.collectMany(self, projection);
}
return CpsDefaultGroovyMethods.$collectMany__java_lang_Iterable__groovy_lang_Closure(self, projection);
}
private staticList $collectMany__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure> projection) {
Builder b = new Builder(loc("collectMany")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "projection"), b.block(b.return_(b.cast(3320, b.staticCall(3320, CpsDefaultGroovyMethods.class, "$collectMany__java_lang_Iterable__java_util_Collection__groovy_lang_Closure", b.localVariable("self"), b.new_(3320, ArrayList.class), b.localVariable("projection")), List.class, false))));
throw new CpsCallableInvocation(f, null, self, projection);
}
public staticCollection collectMany(Iterable self, Collection collector, Closure> projection) {
if ((!Caller.isAsynchronous(self, "collectMany", collector, projection))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectMany", self, collector, projection))) {
return DefaultGroovyMethods.collectMany(self, collector, projection);
}
return CpsDefaultGroovyMethods.$collectMany__java_lang_Iterable__java_util_Collection__groovy_lang_Closure(self, collector, projection);
}
private staticCollection $collectMany__java_lang_Iterable__java_util_Collection__groovy_lang_Closure(Iterable self, Collection collector, Closure> projection) {
Builder b = new Builder(loc("collectMany")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "projection"), b.block(b.forInLoop(3344, null, Object.class, "next", b.localVariable("self"), b.block(b.functionCall(3345, b.localVariable("collector"), "addAll", b.functionCall(3345, b.localVariable("projection"), "call", b.localVariable("next"))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, projection);
}
public staticList collectMany(E[] self, Closure> projection) {
if ((!Caller.isAsynchronous(self, "collectMany", projection))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectMany", self, projection))) {
return DefaultGroovyMethods.collectMany(self, projection);
}
return CpsDefaultGroovyMethods.$collectMany__java_lang_Object_array__groovy_lang_Closure(self, projection);
}
private staticList $collectMany__java_lang_Object_array__groovy_lang_Closure(E[] self, Closure> projection) {
Builder b = new Builder(loc("collectMany")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "projection"), b.block(b.return_(b.staticCall(3409, CpsDefaultGroovyMethods.class, "$collectMany__java_lang_Iterable__groovy_lang_Closure", b.cast(3409, b.staticCall(3409, DefaultGroovyMethods.class, "toList", b.localVariable("self")), Iterable.class, false), b.localVariable("projection")))));
throw new CpsCallableInvocation(f, null, self, projection);
}
public staticList collectMany(Iterator self, Closure> projection) {
if ((!Caller.isAsynchronous(self, "collectMany", projection))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectMany", self, projection))) {
return DefaultGroovyMethods.collectMany(self, projection);
}
return CpsDefaultGroovyMethods.$collectMany__java_util_Iterator__groovy_lang_Closure(self, projection);
}
private staticList $collectMany__java_util_Iterator__groovy_lang_Closure(Iterator self, Closure> projection) {
Builder b = new Builder(loc("collectMany")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "projection"), b.block(b.return_(b.staticCall(3429, CpsDefaultGroovyMethods.class, "$collectMany__java_lang_Iterable__groovy_lang_Closure", b.cast(3429, b.staticCall(3429, DefaultGroovyMethods.class, "toList", b.localVariable("self")), Iterable.class, false), b.localVariable("projection")))));
throw new CpsCallableInvocation(f, null, self, projection);
}
public staticCollection collectMany(Map self, Closure> projection) {
if ((!Caller.isAsynchronous(self, "collectMany", projection))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectMany", self, projection))) {
return DefaultGroovyMethods.collectMany(self, projection);
}
return CpsDefaultGroovyMethods.$collectMany__java_util_Map__groovy_lang_Closure(self, projection);
}
private staticCollection $collectMany__java_util_Map__groovy_lang_Closure(Map self, Closure> projection) {
Builder b = new Builder(loc("collectMany")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "projection"), b.block(b.return_(b.staticCall(3389, CpsDefaultGroovyMethods.class, "$collectMany__java_util_Map__java_util_Collection__groovy_lang_Closure", b.localVariable("self"), b.new_(3389, ArrayList.class), b.localVariable("projection")))));
throw new CpsCallableInvocation(f, null, self, projection);
}
public staticCollection collectMany(Map self, Collection collector, Closure> projection) {
if ((!Caller.isAsynchronous(self, "collectMany", collector, projection))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectMany", self, collector, projection))) {
return DefaultGroovyMethods.collectMany(self, collector, projection);
}
return CpsDefaultGroovyMethods.$collectMany__java_util_Map__java_util_Collection__groovy_lang_Closure(self, collector, projection);
}
private staticCollection $collectMany__java_util_Map__java_util_Collection__groovy_lang_Closure(Map self, Collection collector, Closure> projection) {
Builder b = new Builder(loc("collectMany")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "projection"), b.block(b.forInLoop(3367, null, java.util.Map.Entry.class, "entry", b.functionCall(3367, b.localVariable("self"), "entrySet"), b.block(b.functionCall(3368, b.localVariable("collector"), "addAll", b.staticCall(3368, CpsDefaultGroovyMethods.class, "$callClosureForMapEntry__groovy_lang_Closure__java_util_Map_Entry", b.localVariable("projection"), b.localVariable("entry"))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, projection);
}
public static List collectNested(Iterable self, Closure transform) {
if ((!Caller.isAsynchronous(self, "collectNested", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectNested", self, transform))) {
return DefaultGroovyMethods.collectNested(self, transform);
}
return CpsDefaultGroovyMethods.$collectNested__java_lang_Iterable__groovy_lang_Closure(self, transform);
}
private static List $collectNested__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure transform) {
Builder b = new Builder(loc("collectNested")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.cast(3220, b.staticCall(3220, CpsDefaultGroovyMethods.class, "$collectNested__java_lang_Iterable__java_util_Collection__groovy_lang_Closure", b.localVariable("self"), b.new_(3220, ArrayList.class), b.localVariable("transform")), List.class, false))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public static Collection collectNested(Iterable self, Collection collector, Closure transform) {
if ((!Caller.isAsynchronous(self, "collectNested", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectNested", self, collector, transform))) {
return DefaultGroovyMethods.collectNested(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collectNested__java_lang_Iterable__java_util_Collection__groovy_lang_Closure(self, collector, transform);
}
private static Collection $collectNested__java_lang_Iterable__java_util_Collection__groovy_lang_Closure(Iterable self, Collection collector, Closure transform) {
Builder b = new Builder(loc("collectNested")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.forInLoop(3261, null, Object.class, "item", b.localVariable("self"), b.block(b.if_(b.instanceOf(3262, b.localVariable("item"), b.constant(Collection.class)), b.block(b.declareVariable(3263, Collection.class, "c", b.cast(3263, b.localVariable("item"), Collection.class, false)), b.functionCall(3264, b.localVariable("collector"), "add", b.staticCall(3264, CpsDefaultGroovyMethods.class, "$collectNested__java_lang_Iterable__java_util_Collection__groovy_lang_Closure", b.cast(3264, b.localVariable("c"), Iterable.class, false), b.functionCall(3264, b.constant(DefaultGroovyMethodsSupport.class), "createSimilarCollection", b.localVariable("collector"), b.functionCall(3264, b.localVariable("c"), "size")), b.localVariable("transform")))), b.block(b.functionCall(3266, b.localVariable("collector"), "add", b.functionCall(3266, b.localVariable("transform"), "call", b.localVariable("item"))))), b.if_(b.compareEqual(3268, b.functionCall(3268, b.localVariable("transform"), "getDirective"), b.property(3268, b.constant(Closure.class), "DONE")), b.block(b.break_(null))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public static List collectNested(Collection self, Closure transform) {
if ((!Caller.isAsynchronous(self, "collectNested", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collectNested", self, transform))) {
return DefaultGroovyMethods.collectNested(self, transform);
}
return CpsDefaultGroovyMethods.$collectNested__java_util_Collection__groovy_lang_Closure(self, transform);
}
private static List $collectNested__java_util_Collection__groovy_lang_Closure(Collection self, Closure transform) {
Builder b = new Builder(loc("collectNested")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.cast(3203, b.staticCall(3203, CpsDefaultGroovyMethods.class, "$collectNested__java_lang_Iterable__java_util_Collection__groovy_lang_Closure", b.cast(3203, b.localVariable("self"), Iterable.class, false), b.new_(3203, ArrayList.class, b.functionCall(3203, b.localVariable("self"), "size")), b.localVariable("transform")), List.class, false))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticList collect(Object self, Closure transform) {
if ((!Caller.isAsynchronous(self, "collect", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collect", self, transform))) {
return DefaultGroovyMethods.collect(self, transform);
}
return CpsDefaultGroovyMethods.$collect__java_lang_Object__groovy_lang_Closure(self, transform);
}
private staticList $collect__java_lang_Object__groovy_lang_Closure(Object self, Closure transform) {
Builder b = new Builder(loc("collect")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.cast(3095, b.staticCall(3095, CpsDefaultGroovyMethods.class, "$collect__java_lang_Object__java_util_Collection__groovy_lang_Closure", b.localVariable("self"), b.new_(3095, ArrayList.class), b.localVariable("transform")), List.class, false))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticCollection collect(Object self, Collection collector, Closure extends T> transform) {
if ((!Caller.isAsynchronous(self, "collect", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collect", self, collector, transform))) {
return DefaultGroovyMethods.collect(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collect__java_lang_Object__java_util_Collection__groovy_lang_Closure(self, collector, transform);
}
private staticCollection $collect__java_lang_Object__java_util_Collection__groovy_lang_Closure(Object self, Collection collector, Closure extends T> transform) {
Builder b = new Builder(loc("collect")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.forLoop(null, b.sequence(b.declareVariable(3123, Iterator.class, "iter", b.functionCall(3123, b.constant(InvokerHelper.class), "asIterator", b.localVariable("self")))), b.functionCall(3123, b.localVariable("iter"), "hasNext"), b.sequence(), b.block(b.functionCall(3124, b.localVariable("collector"), "add", b.functionCall(3124, b.localVariable("transform"), "call", b.functionCall(3124, b.localVariable("iter"), "next"))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public staticList collect(Collection self, Closure transform) {
if ((!Caller.isAsynchronous(self, "collect", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collect", self, transform))) {
return DefaultGroovyMethods.collect(self, transform);
}
return CpsDefaultGroovyMethods.$collect__java_util_Collection__groovy_lang_Closure(self, transform);
}
private staticList $collect__java_util_Collection__groovy_lang_Closure(Collection self, Closure transform) {
Builder b = new Builder(loc("collect")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.cast(3140, b.staticCall(3140, CpsDefaultGroovyMethods.class, "$collect__java_util_Collection__java_util_Collection__groovy_lang_Closure", b.localVariable("self"), b.new_(3140, ArrayList.class, b.functionCall(3140, b.localVariable("self"), "size")), b.localVariable("transform")), List.class, false))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticCollection collect(Collection self, Collection collector, Closure extends T> transform) {
if ((!Caller.isAsynchronous(self, "collect", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collect", self, collector, transform))) {
return DefaultGroovyMethods.collect(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collect__java_util_Collection__java_util_Collection__groovy_lang_Closure(self, collector, transform);
}
private staticCollection $collect__java_util_Collection__java_util_Collection__groovy_lang_Closure(Collection self, Collection collector, Closure extends T> transform) {
Builder b = new Builder(loc("collect")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.forInLoop(3169, null, Object.class, "item", b.localVariable("self"), b.block(b.functionCall(3170, b.localVariable("collector"), "add", b.functionCall(3170, b.localVariable("transform"), "call", b.localVariable("item"))), b.if_(b.compareEqual(3171, b.functionCall(3171, b.localVariable("transform"), "getDirective"), b.property(3171, b.constant(Closure.class), "DONE")), b.block(b.break_(null))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public staticList collect(Map self, Closure transform) {
if ((!Caller.isAsynchronous(self, "collect", transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collect", self, transform))) {
return DefaultGroovyMethods.collect(self, transform);
}
return CpsDefaultGroovyMethods.$collect__java_util_Map__groovy_lang_Closure(self, transform);
}
private staticList $collect__java_util_Map__groovy_lang_Closure(Map self, Closure transform) {
Builder b = new Builder(loc("collect")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "transform"), b.block(b.return_(b.cast(3463, b.staticCall(3463, CpsDefaultGroovyMethods.class, "$collect__java_util_Map__java_util_Collection__groovy_lang_Closure", b.localVariable("self"), b.new_(3463, ArrayList.class, b.functionCall(3463, b.localVariable("self"), "size")), b.localVariable("transform")), List.class, false))));
throw new CpsCallableInvocation(f, null, self, transform);
}
public staticCollection collect(Map self, Collection collector, Closure extends T> transform) {
if ((!Caller.isAsynchronous(self, "collect", collector, transform))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "collect", self, collector, transform))) {
return DefaultGroovyMethods.collect(self, collector, transform);
}
return CpsDefaultGroovyMethods.$collect__java_util_Map__java_util_Collection__groovy_lang_Closure(self, collector, transform);
}
private staticCollection $collect__java_util_Map__java_util_Collection__groovy_lang_Closure(Map self, Collection collector, Closure extends T> transform) {
Builder b = new Builder(loc("collect")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "collector", "transform"), b.block(b.forInLoop(3445, null, java.util.Map.Entry.class, "entry", b.functionCall(3445, b.localVariable("self"), "entrySet"), b.block(b.functionCall(3446, b.localVariable("collector"), "add", b.staticCall(3446, CpsDefaultGroovyMethods.class, "$callClosureForMapEntry__groovy_lang_Closure__java_util_Map_Entry", b.localVariable("transform"), b.localVariable("entry"))))), b.return_(b.localVariable("collector"))));
throw new CpsCallableInvocation(f, null, self, collector, transform);
}
public static List combinations(Iterable self, Closure> function) {
if ((!Caller.isAsynchronous(self, "combinations", function))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "combinations", self, function))) {
return DefaultGroovyMethods.combinations(self, function);
}
return CpsDefaultGroovyMethods.$combinations__java_lang_Iterable__groovy_lang_Closure(self, function);
}
private static List $combinations__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure> function) {
Builder b = new Builder(loc("combinations")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "function"), b.block(b.return_(b.staticCall(4596, CpsDefaultGroovyMethods.class, "$collect__java_util_Collection__groovy_lang_Closure", b.functionCall(4596, b.constant(GroovyCollections.class), "combinations", b.localVariable("self")), b.localVariable("function")))));
throw new CpsCallableInvocation(f, null, self, function);
}
staticvoid countAnswer(Map answer, T mappedKey) {
CpsDefaultGroovyMethods.$countAnswer__java_util_Map__java_lang_Object(answer, mappedKey);
}
private staticvoid $countAnswer__java_util_Map__java_lang_Object(Map answer, T mappedKey) {
Builder b = new Builder(loc("countAnswer")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("answer", "mappedKey"), b.block(b.if_(b.not(5216, b.functionCall(5216, b.localVariable("answer"), "containsKey", b.localVariable("mappedKey"))), b.block(b.functionCall(5217, b.localVariable("answer"), "put", b.localVariable("mappedKey"), b.constant(0)))), b.declareVariable(5219, int.class, "current", b.functionCall(5219, b.localVariable("answer"), "get", b.localVariable("mappedKey"))), b.functionCall(5220, b.localVariable("answer"), "put", b.localVariable("mappedKey"), b.plus(5220, b.localVariable("current"), b.constant(1)))));
throw new CpsCallableInvocation(f, null, answer, mappedKey);
}
public staticMap countBy(Iterable self, Closure closure) {
if ((!Caller.isAsynchronous(self, "countBy", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "countBy", self, closure))) {
return DefaultGroovyMethods.countBy(self, closure);
}
return CpsDefaultGroovyMethods.$countBy__java_lang_Iterable__groovy_lang_Closure(self, closure);
}
private staticMap $countBy__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure closure) {
Builder b = new Builder(loc("countBy")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.return_(b.staticCall(4993, CpsDefaultGroovyMethods.class, "$countBy__java_util_Iterator__groovy_lang_Closure", b.functionCall(4993, b.localVariable("self"), "iterator"), b.localVariable("closure")))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticMap countBy(E[] self, Closure closure) {
if ((!Caller.isAsynchronous(self, "countBy", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "countBy", self, closure))) {
return DefaultGroovyMethods.countBy(self, closure);
}
return CpsDefaultGroovyMethods.$countBy__java_lang_Object_array__groovy_lang_Closure(self, closure);
}
private staticMap $countBy__java_lang_Object_array__groovy_lang_Closure(E[] self, Closure closure) {
Builder b = new Builder(loc("countBy")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.return_(b.staticCall(5013, CpsDefaultGroovyMethods.class, "$countBy__java_lang_Iterable__groovy_lang_Closure", b.cast(5013, b.functionCall(5013, b.constant(Arrays.class), "asList", b.localVariable("self")), Iterable.class, false), b.localVariable("closure")))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticMap countBy(Iterator self, Closure closure) {
if ((!Caller.isAsynchronous(self, "countBy", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "countBy", self, closure))) {
return DefaultGroovyMethods.countBy(self, closure);
}
return CpsDefaultGroovyMethods.$countBy__java_util_Iterator__groovy_lang_Closure(self, closure);
}
private staticMap $countBy__java_util_Iterator__groovy_lang_Closure(Iterator self, Closure closure) {
Builder b = new Builder(loc("countBy")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(5033, Map.class, "answer", b.new_(5033, LinkedHashMap.class)), b.while_(null, b.functionCall(5034, b.localVariable("self"), "hasNext"), b.block(b.declareVariable(5035, Object.class, "value", b.functionCall(5035, b.localVariable("closure"), "call", b.functionCall(5035, b.localVariable("self"), "next"))), b.staticCall(5036, CpsDefaultGroovyMethods.class, "$countAnswer__java_util_Map__java_lang_Object", b.localVariable("answer"), b.localVariable("value")))), b.return_(b.localVariable("answer"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticMap countBy(Map self, Closure closure) {
if ((!Caller.isAsynchronous(self, "countBy", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "countBy", self, closure))) {
return DefaultGroovyMethods.countBy(self, closure);
}
return CpsDefaultGroovyMethods.$countBy__java_util_Map__groovy_lang_Closure(self, closure);
}
private staticMap $countBy__java_util_Map__groovy_lang_Closure(Map self, Closure closure) {
Builder b = new Builder(loc("countBy")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(5190, Map.class, "answer", b.new_(5190, LinkedHashMap.class)), b.forInLoop(5191, null, Object.class, "entry", b.functionCall(5191, b.localVariable("self"), "entrySet"), b.block(b.staticCall(5192, CpsDefaultGroovyMethods.class, "$countAnswer__java_util_Map__java_lang_Object", b.localVariable("answer"), b.staticCall(5192, CpsDefaultGroovyMethods.class, "$callClosureForMapEntry__groovy_lang_Closure__java_util_Map_Entry", b.localVariable("closure"), b.cast(5192, b.localVariable("entry"), java.util.Map.Entry.class, false))))), b.return_(b.localVariable("answer"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticNumber count(Iterable self, Closure closure) {
if ((!Caller.isAsynchronous(self, "count", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "count", self, closure))) {
return DefaultGroovyMethods.count(self, closure);
}
return CpsDefaultGroovyMethods.$count__java_lang_Iterable__groovy_lang_Closure(self, closure);
}
private staticNumber $count__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure closure) {
Builder b = new Builder(loc("count")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.return_(b.staticCall(2723, CpsDefaultGroovyMethods.class, "$count__java_util_Iterator__groovy_lang_Closure", b.functionCall(2723, b.localVariable("self"), "iterator"), b.localVariable("closure")))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticNumber count(T[] self, Closure closure) {
if ((!Caller.isAsynchronous(self, "count", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "count", self, closure))) {
return DefaultGroovyMethods.count(self, closure);
}
return CpsDefaultGroovyMethods.$count__java_lang_Object_array__groovy_lang_Closure(self, closure);
}
private staticNumber $count__java_lang_Object_array__groovy_lang_Closure(T[] self, Closure closure) {
Builder b = new Builder(loc("count")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.return_(b.staticCall(2775, CpsDefaultGroovyMethods.class, "$count__java_lang_Iterable__groovy_lang_Closure", b.cast(2775, b.functionCall(2775, b.constant(Arrays.class), "asList", b.localVariable("self")), Iterable.class, false), b.localVariable("closure")))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticNumber count(Iterator self, Closure closure) {
if ((!Caller.isAsynchronous(self, "count", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "count", self, closure))) {
return DefaultGroovyMethods.count(self, closure);
}
return CpsDefaultGroovyMethods.$count__java_util_Iterator__groovy_lang_Closure(self, closure);
}
private staticNumber $count__java_util_Iterator__groovy_lang_Closure(Iterator self, Closure closure) {
Builder b = new Builder(loc("count")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(2664, long.class, "answer", b.constant(0)), b.declareVariable(2665, BooleanClosureWrapper.class, "bcw", b.new_(2665, BooleanClosureWrapper.class, b.localVariable("closure"))), b.while_(null, b.functionCall(2666, b.localVariable("self"), "hasNext"), b.block(b.if_(b.functionCall(2667, b.localVariable("bcw"), "call", b.functionCall(2667, b.localVariable("self"), "next")), b.block(b.prefixInc(2668, b.localVariable("answer")))))), b.if_(b.lessThanEqual(2672, b.localVariable("answer"), b.property(2672, b.constant(Integer.class), "MAX_VALUE")), b.return_(b.cast(2672, b.localVariable("answer"), int.class, false))), b.return_(b.localVariable("answer"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticNumber count(Map self, Closure> closure) {
if ((!Caller.isAsynchronous(self, "count", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "count", self, closure))) {
return DefaultGroovyMethods.count(self, closure);
}
return CpsDefaultGroovyMethods.$count__java_util_Map__groovy_lang_Closure(self, closure);
}
private staticNumber $count__java_util_Map__groovy_lang_Closure(Map self, Closure> closure) {
Builder b = new Builder(loc("count")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(2740, long.class, "answer", b.constant(0)), b.declareVariable(2741, BooleanClosureWrapper.class, "bcw", b.new_(2741, BooleanClosureWrapper.class, b.localVariable("closure"))), b.forInLoop(2742, null, Object.class, "entry", b.functionCall(2742, b.localVariable("self"), "entrySet"), b.block(b.if_(b.functionCall(2743, b.localVariable("bcw"), "callForMap", b.cast(2743, b.localVariable("entry"), java.util.Map.Entry.class, false)), b.block(b.prefixInc(2744, b.localVariable("answer")))))), b.if_(b.lessThanEqual(2748, b.localVariable("answer"), b.property(2748, b.constant(Integer.class), "MAX_VALUE")), b.return_(b.cast(2748, b.localVariable("answer"), int.class, false))), b.return_(b.localVariable("answer"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public static void downto(double self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__double__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__double__java_lang_Number__groovy_lang_Closure(double self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14697, double.class, "to1", b.functionCall(14697, b.localVariable("to"), "doubleValue")), b.if_(b.greaterThanEqual(14698, b.localVariable("self"), b.localVariable("to1")), b.block(b.forLoop(null, b.sequence(b.declareVariable(14699, double.class, "i", b.localVariable("self"))), b.greaterThanEqual(14699, b.localVariable("i"), b.localVariable("to1")), b.sequence(b.postfixDec(14699, b.localVariable("i"))), b.block(b.functionCall(14700, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14703, b.new_(14703, GroovyRuntimeException.class, b.plus(14703, b.plus(14703, b.plus(14703, b.plus(14703, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(float self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__float__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__float__java_lang_Number__groovy_lang_Closure(float self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14659, float.class, "to1", b.functionCall(14659, b.localVariable("to"), "floatValue")), b.if_(b.greaterThanEqual(14660, b.localVariable("self"), b.localVariable("to1")), b.block(b.forLoop(null, b.sequence(b.declareVariable(14661, float.class, "i", b.localVariable("self"))), b.greaterThanEqual(14661, b.localVariable("i"), b.localVariable("to1")), b.sequence(b.postfixDec(14661, b.localVariable("i"))), b.block(b.functionCall(14662, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14665, b.new_(14665, GroovyRuntimeException.class, b.plus(14665, b.plus(14665, b.plus(14665, b.plus(14665, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(Double self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__java_lang_Double__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__java_lang_Double__java_lang_Number__groovy_lang_Closure(Double self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14716, double.class, "to1", b.functionCall(14716, b.localVariable("to"), "doubleValue")), b.if_(b.greaterThanEqual(14717, b.localVariable("self"), b.localVariable("to1")), b.block(b.forLoop(null, b.sequence(b.declareVariable(14718, double.class, "i", b.localVariable("self"))), b.greaterThanEqual(14718, b.localVariable("i"), b.localVariable("to1")), b.sequence(b.postfixDec(14718, b.localVariable("i"))), b.block(b.functionCall(14719, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14722, b.new_(14722, GroovyRuntimeException.class, b.plus(14722, b.plus(14722, b.plus(14722, b.plus(14722, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(Float self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__java_lang_Float__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__java_lang_Float__java_lang_Number__groovy_lang_Closure(Float self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14678, float.class, "to1", b.functionCall(14678, b.localVariable("to"), "floatValue")), b.if_(b.greaterThanEqual(14679, b.localVariable("self"), b.localVariable("to1")), b.block(b.forLoop(null, b.sequence(b.declareVariable(14680, float.class, "i", b.localVariable("self"))), b.greaterThanEqual(14680, b.localVariable("i"), b.localVariable("to1")), b.sequence(b.postfixDec(14680, b.localVariable("i"))), b.block(b.functionCall(14681, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14684, b.new_(14684, GroovyRuntimeException.class, b.plus(14684, b.plus(14684, b.plus(14684, b.plus(14684, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(Long self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__java_lang_Long__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__java_lang_Long__java_lang_Number__groovy_lang_Closure(Long self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14639, long.class, "to1", b.functionCall(14639, b.localVariable("to"), "longValue")), b.if_(b.greaterThanEqual(14640, b.localVariable("self"), b.localVariable("to1")), b.block(b.forLoop(null, b.sequence(b.declareVariable(14641, long.class, "i", b.localVariable("self"))), b.greaterThanEqual(14641, b.localVariable("i"), b.localVariable("to1")), b.sequence(b.postfixDec(14641, b.localVariable("i"))), b.block(b.functionCall(14642, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14645, b.new_(14645, GroovyRuntimeException.class, b.plus(14645, b.plus(14645, b.plus(14645, b.plus(14645, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(Number self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__java_lang_Number__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__java_lang_Number__java_lang_Number__groovy_lang_Closure(Number self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14598, int.class, "self1", b.functionCall(14598, b.localVariable("self"), "intValue")), b.declareVariable(14599, int.class, "to1", b.functionCall(14599, b.localVariable("to"), "intValue")), b.if_(b.greaterThanEqual(14600, b.localVariable("self1"), b.localVariable("to1")), b.block(b.forLoop(null, b.sequence(b.declareVariable(14601, int.class, "i", b.localVariable("self1"))), b.greaterThanEqual(14601, b.localVariable("i"), b.localVariable("to1")), b.sequence(b.postfixDec(14601, b.localVariable("i"))), b.block(b.functionCall(14602, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14605, b.new_(14605, GroovyRuntimeException.class, b.plus(14605, b.plus(14605, b.plus(14605, b.plus(14605, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(BigDecimal self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__java_math_BigDecimal__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__java_math_BigDecimal__java_lang_Number__groovy_lang_Closure(BigDecimal self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14789, BigDecimal.class, "one", b.functionCall(14789, b.constant(BigDecimal.class), "valueOf", b.constant(10), b.constant(1))), b.if_(b.instanceOf(14790, b.localVariable("to"), b.constant(BigDecimal.class)), b.block(b.declareVariable(14791, BigDecimal.class, "to1", b.cast(14791, b.localVariable("to"), BigDecimal.class, false)), b.if_(b.greaterThanEqual(14792, b.functionCall(14792, b.localVariable("self"), "compareTo", b.localVariable("to1")), b.constant(0)), b.block(b.forLoop(null, b.sequence(b.declareVariable(14793, BigDecimal.class, "i", b.localVariable("self"))), b.greaterThanEqual(14793, b.functionCall(14793, b.localVariable("i"), "compareTo", b.localVariable("to1")), b.constant(0)), b.sequence(b.assign(14793, b.localVariable("i"), b.functionCall(14793, b.localVariable("i"), "subtract", b.localVariable("one")))), b.block(b.functionCall(14794, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14797, b.new_(14797, GroovyRuntimeException.class, b.plus(14797, b.plus(14797, b.plus(14797, b.plus(14797, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))), b.if_(b.instanceOf(14798, b.localVariable("to"), b.constant(BigInteger.class)), b.block(b.declareVariable(14799, BigDecimal.class, "to1", b.new_(14799, BigDecimal.class, b.cast(14799, b.localVariable("to"), BigInteger.class, false))), b.if_(b.greaterThanEqual(14800, b.functionCall(14800, b.localVariable("self"), "compareTo", b.localVariable("to1")), b.constant(0)), b.block(b.forLoop(null, b.sequence(b.declareVariable(14801, BigDecimal.class, "i", b.localVariable("self"))), b.greaterThanEqual(14801, b.functionCall(14801, b.localVariable("i"), "compareTo", b.localVariable("to1")), b.constant(0)), b.sequence(b.assign(14801, b.localVariable("i"), b.functionCall(14801, b.localVariable("i"), "subtract", b.localVariable("one")))), b.block(b.functionCall(14802, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14805, b.new_(14805, GroovyRuntimeException.class, b.plus(14805, b.plus(14805, b.plus(14805, b.plus(14805, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))), b.block(b.declareVariable(14807, BigDecimal.class, "to1", b.new_(14807, BigDecimal.class, b.functionCall(14807, b.localVariable("to"), "toString"))), b.if_(b.greaterThanEqual(14808, b.functionCall(14808, b.localVariable("self"), "compareTo", b.localVariable("to1")), b.constant(0)), b.block(b.forLoop(null, b.sequence(b.declareVariable(14809, BigDecimal.class, "i", b.localVariable("self"))), b.greaterThanEqual(14809, b.functionCall(14809, b.localVariable("i"), "compareTo", b.localVariable("to1")), b.constant(0)), b.sequence(b.assign(14809, b.localVariable("i"), b.functionCall(14809, b.localVariable("i"), "subtract", b.localVariable("one")))), b.block(b.functionCall(14810, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14813, b.new_(14813, GroovyRuntimeException.class, b.plus(14813, b.plus(14813, b.plus(14813, b.plus(14813, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on."))))))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(BigInteger self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__java_math_BigInteger__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__java_math_BigInteger__java_lang_Number__groovy_lang_Closure(BigInteger self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.if_(b.instanceOf(14735, b.localVariable("to"), b.constant(BigDecimal.class)), b.block(b.declareVariable(14736, BigDecimal.class, "one", b.functionCall(14736, b.constant(BigDecimal.class), "valueOf", b.constant(10), b.constant(1))), b.declareVariable(14737, BigDecimal.class, "to1", b.cast(14737, b.localVariable("to"), BigDecimal.class, false)), b.declareVariable(14738, BigDecimal.class, "selfD", b.new_(14738, BigDecimal.class, b.localVariable("self"))), b.if_(b.greaterThanEqual(14739, b.functionCall(14739, b.localVariable("selfD"), "compareTo", b.localVariable("to1")), b.constant(0)), b.block(b.forLoop(null, b.sequence(b.declareVariable(14740, BigDecimal.class, "i", b.localVariable("selfD"))), b.greaterThanEqual(14740, b.functionCall(14740, b.localVariable("i"), "compareTo", b.localVariable("to1")), b.constant(0)), b.sequence(b.assign(14740, b.localVariable("i"), b.functionCall(14740, b.localVariable("i"), "subtract", b.localVariable("one")))), b.block(b.functionCall(14741, b.localVariable("closure"), "call", b.functionCall(14741, b.localVariable("i"), "toBigInteger"))))), b.throw_(14744, b.new_(14744, GroovyRuntimeException.class, b.functionCall(14745, b.constant(MessageFormat.class), "format", b.constant("The argument ({0}) to downto() cannot be greater than the value ({1}) it''s called on."), b.localVariable("to"), b.localVariable("self")))))), b.if_(b.instanceOf(14748, b.localVariable("to"), b.constant(BigInteger.class)), b.block(b.declareVariable(14749, BigInteger.class, "one", b.functionCall(14749, b.constant(BigInteger.class), "valueOf", b.constant(1))), b.declareVariable(14750, BigInteger.class, "to1", b.cast(14750, b.localVariable("to"), BigInteger.class, false)), b.if_(b.greaterThanEqual(14751, b.functionCall(14751, b.localVariable("self"), "compareTo", b.localVariable("to1")), b.constant(0)), b.block(b.forLoop(null, b.sequence(b.declareVariable(14752, BigInteger.class, "i", b.localVariable("self"))), b.greaterThanEqual(14752, b.functionCall(14752, b.localVariable("i"), "compareTo", b.localVariable("to1")), b.constant(0)), b.sequence(b.assign(14752, b.localVariable("i"), b.functionCall(14752, b.localVariable("i"), "subtract", b.localVariable("one")))), b.block(b.functionCall(14753, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14756, b.new_(14756, GroovyRuntimeException.class, b.functionCall(14757, b.constant(MessageFormat.class), "format", b.constant("The argument ({0}) to downto() cannot be greater than the value ({1}) it''s called on."), b.localVariable("to"), b.localVariable("self")))))), b.block(b.declareVariable(14761, BigInteger.class, "one", b.functionCall(14761, b.constant(BigInteger.class), "valueOf", b.constant(1))), b.declareVariable(14762, BigInteger.class, "to1", b.new_(14762, BigInteger.class, b.functionCall(14762, b.localVariable("to"), "toString"))), b.if_(b.greaterThanEqual(14763, b.functionCall(14763, b.localVariable("self"), "compareTo", b.localVariable("to1")), b.constant(0)), b.block(b.forLoop(null, b.sequence(b.declareVariable(14764, BigInteger.class, "i", b.localVariable("self"))), b.greaterThanEqual(14764, b.functionCall(14764, b.localVariable("i"), "compareTo", b.localVariable("to1")), b.constant(0)), b.sequence(b.assign(14764, b.localVariable("i"), b.functionCall(14764, b.localVariable("i"), "subtract", b.localVariable("one")))), b.block(b.functionCall(14765, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14768, b.new_(14768, GroovyRuntimeException.class, b.functionCall(14769, b.constant(MessageFormat.class), "format", b.constant("The argument ({0}) to downto() cannot be greater than the value ({1}) it''s called on."), b.localVariable("to"), b.localVariable("self"))))))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void downto(long self, Number to, Closure closure) {
if ((!Caller.isAsynchronous(self, "downto", to, closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "downto", self, to, closure))) {
DefaultGroovyMethods.downto(self, to, closure);
return ;
}
CpsDefaultGroovyMethods.$downto__long__java_lang_Number__groovy_lang_Closure(self, to, closure);
}
private static void $downto__long__java_lang_Number__groovy_lang_Closure(long self, Number to, Closure closure) {
Builder b = new Builder(loc("downto")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "to", "closure"), b.block(b.declareVariable(14619, long.class, "to1", b.functionCall(14619, b.localVariable("to"), "longValue")), b.if_(b.greaterThanEqual(14620, b.localVariable("self"), b.localVariable("to1")), b.block(b.forLoop(null, b.sequence(b.declareVariable(14621, long.class, "i", b.localVariable("self"))), b.greaterThanEqual(14621, b.localVariable("i"), b.localVariable("to1")), b.sequence(b.postfixDec(14621, b.localVariable("i"))), b.block(b.functionCall(14622, b.localVariable("closure"), "call", b.localVariable("i"))))), b.throw_(14625, b.new_(14625, GroovyRuntimeException.class, b.plus(14625, b.plus(14625, b.plus(14625, b.plus(14625, b.constant("The argument ("), b.localVariable("to")), b.constant(") to downto() cannot be greater than the value (")), b.localVariable("self")), b.constant(") it's called on.")))))));
throw new CpsCallableInvocation(f, null, self, to, closure);
}
public static void eachByte(byte[] self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachByte", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachByte", self, closure))) {
DefaultGroovyMethods.eachByte(self, closure);
return ;
}
CpsDefaultGroovyMethods.$eachByte__byte_array__groovy_lang_Closure(self, closure);
}
private static void $eachByte__byte_array__groovy_lang_Closure(byte[] self, Closure closure) {
Builder b = new Builder(loc("eachByte")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.staticCall(15365, CpsDefaultGroovyMethods.class, "$each__java_lang_Object__groovy_lang_Closure", b.localVariable("self"), b.localVariable("closure"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public static void eachByte(Byte[] self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachByte", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachByte", self, closure))) {
DefaultGroovyMethods.eachByte(self, closure);
return ;
}
CpsDefaultGroovyMethods.$eachByte__java_lang_Byte_array__groovy_lang_Closure(self, closure);
}
private static void $eachByte__java_lang_Byte_array__groovy_lang_Closure(Byte[] self, Closure closure) {
Builder b = new Builder(loc("eachByte")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.staticCall(15353, CpsDefaultGroovyMethods.class, "$each__java_lang_Object__groovy_lang_Closure", b.localVariable("self"), b.localVariable("closure"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public static void eachCombination(Iterable self, Closure> function) {
if ((!Caller.isAsynchronous(self, "eachCombination", function))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachCombination", self, function))) {
DefaultGroovyMethods.eachCombination(self, function);
return ;
}
CpsDefaultGroovyMethods.$eachCombination__java_lang_Iterable__groovy_lang_Closure(self, function);
}
private static void $eachCombination__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure> function) {
Builder b = new Builder(loc("eachCombination")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "function"), b.block(b.staticCall(4611, CpsDefaultGroovyMethods.class, "$each__java_util_List__groovy_lang_Closure", b.functionCall(4611, b.constant(GroovyCollections.class), "combinations", b.localVariable("self")), b.localVariable("function"))));
throw new CpsCallableInvocation(f, null, self, function);
}
public staticIterator> eachPermutation(Iterable self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachPermutation", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachPermutation", self, closure))) {
return DefaultGroovyMethods.eachPermutation(self, closure);
}
return CpsDefaultGroovyMethods.$eachPermutation__java_lang_Iterable__groovy_lang_Closure(self, closure);
}
private staticIterator> $eachPermutation__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure closure) {
Builder b = new Builder(loc("eachPermutation")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(4710, Iterator.class, "generator", b.new_(4710, PermutationGenerator.class, b.localVariable("self"))), b.while_(null, b.functionCall(4711, b.localVariable("generator"), "hasNext"), b.block(b.functionCall(4712, b.localVariable("closure"), "call", b.functionCall(4712, b.localVariable("generator"), "next")))), b.return_(b.localVariable("generator"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticIterable eachWithIndex(Iterable self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachWithIndex", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachWithIndex", self, closure))) {
return DefaultGroovyMethods.eachWithIndex(self, closure);
}
return CpsDefaultGroovyMethods.$eachWithIndex__java_lang_Iterable__groovy_lang_Closure(self, closure);
}
private staticIterable $eachWithIndex__java_lang_Iterable__groovy_lang_Closure(Iterable self, Closure closure) {
Builder b = new Builder(loc("eachWithIndex")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.staticCall(1926, CpsDefaultGroovyMethods.class, "$eachWithIndex__java_util_Iterator__groovy_lang_Closure", b.functionCall(1926, b.localVariable("self"), "iterator"), b.localVariable("closure")), b.return_(b.localVariable("self"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticT eachWithIndex(T self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachWithIndex", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachWithIndex", self, closure))) {
return DefaultGroovyMethods.eachWithIndex(self, closure);
}
return CpsDefaultGroovyMethods.$eachWithIndex__java_lang_Object__groovy_lang_Closure(self, closure);
}
private staticT $eachWithIndex__java_lang_Object__groovy_lang_Closure(T self, Closure closure) {
Builder b = new Builder(loc("eachWithIndex")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(1905, Object[].class, "args", b.newArray(1905, Object.class, b.constant(2))), b.declareVariable(1906, int.class, "counter", b.constant(0)), b.forLoop(null, b.sequence(b.declareVariable(1907, Iterator.class, "iter", b.functionCall(1907, b.constant(InvokerHelper.class), "asIterator", b.localVariable("self")))), b.functionCall(1907, b.localVariable("iter"), "hasNext"), b.sequence(), b.block(b.assign(1908, b.array(1908, b.localVariable("args"), b.constant(0)), b.functionCall(1908, b.localVariable("iter"), "next")), b.assign(1909, b.array(1909, b.localVariable("args"), b.constant(1)), b.postfixInc(1909, b.localVariable("counter"))), b.functionCall(1910, b.localVariable("closure"), "call", b.localVariable("args")))), b.return_(b.localVariable("self"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticCollection eachWithIndex(Collection self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachWithIndex", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachWithIndex", self, closure))) {
return DefaultGroovyMethods.eachWithIndex(self, closure);
}
return CpsDefaultGroovyMethods.$eachWithIndex__java_util_Collection__groovy_lang_Closure(self, closure);
}
private staticCollection $eachWithIndex__java_util_Collection__groovy_lang_Closure(Collection self, Closure closure) {
Builder b = new Builder(loc("eachWithIndex")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.return_(b.cast(1962, b.staticCall(1962, CpsDefaultGroovyMethods.class, "$eachWithIndex__java_lang_Iterable__groovy_lang_Closure", b.cast(1962, b.localVariable("self"), Iterable.class, false), b.localVariable("closure")), Collection.class, false))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticIterator eachWithIndex(Iterator self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachWithIndex", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachWithIndex", self, closure))) {
return DefaultGroovyMethods.eachWithIndex(self, closure);
}
return CpsDefaultGroovyMethods.$eachWithIndex__java_util_Iterator__groovy_lang_Closure(self, closure);
}
private staticIterator $eachWithIndex__java_util_Iterator__groovy_lang_Closure(Iterator self, Closure closure) {
Builder b = new Builder(loc("eachWithIndex")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.declareVariable(1941, Object[].class, "args", b.newArray(1941, Object.class, b.constant(2))), b.declareVariable(1942, int.class, "counter", b.constant(0)), b.while_(null, b.functionCall(1943, b.localVariable("self"), "hasNext"), b.block(b.assign(1944, b.array(1944, b.localVariable("args"), b.constant(0)), b.functionCall(1944, b.localVariable("self"), "next")), b.assign(1945, b.array(1945, b.localVariable("args"), b.constant(1)), b.postfixInc(1945, b.localVariable("counter"))), b.functionCall(1946, b.localVariable("closure"), "call", b.localVariable("args")))), b.return_(b.localVariable("self"))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticList eachWithIndex(List self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachWithIndex", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachWithIndex", self, closure))) {
return DefaultGroovyMethods.eachWithIndex(self, closure);
}
return CpsDefaultGroovyMethods.$eachWithIndex__java_util_List__groovy_lang_Closure(self, closure);
}
private staticList $eachWithIndex__java_util_List__groovy_lang_Closure(List self, Closure closure) {
Builder b = new Builder(loc("eachWithIndex")).contextualize(com.cloudbees.groovy.cps.sandbox.Trusted.INSTANCE);
CpsFunction f = new CpsFunction(Arrays.asList("self", "closure"), b.block(b.return_(b.cast(1976, b.staticCall(1976, CpsDefaultGroovyMethods.class, "$eachWithIndex__java_lang_Iterable__groovy_lang_Closure", b.cast(1976, b.localVariable("self"), Iterable.class, false), b.localVariable("closure")), List.class, false))));
throw new CpsCallableInvocation(f, null, self, closure);
}
public staticMap eachWithIndex(Map self, Closure closure) {
if ((!Caller.isAsynchronous(self, "eachWithIndex", closure))&&(!Caller.isAsynchronous(CpsDefaultGroovyMethods.class, "eachWithIndex", self, closure))) {
return DefaultGroovyMethods.eachWithIndex(self, closure);
}
return CpsDefaultGroovyMethods.$eachWithIndex__java_util_Map__groovy_lang_Closure(self, closure);
}
private static