com.oracle.truffle.polyglot.ImageBuildTimeOptionsOptionDescriptors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-api Show documentation
Show all versions of truffle-api Show documentation
Truffle is a multi-language framework for executing dynamic languages
that achieves high performance when combined with Graal.
// 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();
}
}