// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: FinalizeProfileNodesPhase.java
package org.graalvm.compiler.hotspot.phases.profiling;

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

public class FinalizeProfileNodesPhase_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "ProfileSimpleMethods": {
            return OptionDescriptor.create(
                /*name*/ "ProfileSimpleMethods",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Profile simple methods",
                /*declaringClass*/ FinalizeProfileNodesPhase.Options.class,
                /*fieldName*/ "ProfileSimpleMethods",
                /*option*/ FinalizeProfileNodesPhase.Options.ProfileSimpleMethods);
        }
        case "SimpleMethodCalls": {
            return OptionDescriptor.create(
                /*name*/ "SimpleMethodCalls",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "Maximum number of calls in a simple method",
                /*declaringClass*/ FinalizeProfileNodesPhase.Options.class,
                /*fieldName*/ "SimpleMethodCalls",
                /*option*/ FinalizeProfileNodesPhase.Options.SimpleMethodCalls);
        }
        case "SimpleMethodGraphSize": {
            return OptionDescriptor.create(
                /*name*/ "SimpleMethodGraphSize",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "Maximum number of nodes in a graph for a simple method",
                /*declaringClass*/ FinalizeProfileNodesPhase.Options.class,
                /*fieldName*/ "SimpleMethodGraphSize",
                /*option*/ FinalizeProfileNodesPhase.Options.SimpleMethodGraphSize);
        }
        case "SimpleMethodIndirectCalls": {
            return OptionDescriptor.create(
                /*name*/ "SimpleMethodIndirectCalls",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "Maximum number of indirect calls in a simple moethod",
                /*declaringClass*/ FinalizeProfileNodesPhase.Options.class,
                /*fieldName*/ "SimpleMethodIndirectCalls",
                /*option*/ FinalizeProfileNodesPhase.Options.SimpleMethodIndirectCalls);
        }
        // CheckStyle: resume line length check
        }
        return null;
    }

    @Override
    public Iterator<OptionDescriptor> iterator() {
        return new Iterator<OptionDescriptor>() {
            int i = 0;
            @Override
            public boolean hasNext() {
                return i < 4;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("ProfileSimpleMethods");
                    case 1: return get("SimpleMethodCalls");
                    case 2: return get("SimpleMethodGraphSize");
                    case 3: return get("SimpleMethodIndirectCalls");
                }
                throw new NoSuchElementException();
            }
        };
    }
}