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

com.oracle.graal.python.builtins.modules.PosixSubprocessModuleBuiltinsClinicProviders Maven / Gradle / Ivy

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2023-09-13T15:54:29.313541462
package com.oracle.graal.python.builtins.modules;

import com.oracle.graal.python.builtins.modules.PosixSubprocessModuleBuiltins.EnvConversionNode;
import com.oracle.graal.python.builtins.modules.PosixSubprocessModuleBuiltins.ProcessArgsConversionNode;
import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentCastNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentClinicProvider;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaBooleanConverterNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaIntConversionNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaIntToBooleanConverterNode;

public class PosixSubprocessModuleBuiltinsClinicProviders {
    public static final class NewForkExecNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final NewForkExecNodeClinicProviderGen INSTANCE = new NewForkExecNodeClinicProviderGen();
        
        private NewForkExecNodeClinicProviderGen() {
            super(0x17c01e, 0x1f3fda, 0x17001a, 0x17001a, 0x8ffe5);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            switch (argIndex) {
                case 0: return ProcessArgsConversionNode.create();
                case 2: return JavaBooleanConverterNode.create(false);
                case 5: return EnvConversionNode.create();
                case 6: return JavaIntConversionNode.create(false);
                case 7: return JavaIntConversionNode.create(false);
                case 8: return JavaIntConversionNode.create(false);
                case 9: return JavaIntConversionNode.create(false);
                case 10: return JavaIntConversionNode.create(false);
                case 11: return JavaIntConversionNode.create(false);
                case 12: return JavaIntConversionNode.create(false);
                case 13: return JavaIntConversionNode.create(false);
                case 14: return JavaIntToBooleanConverterNode.create(false);
                case 15: return JavaIntToBooleanConverterNode.create(false);
                case 19: return JavaIntConversionNode.create(false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy