package org.graalvm.compiler.hotspot.meta;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class HotSpotProfilingPlugin_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "ProfileBackedges": {
return OptionDescriptor.create(
"ProfileBackedges",
OptionType.Expert,
Boolean.class,
"Emit profiling of backedges",
HotSpotProfilingPlugin.Options.class,
"ProfileBackedges",
HotSpotProfilingPlugin.Options.ProfileBackedges);
}
case "ProfileInvokes": {
return OptionDescriptor.create(
"ProfileInvokes",
OptionType.Expert,
Boolean.class,
"Emit profiling of invokes",
HotSpotProfilingPlugin.Options.class,
"ProfileInvokes",
HotSpotProfilingPlugin.Options.ProfileInvokes);
}
}
return null;
}
@Override
public Iterator<OptionDescriptor> iterator() {
return new Iterator<OptionDescriptor>() {
int i = 0;
@Override
public boolean hasNext() {
return i < 2;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("ProfileBackedges");
case 1: return get("ProfileInvokes");
}
throw new NoSuchElementException();
}
};
}
}