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

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

public class FeatureHandler_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "AllowDeprecatedAutomaticFeature": {
            return OptionDescriptor.create(
                /*name*/ "AllowDeprecatedAutomaticFeature",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Allow using deprecated @AutomaticFeature annotation. If set to false, an error is shown instead of a warning.",
                /*declaringClass*/ FeatureHandler.Options.class,
                /*fieldName*/ "AllowDeprecatedAutomaticFeature",
                /*option*/ FeatureHandler.Options.AllowDeprecatedAutomaticFeature,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "Features": {
            return OptionDescriptor.create(
                /*name*/ "Features",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ com.oracle.svm.core.option.LocatableMultiOptionValue.Strings.class,
                /*help*/ "A comma-separated list of fully qualified Feature implementation classes",
                /*declaringClass*/ FeatureHandler.Options.class,
                /*fieldName*/ "Features",
                /*option*/ FeatureHandler.Options.Features,
                /*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("AllowDeprecatedAutomaticFeature");
                    case 1: return get("Features");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
