package org.graalvm.compiler.hotspot;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class CompilationCounters_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "CompilationCountLimit": {
return OptionDescriptor.create(
"CompilationCountLimit",
OptionType.Debug,
Integer.class,
"The number of compilations allowed for any method before the VM exits (a value of 0 means there is no limit).",
CompilationCounters.Options.class,
"CompilationCountLimit",
CompilationCounters.Options.CompilationCountLimit);
}
}
return null;
}
@Override
public Iterator<OptionDescriptor> iterator() {
return new Iterator<OptionDescriptor>() {
int i = 0;
@Override
public boolean hasNext() {
return i < 1;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("CompilationCountLimit");
}
throw new NoSuchElementException();
}
};
}
}