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

com.oracle.truffle.polyglot.ImageBuildTimeOptionsOptionDescriptors Maven / Gradle / Ivy

Go to download

Truffle is a multi-language framework for executing dynamic languages that achieves high performance when combined with Graal.

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
package com.oracle.truffle.polyglot;

import com.oracle.truffle.api.dsl.GeneratedBy;
import java.util.Arrays;
import java.util.Iterator;
import org.graalvm.options.OptionCategory;
import org.graalvm.options.OptionDescriptor;
import org.graalvm.options.OptionDescriptors;
import org.graalvm.options.OptionStability;

@GeneratedBy(ImageBuildTimeOptions.class)
final class ImageBuildTimeOptionsOptionDescriptors implements OptionDescriptors {

    @Override
    public OptionDescriptor get(String optionName) {
        switch (optionName) {
            case "image-build-time.DisablePrivileges" :
                return OptionDescriptor.newBuilder(ImageBuildTimeOptions.DisablePrivileges, "image-build-time.DisablePrivileges").deprecated(false).help("Disable Context privileges so the related code can be excluded from the image.").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "image-build-time.PreinitializeContexts" :
                return OptionDescriptor.newBuilder(ImageBuildTimeOptions.PreinitializeContexts, "image-build-time.PreinitializeContexts").deprecated(false).help("Pre-initialize language contexts for the given languages.").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
        }
        return null;
    }

    @Override
    public Iterator iterator() {
        return Arrays.asList(
            OptionDescriptor.newBuilder(ImageBuildTimeOptions.DisablePrivileges, "image-build-time.DisablePrivileges").deprecated(false).help("Disable Context privileges so the related code can be excluded from the image.").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build(),
            OptionDescriptor.newBuilder(ImageBuildTimeOptions.PreinitializeContexts, "image-build-time.PreinitializeContexts").deprecated(false).help("Pre-initialize language contexts for the given languages.").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build())
        .iterator();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy