com.oracle.graal.python.builtins.modules.BinasciiModuleBuiltinsClinicProviders Maven / Gradle / Ivy
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2023-09-13T15:54:29.237685945
package com.oracle.graal.python.builtins.modules;
import com.oracle.graal.python.builtins.modules.BinasciiModuleBuiltins.AsciiBufferConverter;
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.ReadableBufferConversionNode;
public class BinasciiModuleBuiltinsClinicProviders {
public static final class A2bBase64NodeClinicProviderGen extends ArgumentClinicProvider {
public static final A2bBase64NodeClinicProviderGen INSTANCE = new A2bBase64NodeClinicProviderGen();
private A2bBase64NodeClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return AsciiBufferConverter.create();
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class UnhexlifyNodeClinicProviderGen extends ArgumentClinicProvider {
public static final UnhexlifyNodeClinicProviderGen INSTANCE = new UnhexlifyNodeClinicProviderGen();
private UnhexlifyNodeClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return AsciiBufferConverter.create();
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class Crc32NodeClinicProviderGen extends ArgumentClinicProvider {
public static final Crc32NodeClinicProviderGen INSTANCE = new Crc32NodeClinicProviderGen();
private Crc32NodeClinicProviderGen() {
super(0x0, 0x2, 0x0, 0x0, 0x3);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return ReadableBufferConversionNode.create(false);
case 1: return JavaLongConversionNode.create(0, false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class B2aHexNodeClinicProviderGen extends ArgumentClinicProvider {
public static final B2aHexNodeClinicProviderGen INSTANCE = new B2aHexNodeClinicProviderGen();
private B2aHexNodeClinicProviderGen() {
super(0x2, 0x6, 0x2, 0x2, 0x5);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return ReadableBufferConversionNode.create(false);
case 2: return JavaIntConversionNode.create(1, false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class HexlifyNodeClinicProviderGen extends ArgumentClinicProvider {
public static final HexlifyNodeClinicProviderGen INSTANCE = new HexlifyNodeClinicProviderGen();
private HexlifyNodeClinicProviderGen() {
super(0x2, 0x6, 0x2, 0x2, 0x5);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return ReadableBufferConversionNode.create(false);
case 2: return JavaIntConversionNode.create(1, false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class A2bHexNodeClinicProviderGen extends ArgumentClinicProvider {
public static final A2bHexNodeClinicProviderGen INSTANCE = new A2bHexNodeClinicProviderGen();
private A2bHexNodeClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return AsciiBufferConverter.create();
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class B2aBase64NodeClinicProviderGen extends ArgumentClinicProvider {
public static final B2aBase64NodeClinicProviderGen INSTANCE = new B2aBase64NodeClinicProviderGen();
private B2aBase64NodeClinicProviderGen() {
super(0x0, 0x2, 0x0, 0x0, 0x3);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return ReadableBufferConversionNode.create(false);
case 1: return JavaIntConversionNode.create(1, true);
}
return super.createCastNode(argIndex, builtin);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy