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

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

public class ParseOnceRuntimeCompilationFeature_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "RemoveUnneededDeoptSupport": {
            return OptionDescriptor.create(
                /*name*/ "RemoveUnneededDeoptSupport",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Remove Deopt(Entries,Anchors,Proxies) determined to be unneeded after the runtime compiled graphs have been finalized.",
                /*declaringClass*/ ParseOnceRuntimeCompilationFeature.Options.class,
                /*fieldName*/ "RemoveUnneededDeoptSupport",
                /*option*/ ParseOnceRuntimeCompilationFeature.Options.RemoveUnneededDeoptSupport,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "RuntimeCompilationInlineBeforeAnalysis": {
            return OptionDescriptor.create(
                /*name*/ "RuntimeCompilationInlineBeforeAnalysis",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Perform InlineBeforeAnalysis on runtime compiled methods",
                /*declaringClass*/ ParseOnceRuntimeCompilationFeature.Options.class,
                /*fieldName*/ "RuntimeCompilationInlineBeforeAnalysis",
                /*option*/ ParseOnceRuntimeCompilationFeature.Options.RuntimeCompilationInlineBeforeAnalysis,
                /*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("RemoveUnneededDeoptSupport");
                    case 1: return get("RuntimeCompilationInlineBeforeAnalysis");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
