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

com.oracle.graal.python.runtime.PythonOptionsOptionDescriptors Maven / Gradle / Ivy

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
package com.oracle.graal.python.runtime;

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(PythonOptions.class)
final class PythonOptionsOptionDescriptors implements TruffleOptionDescriptors {

    @Override
    public OptionDescriptor get(String optionName) {
        switch (optionName) {
            case "python.AlwaysRunExcepthook" :
                return OptionDescriptor.newBuilder(PythonOptions.AlwaysRunExcepthook, "python.AlwaysRunExcepthook").deprecated(false).help("This option is set by the Python launcher to tell the language it can print exceptions directly").usageSyntax("true|false").category(OptionCategory.EXPERT).stability(OptionStability.STABLE).build();
            case "python.AttributeAccessInlineCacheMaxDepth" :
                return OptionDescriptor.newBuilder(PythonOptions.AttributeAccessInlineCacheMaxDepth, "python.AttributeAccessInlineCacheMaxDepth").deprecated(false).help("").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.BuiltinsInliningMaxCallerSize" :
                return OptionDescriptor.newBuilder(PythonOptions.BuiltinsInliningMaxCallerSize, "python.BuiltinsInliningMaxCallerSize").deprecated(false).help("Stop inlining of builtins if caller's cumulative tree size would exceed this limit").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.CAPI" :
                return OptionDescriptor.newBuilder(PythonOptions.CAPI, "python.CAPI").deprecated(false).help("Set the location of C API home. Overrides any environment variables or Java options.").usageSyntax("").category(OptionCategory.INTERNAL).stability(OptionStability.STABLE).build();
            case "python.CallSiteInlineCacheMaxDepth" :
                return OptionDescriptor.newBuilder(PythonOptions.CallSiteInlineCacheMaxDepth, "python.CallSiteInlineCacheMaxDepth").deprecated(false).help("").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.CatchAllExceptions" :
                return OptionDescriptor.newBuilder(PythonOptions.CatchAllExceptions, "python.CatchAllExceptions").deprecated(false).help("Enable catching all Exceptions in generic try-catch statements.").usageSyntax("true|false").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
            case "python.CatchGraalPythonExceptionForUnitTesting" :
                return OptionDescriptor.newBuilder(PythonOptions.CatchGraalPythonExceptionForUnitTesting, "python.CatchGraalPythonExceptionForUnitTesting").deprecated(false).help("").usageSyntax("true|false").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
            case "python.CheckHashPycsMode" :
                return OptionDescriptor.newBuilder(PythonOptions.CheckHashPycsMode, "python.CheckHashPycsMode").deprecated(false).help("Value of the --check-hash-based-pycs command line option- 'default' means the 'check_source' flag in hash-based pycs  determines invalidation- 'always' causes the interpreter to hash the source file for  invalidation regardless of value of 'check_source' bit- 'never' causes the interpreter to always assume hash-based pycs are  validThe default value is 'default'.See PEP 552 'Deterministic pycs' for more details.").usageSyntax("default|always|never").category(OptionCategory.USER).stability(OptionStability.STABLE).build();
            case "python.CoreHome" :
                return OptionDescriptor.newBuilder(PythonOptions.CoreHome, "python.CoreHome").deprecated(false).help("Set the location of lib/graalpy23.1. Overrides any environment variables or Java options.").usageSyntax("").category(OptionCategory.USER).stability(OptionStability.STABLE).build();
            case "python.DisableFrozenModules" :
                return OptionDescriptor.newBuilder(PythonOptions.DisableFrozenModules, "python.DisableFrozenModules").deprecated(false).help("Disables using frozen modules.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.DontWriteBytecodeFlag" :
                return OptionDescriptor.newBuilder(PythonOptions.DontWriteBytecodeFlag, "python.DontWriteBytecodeFlag").deprecated(false).help("Equivalent to the Python -B flag. Don't write bytecode files.").usageSyntax("true|false").category(OptionCategory.USER).stability(OptionStability.STABLE).build();
            case "python.EagerlyMaterializeInstrumentationNodes" :
                return OptionDescriptor.newBuilder(PythonOptions.EagerlyMaterializeInstrumentationNodes, "python.EagerlyMaterializeInstrumentationNodes").deprecated(false).help("Makes bytecode instrumentation node materialization eager instead of lazy.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.EmulateJython" :
                return OptionDescriptor.newBuilder(PythonOptions.EmulateJython, "python.EmulateJython").deprecated(false).help("Emulate some Jython features that can cause performance degradation").usageSyntax("true|false").category(OptionCategory.USER).stability(OptionStability.EXPERIMENTAL).build();
            case "python.EnableDebuggingBuiltins" :
                return OptionDescriptor.newBuilder(PythonOptions.EnableDebuggingBuiltins, "python.EnableDebuggingBuiltins").deprecated(false).help("Enable built-in functions on the __graalpython__ module that are useful for debugging.").usageSyntax("true|false").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.EnableForcedSplits" :
                return OptionDescriptor.newBuilder(PythonOptions.EnableForcedSplits, "python.EnableForcedSplits").deprecated(false).help("Enable forced splitting (of builtins). Default false.").usageSyntax("true|false").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.Executable" :
                return OptionDescriptor.newBuilder(PythonOptions.Executable, "python.Executable").deprecated(false).help("The sys.executable path. Set by the launcher, but can may need to be overridden in certain special situations.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.STABLE).build();
            case "python.ExecutableList" :
                return OptionDescriptor.newBuilder(PythonOptions.ExecutableList, "python.ExecutableList").deprecated(false).help("The executed command list as string joined by the executable list separator char. This must always correspond to the real, valid command list used to run GraalPython.").usageSyntax("[🏆]").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.ExposeInternalSources" :
                return OptionDescriptor.newBuilder(PythonOptions.ExposeInternalSources, "python.ExposeInternalSources").deprecated(false).help("Expose internal sources as normal sources, so they will show up in the debugger and stacks").usageSyntax("true|false").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
            case "python.ForceImportSite" :
                return OptionDescriptor.newBuilder(PythonOptions.ForceImportSite, "python.ForceImportSite").deprecated(false).help("Force to automatically import site.py module.").usageSyntax("true|false").category(OptionCategory.EXPERT).stability(OptionStability.STABLE).build();
            case "python.ForceInitializeSourceSections" :
                return OptionDescriptor.newBuilder(PythonOptions.ForceInitializeSourceSections, "python.ForceInitializeSourceSections").deprecated(false).help("Eagerly initialize source sections.").usageSyntax("true|false").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
            case "python.ForceInlineGeneratorCalls" :
                return OptionDescriptor.newBuilder(PythonOptions.ForceInlineGeneratorCalls, "python.ForceInlineGeneratorCalls").deprecated(false).help("").usageSyntax("true|false").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.ForceSharingForInnerContexts" :
                return OptionDescriptor.newBuilder(PythonOptions.ForceSharingForInnerContexts, "python.ForceSharingForInnerContexts").deprecated(false).help("Forces AST sharing for inner contexts.").usageSyntax("true|false").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
            case "python.HPyBackend" :
                return OptionDescriptor.newBuilder(PythonOptions.HPyBackend, "python.HPyBackend").deprecated(false).help("Choose the backend for HPy binary mode.").usageSyntax("jni|nfi|llvm").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
            case "python.HPyEnableJNIFastPaths" :
                return OptionDescriptor.newBuilder(PythonOptions.HPyEnableJNIFastPaths, "python.HPyEnableJNIFastPaths").deprecated(false).help("If {@code true}, code is enabled that tries to reduce expensive upcalls into the runtimewhen HPy API functions are used. This is achieved by mirroring data in native memory.").usageSyntax("true|false").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
            case "python.HPyTraceUpcalls" :
                return OptionDescriptor.newBuilder(PythonOptions.HPyTraceUpcalls, "python.HPyTraceUpcalls").deprecated(false).help("Specifies the interval (ms) for periodically printing HPy upcall statistics. If {@code 0}or not specified, nothing will be printed (default).").usageSyntax("




© 2015 - 2024 Weber Informatics LLC | Privacy Policy