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

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

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2024-04-05T16:06:43.882681562
package com.oracle.graal.python.builtins.modules;

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.JavaIntConversionNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaLongConversionNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.LongIndexConverterNode;

public class MMapModuleBuiltinsClinicProviders {
    public static final class MMapNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final MMapNodeClinicProviderGen INSTANCE = new MMapNodeClinicProviderGen();
        
        private MMapNodeClinicProviderGen() {
            super(0x1, 0x7f, 0x5, 0x1, 0x7e);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            switch (argIndex) {
                case 1: return JavaIntConversionNode.create(false);
                case 2: return LongIndexConverterNode.create(false);
                case 3: return JavaIntConversionNode.create(com.oracle.graal.python.builtins.modules.MMapModuleBuiltins.MMapNode.FLAGS_DEFAULT, false);
                case 4: return JavaIntConversionNode.create(com.oracle.graal.python.builtins.modules.MMapModuleBuiltins.MMapNode.PROT_DEFAULT, false);
                case 5: return JavaIntConversionNode.create(com.oracle.graal.python.builtins.modules.MMapModuleBuiltins.MMapNode.ACCESS_ARG_DEFAULT, false);
                case 6: return JavaLongConversionNode.create(0, false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy