All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.svm.hosted.LoggingFeature_OptionDescriptors Maven / Gradle / Ivy

The newest version!
// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: LoggingFeature.java
package com.oracle.svm.hosted;

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

public class LoggingFeature_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "EnableLoggingFeature": {
            return OptionDescriptor.create(
                /*name*/ "EnableLoggingFeature",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Enable the feature that provides support for logging.",
                /*declaringClass*/ LoggingFeature.Options.class,
                /*fieldName*/ "EnableLoggingFeature",
                /*option*/ LoggingFeature.Options.EnableLoggingFeature);
        }
        case "TraceLoggingFeature": {
            return OptionDescriptor.create(
                /*name*/ "TraceLoggingFeature",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "When enabled, logging feature details are printed.",
                /*declaringClass*/ LoggingFeature.Options.class,
                /*fieldName*/ "TraceLoggingFeature",
                /*option*/ LoggingFeature.Options.TraceLoggingFeature);
        }
        // CheckStyle: resume line length check
        }
        return null;
    }

    @Override
    public Iterator iterator() {
        return new Iterator() {
            int i = 0;
            @Override
            public boolean hasNext() {
                return i < 2;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("EnableLoggingFeature");
                    case 1: return get("TraceLoggingFeature");
                }
                throw new NoSuchElementException();
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy