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

com.oracle.graal.python.builtins.modules.UnicodeDataModuleBuiltinsClinicProviders 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.304435157
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.CodePointConversionNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterNode;

public class UnicodeDataModuleBuiltinsClinicProviders {
    public static final class IsNormalizedNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final IsNormalizedNodeClinicProviderGen INSTANCE = new IsNormalizedNodeClinicProviderGen();
        
        private IsNormalizedNodeClinicProviderGen() {
            super(0x0, 0x0, 0x0, 0x0, 0x3);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            switch (argIndex) {
                case 0: return TruffleStringConverterNode.create("is_normalized");
                case 1: return TruffleStringConverterNode.create("is_normalized");
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class CategoryNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final CategoryNodeClinicProviderGen INSTANCE = new CategoryNodeClinicProviderGen();
        
        private CategoryNodeClinicProviderGen() {
            super(0x0, 0x0, 0x0, 0x0, 0x1);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 0) {
                return CodePointConversionNode.create("category", false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class NormalizeNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final NormalizeNodeClinicProviderGen INSTANCE = new NormalizeNodeClinicProviderGen();
        
        private NormalizeNodeClinicProviderGen() {
            super(0x0, 0x0, 0x0, 0x0, 0x3);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            switch (argIndex) {
                case 0: return TruffleStringConverterNode.create("normalize");
                case 1: return TruffleStringConverterNode.create("normalize");
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class BidirectionalNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final BidirectionalNodeClinicProviderGen INSTANCE = new BidirectionalNodeClinicProviderGen();
        
        private BidirectionalNodeClinicProviderGen() {
            super(0x0, 0x0, 0x0, 0x0, 0x1);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 0) {
                return CodePointConversionNode.create("bidirectional", false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class NameNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final NameNodeClinicProviderGen INSTANCE = new NameNodeClinicProviderGen();
        
        private NameNodeClinicProviderGen() {
            super(0x2, 0x2, 0x2, 0x2, 0x1);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 0) {
                return CodePointConversionNode.create("name", false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy