// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: LoggingFeature.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 LoggingFeature_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "EnableLoggingFeature": {
            return OptionDescriptor.create(
                /*name*/ "EnableLoggingFeature",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Enable the feature that provides support for logging.",
                /*declaringClass*/ LoggingFeature.Options.class,
                /*fieldName*/ "EnableLoggingFeature",
                /*option*/ LoggingFeature.Options.EnableLoggingFeature,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "TraceLoggingFeature": {
            return OptionDescriptor.create(
                /*name*/ "TraceLoggingFeature",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "When enabled, logging feature details are printed.",
                /*declaringClass*/ LoggingFeature.Options.class,
                /*fieldName*/ "TraceLoggingFeature",
                /*option*/ LoggingFeature.Options.TraceLoggingFeature,
                /*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("EnableLoggingFeature");
                    case 1: return get("TraceLoggingFeature");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
