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

com.oracle.graal.python.builtins.modules.ItertoolsModuleBuiltinsClinicProviders 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.287909367
package com.oracle.graal.python.builtins.modules;

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

public class ItertoolsModuleBuiltinsClinicProviders {
    public static final class TeeNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final TeeNodeClinicProviderGen INSTANCE = new TeeNodeClinicProviderGen();
        
        private TeeNodeClinicProviderGen() {
            super(0x1, 0x3, 0x1, 0x1, 0x2);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 1) {
                return JavaIntConversionNode.create(2, false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class RepeatNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final RepeatNodeClinicProviderGen INSTANCE = new RepeatNodeClinicProviderGen();
        
        private RepeatNodeClinicProviderGen() {
            super(0x7, 0x7, 0x7, 0x7, 0x4);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 2) {
                return DefaultValueNode.create(PNone.NONE, true);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class PermutationsNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final PermutationsNodeClinicProviderGen INSTANCE = new PermutationsNodeClinicProviderGen();
        
        private PermutationsNodeClinicProviderGen() {
            super(0x7, 0x7, 0x7, 0x7, 0x4);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 2) {
                return DefaultValueNode.create(PNone.NONE, false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class CombinationsWithReplacementNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final CombinationsWithReplacementNodeClinicProviderGen INSTANCE = new CombinationsWithReplacementNodeClinicProviderGen();
        
        private CombinationsWithReplacementNodeClinicProviderGen() {
            super(0x3, 0x7, 0x3, 0x3, 0x4);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 2) {
                return JavaIntConversionNode.create(false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class GroupByNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final GroupByNodeClinicProviderGen INSTANCE = new GroupByNodeClinicProviderGen();
        
        private GroupByNodeClinicProviderGen() {
            super(0x7, 0x7, 0x7, 0x7, 0x4);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 2) {
                return DefaultValueNode.create(PNone.NONE, false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class CombinationsNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final CombinationsNodeClinicProviderGen INSTANCE = new CombinationsNodeClinicProviderGen();
        
        private CombinationsNodeClinicProviderGen() {
            super(0x3, 0x7, 0x3, 0x3, 0x4);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 2) {
                return JavaIntConversionNode.create(false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class CountNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final CountNodeClinicProviderGen INSTANCE = new CountNodeClinicProviderGen();
        
        private CountNodeClinicProviderGen() {
            super(0x7, 0x7, 0x7, 0x7, 0x6);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            switch (argIndex) {
                case 1: return DefaultValueNode.create(0, true);
                case 2: return DefaultValueNode.create(1, true);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy