// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: RuntimeCompilationFeature.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 RuntimeCompilationFeature_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "EnforceMaxRuntimeCompileMethods": {
            return OptionDescriptor.create(
                /*name*/ "EnforceMaxRuntimeCompileMethods",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Enforce checking of maximum number of methods allowed for runtime compilation. Useful for checking in the gate that the number of methods does not go up without a good reason.",
                /*declaringClass*/ RuntimeCompilationFeature.Options.class,
                /*fieldName*/ "EnforceMaxRuntimeCompileMethods",
                /*option*/ RuntimeCompilationFeature.Options.EnforceMaxRuntimeCompileMethods,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "MaxRuntimeCompileMethods": {
            return OptionDescriptor.create(
                /*name*/ "MaxRuntimeCompileMethods",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ com.oracle.svm.core.option.LocatableMultiOptionValue.Strings.class,
                /*help*/ "Maximum number of methods allowed for runtime compilation.",
                /*declaringClass*/ RuntimeCompilationFeature.Options.class,
                /*fieldName*/ "MaxRuntimeCompileMethods",
                /*option*/ RuntimeCompilationFeature.Options.MaxRuntimeCompileMethods,
                /*stability*/ OptionStability.STABLE,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "PrintRuntimeCompilationCallTree": {
            return OptionDescriptor.create(
                /*name*/ "PrintRuntimeCompilationCallTree",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Print call tree of methods reachable for runtime compilation",
                /*declaringClass*/ RuntimeCompilationFeature.Options.class,
                /*fieldName*/ "PrintRuntimeCompilationCallTree",
                /*option*/ RuntimeCompilationFeature.Options.PrintRuntimeCompilationCallTree,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "PrintRuntimeCompileMethods": {
            return OptionDescriptor.create(
                /*name*/ "PrintRuntimeCompileMethods",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Print methods available for runtime compilation",
                /*declaringClass*/ RuntimeCompilationFeature.Options.class,
                /*fieldName*/ "PrintRuntimeCompileMethods",
                /*option*/ RuntimeCompilationFeature.Options.PrintRuntimeCompileMethods,
                /*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 < 4;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("EnforceMaxRuntimeCompileMethods");
                    case 1: return get("MaxRuntimeCompileMethods");
                    case 2: return get("PrintRuntimeCompilationCallTree");
                    case 3: return get("PrintRuntimeCompileMethods");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
