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

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

public class CAnnotationProcessorCache_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "CAPCacheDir": {
            return OptionDescriptor.create(
                /*name*/ "CAPCacheDir",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ String.class,
                /*help*/ "Directory where information generated by the CAnnotation Processor are cached.",
                /*declaringClass*/ CAnnotationProcessorCache.Options.class,
                /*fieldName*/ "CAPCacheDir",
                /*option*/ CAnnotationProcessorCache.Options.CAPCacheDir,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "ExitAfterCAPCache": {
            return OptionDescriptor.create(
                /*name*/ "ExitAfterCAPCache",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Exit image generation after C Annotation Processor Cache creation.",
                /*declaringClass*/ CAnnotationProcessorCache.Options.class,
                /*fieldName*/ "ExitAfterCAPCache",
                /*option*/ CAnnotationProcessorCache.Options.ExitAfterCAPCache,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "ExitAfterQueryCodeGeneration": {
            return OptionDescriptor.create(
                /*name*/ "ExitAfterQueryCodeGeneration",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Output query code for target platform without executing it",
                /*declaringClass*/ CAnnotationProcessorCache.Options.class,
                /*fieldName*/ "ExitAfterQueryCodeGeneration",
                /*option*/ CAnnotationProcessorCache.Options.ExitAfterQueryCodeGeneration,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "NewCAPCache": {
            return OptionDescriptor.create(
                /*name*/ "NewCAPCache",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Create a C Annotation Processor Cache. Will erase any previous cache at that same location.",
                /*declaringClass*/ CAnnotationProcessorCache.Options.class,
                /*fieldName*/ "NewCAPCache",
                /*option*/ CAnnotationProcessorCache.Options.NewCAPCache,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "QueryCodeDir": {
            return OptionDescriptor.create(
                /*name*/ "QueryCodeDir",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ String.class,
                /*help*/ "Directory where query code for target platform should be output",
                /*declaringClass*/ CAnnotationProcessorCache.Options.class,
                /*fieldName*/ "QueryCodeDir",
                /*option*/ CAnnotationProcessorCache.Options.QueryCodeDir,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "UseCAPCache": {
            return OptionDescriptor.create(
                /*name*/ "UseCAPCache",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Indicate the C Annotation Processor to use previously cached native information when generating C Type information.",
                /*declaringClass*/ CAnnotationProcessorCache.Options.class,
                /*fieldName*/ "UseCAPCache",
                /*option*/ CAnnotationProcessorCache.Options.UseCAPCache,
                /*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 < 6;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("CAPCacheDir");
                    case 1: return get("ExitAfterCAPCache");
                    case 2: return get("ExitAfterQueryCodeGeneration");
                    case 3: return get("NewCAPCache");
                    case 4: return get("QueryCodeDir");
                    case 5: return get("UseCAPCache");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
