// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: ThreadingSupportImpl.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 ThreadingSupportImpl_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "CheckRecurringCallbackOnNativeToJavaTransition": {
            return OptionDescriptor.create(
                /*name*/ "CheckRecurringCallbackOnNativeToJavaTransition",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Test whether a thread's recurring callback is pending on each transition from native code to Java.",
                /*declaringClass*/ ThreadingSupportImpl.Options.class,
                /*fieldName*/ "CheckRecurringCallbackOnNativeToJavaTransition",
                /*option*/ ThreadingSupportImpl.Options.CheckRecurringCallbackOnNativeToJavaTransition,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "SupportRecurringCallback": {
            return OptionDescriptor.create(
                /*name*/ "SupportRecurringCallback",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Support a per-thread timer that is called at a specific interval.",
                /*declaringClass*/ ThreadingSupportImpl.Options.class,
                /*fieldName*/ "SupportRecurringCallback",
                /*option*/ ThreadingSupportImpl.Options.SupportRecurringCallback,
                /*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 < 2;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("CheckRecurringCallbackOnNativeToJavaTransition");
                    case 1: return get("SupportRecurringCallback");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
