// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: Safepoint.java
package com.oracle.svm.core.thread;

import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
import org.graalvm.compiler.options.OptionStability;

public class Safepoint_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "GatherSafepointStatistics": {
            return OptionDescriptor.create(
                /*name*/ "GatherSafepointStatistics",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Gather statistics about each safepoint.",
                /*declaringClass*/ Safepoint.Statistics.Options.class,
                /*fieldName*/ "GatherSafepointStatistics",
                /*option*/ Safepoint.Statistics.Options.GatherSafepointStatistics,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "SafepointPromptnessFailureNanos": {
            return OptionDescriptor.create(
                /*name*/ "SafepointPromptnessFailureNanos",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Long.class,
                /*help*/ "Exit the VM if I can not come to a safepoint in this many nanoseconds. 0 implies forever.",
                /*declaringClass*/ Safepoint.Options.class,
                /*fieldName*/ "SafepointPromptnessFailureNanos",
                /*option*/ Safepoint.Options.SafepointPromptnessFailureNanos,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "SafepointPromptnessWarningNanos": {
            return OptionDescriptor.create(
                /*name*/ "SafepointPromptnessWarningNanos",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Long.class,
                /*help*/ "Print a warning if I can not come to a safepoint in this many nanoseconds. 0 implies forever.",
                /*declaringClass*/ Safepoint.Options.class,
                /*fieldName*/ "SafepointPromptnessWarningNanos",
                /*option*/ Safepoint.Options.SafepointPromptnessWarningNanos,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        // CheckStyle: resume line length check
        }
        return null;
    }

    @Override
    public Iterator<OptionDescriptor> iterator() {
        return new Iterator<>() {
            int i = 0;
            @Override
            public boolean hasNext() {
                return i < 3;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("GatherSafepointStatistics");
                    case 1: return get("SafepointPromptnessFailureNanos");
                    case 2: return get("SafepointPromptnessWarningNanos");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
