com.oracle.graal.python.builtins.modules.TimeModuleBuiltinsClinicProviders Maven / Gradle / Ivy
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2024-04-05T16:06:43.919176365
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.TruffleStringConverterNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterWithDefaultValueNode;
public class TimeModuleBuiltinsClinicProviders {
public static final class StrptimeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final StrptimeNodeClinicProviderGen INSTANCE = new StrptimeNodeClinicProviderGen();
private StrptimeNodeClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x3);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0: return TruffleStringConverterNode.create("strptime");
case 1: return TruffleStringConverterWithDefaultValueNode.create("strptime", com.oracle.graal.python.builtins.modules.TimeModuleBuiltins.StrptimeNode.T_DEFAULT_FORMAT, true);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class GetClockInfoNodeClinicProviderGen extends ArgumentClinicProvider {
public static final GetClockInfoNodeClinicProviderGen INSTANCE = new GetClockInfoNodeClinicProviderGen();
private GetClockInfoNodeClinicProviderGen() {
super(0x0, 0x0, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return TruffleStringConverterNode.create("get_clock_info");
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class StrfTimeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final StrfTimeNodeClinicProviderGen INSTANCE = new StrfTimeNodeClinicProviderGen();
private StrfTimeNodeClinicProviderGen() {
super(0x5, 0x5, 0x5, 0x5, 0x2);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 1) {
return TruffleStringConverterNode.create("strftime");
}
return super.createCastNode(argIndex, builtin);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy