package org.graalvm.compiler.hotspot.meta;
import java.util.*;
import org.graalvm.compiler.options.*;
public class HotSpotProfilingPlugin_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "ProfileBackedges": {
return OptionDescriptor.create(
"ProfileBackedges",
Boolean.class,
"Emit profiling of backedges",
HotSpotProfilingPlugin.Options.class,
"ProfileBackedges",
HotSpotProfilingPlugin.Options.ProfileBackedges);
}
case "ProfileInvokes": {
return OptionDescriptor.create(
"ProfileInvokes",
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();
}
};
}
}