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

com.oracle.graal.python.builtins.modules.MarshalModuleBuiltinsClinicProviders 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.306528743
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.ReadableBufferConversionNode;

public class MarshalModuleBuiltinsClinicProviders {
    public static final class DumpNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final DumpNodeClinicProviderGen INSTANCE = new DumpNodeClinicProviderGen();
        
        private DumpNodeClinicProviderGen() {
            super(0x3, 0x7, 0x3, 0x3, 0x4);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 2) {
                return JavaIntConversionNode.create(com.oracle.graal.python.builtins.modules.MarshalModuleBuiltins.CURRENT_VERSION, false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class DumpsNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final DumpsNodeClinicProviderGen INSTANCE = new DumpsNodeClinicProviderGen();
        
        private DumpsNodeClinicProviderGen() {
            super(0x1, 0x3, 0x1, 0x1, 0x2);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 1) {
                return JavaIntConversionNode.create(com.oracle.graal.python.builtins.modules.MarshalModuleBuiltins.CURRENT_VERSION, false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class LoadsNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final LoadsNodeClinicProviderGen INSTANCE = new LoadsNodeClinicProviderGen();
        
        private LoadsNodeClinicProviderGen() {
            super(0x0, 0x0, 0x0, 0x0, 0x1);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 0) {
                return ReadableBufferConversionNode.create(false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy