
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.TruffleOptionDescriptors;
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.OptionStability;
import org.graalvm.polyglot.SandboxPolicy;
@GeneratedBy(ImageBuildTimeOptions.class)
final class ImageBuildTimeOptionsOptionDescriptors implements TruffleOptionDescriptors {
@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.").usageSyntax("").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.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
case "image-build-time.PreinitializeContextsWithNative" :
return OptionDescriptor.newBuilder(ImageBuildTimeOptions.PreinitializeContextsWithNative, "image-build-time.PreinitializeContextsWithNative").deprecated(false).help("Pre-initialize language contexts with native access privileges.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
}
return null;
}
@Override
public SandboxPolicy getSandboxPolicy(String optionName) {
assert get(optionName) != null : "Unknown option " + optionName;
return SandboxPolicy.TRUSTED;
}
@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.").usageSyntax("").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.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(ImageBuildTimeOptions.PreinitializeContextsWithNative, "image-build-time.PreinitializeContextsWithNative").deprecated(false).help("Pre-initialize language contexts with native access privileges.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build())
.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy