// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: ResourcesFeature.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 ResourcesFeature_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "ExcludeResources": {
            return OptionDescriptor.create(
                /*name*/ "ExcludeResources",
                /*optionType*/ OptionType.User,
                /*optionValueType*/ com.oracle.svm.core.option.LocatableMultiOptionValue.Strings.class,
                /*help*/ "Regexp to match names of resources to be excluded from the image.",
                /*declaringClass*/ ResourcesFeature.Options.class,
                /*fieldName*/ "ExcludeResources",
                /*option*/ ResourcesFeature.Options.ExcludeResources,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "IncludeResources": {
            return OptionDescriptor.create(
                /*name*/ "IncludeResources",
                /*optionType*/ OptionType.User,
                /*optionValueType*/ com.oracle.svm.core.option.LocatableMultiOptionValue.Strings.class,
                /*help*/ "Regexp to match names of resources to be included in the image.",
                /*declaringClass*/ ResourcesFeature.Options.class,
                /*fieldName*/ "IncludeResources",
                /*option*/ ResourcesFeature.Options.IncludeResources,
                /*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("ExcludeResources");
                    case 1: return get("IncludeResources");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
