package org.graalvm.compiler.phases.common;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class UseTrappingNullChecksPhase_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "UseTrappingNullChecks": {
return OptionDescriptor.create(
"UseTrappingNullChecks",
OptionType.Expert,
Boolean.class,
"Use traps for null checks instead of explicit null-checks",
UseTrappingNullChecksPhase.Options.class,
"UseTrappingNullChecks",
UseTrappingNullChecksPhase.Options.UseTrappingNullChecks);
}
}
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("UseTrappingNullChecks");
}
throw new NoSuchElementException();
}
};
}
}