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

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

public class TimeZoneFeature_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "IncludeAllTimeZones": {
            return OptionDescriptor.create(
                /*name*/ "IncludeAllTimeZones",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "When true, all time zones will be pre-initialized in the image.",
                /*declaringClass*/ TimeZoneFeature.Options.class,
                /*fieldName*/ "IncludeAllTimeZones",
                /*option*/ TimeZoneFeature.Options.IncludeAllTimeZones,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "IncludeTimeZones": {
            return OptionDescriptor.create(
                /*name*/ "IncludeTimeZones",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ String.class,
                /*help*/ "The time zones, in addition to the default zone of the host, that will be pre-initialized in the image.",
                /*declaringClass*/ TimeZoneFeature.Options.class,
                /*fieldName*/ "IncludeTimeZones",
                /*option*/ TimeZoneFeature.Options.IncludeTimeZones,
                /*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("IncludeAllTimeZones");
                    case 1: return get("IncludeTimeZones");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
