com.oracle.graal.python.builtins.modules.ImpModuleBuiltinsClinicProviders Maven / Gradle / Ivy
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2023-09-13T15:54:29.190256889
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.JavaBooleanConverterNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaLongConversionNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.ReadableBufferConversionNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterNode;
public class ImpModuleBuiltinsClinicProviders {
public static final class IsFrozenPackageClinicProviderGen extends ArgumentClinicProvider {
public static final IsFrozenPackageClinicProviderGen INSTANCE = new IsFrozenPackageClinicProviderGen();
private IsFrozenPackageClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return TruffleStringConverterNode.create("is_frozen_package");
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class IsFrozenClinicProviderGen extends ArgumentClinicProvider {
public static final IsFrozenClinicProviderGen INSTANCE = new IsFrozenClinicProviderGen();
private IsFrozenClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return TruffleStringConverterNode.create("is_frozen");
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class FindFrozenClinicProviderGen extends ArgumentClinicProvider {
public static final FindFrozenClinicProviderGen INSTANCE = new FindFrozenClinicProviderGen();
private FindFrozenClinicProviderGen() {
super(0x2, 0x0, 0x0, 0x0, 0x3);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return TruffleStringConverterNode.create("find_frozen");
case 1: return JavaBooleanConverterNode.create(true, false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class InitFrozenClinicProviderGen extends ArgumentClinicProvider {
public static final InitFrozenClinicProviderGen INSTANCE = new InitFrozenClinicProviderGen();
private InitFrozenClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return TruffleStringConverterNode.create("init_frozen");
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class SourceHashNodeClinicProviderGen extends ArgumentClinicProvider {
public static final SourceHashNodeClinicProviderGen INSTANCE = new SourceHashNodeClinicProviderGen();
private SourceHashNodeClinicProviderGen() {
super(0x0, 0x1, 0x0, 0x0, 0x3);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return JavaLongConversionNode.create(false);
case 1: return ReadableBufferConversionNode.create(false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class GetFrozenObjectClinicProviderGen extends ArgumentClinicProvider {
public static final GetFrozenObjectClinicProviderGen INSTANCE = new GetFrozenObjectClinicProviderGen();
private GetFrozenObjectClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x3);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return TruffleStringConverterNode.create("get_frozen_object");
case 1: return ReadableBufferConversionNode.create(PNone.NONE, true);
}
return super.createCastNode(argIndex, builtin);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy