Class PythonConstantsImplementor
java.lang.Object
ai.timefold.jpyinterpreter.implementors.PythonConstantsImplementor
Implementations of loading Python constants
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadConstant(org.objectweb.asm.MethodVisitor methodVisitor, String className, int constantIndex) Gets theconstantIndexconstant from the class constant liststatic voidloadFalse(org.objectweb.asm.MethodVisitor methodVisitor) Pushes False onto the stack.static voidGets thenameIndexname from the class name liststatic voidloadNone(org.objectweb.asm.MethodVisitor methodVisitor) Pushes None onto the stack.static voidloadTrue(org.objectweb.asm.MethodVisitor methodVisitor) Pushes True onto the stack.
-
Constructor Details
-
PythonConstantsImplementor
public PythonConstantsImplementor()
-
-
Method Details
-
loadNone
public static void loadNone(org.objectweb.asm.MethodVisitor methodVisitor) Pushes None onto the stack. The same instance is pushed on each call. -
loadTrue
public static void loadTrue(org.objectweb.asm.MethodVisitor methodVisitor) Pushes True onto the stack. The same instance is pushed on each call. -
loadFalse
public static void loadFalse(org.objectweb.asm.MethodVisitor methodVisitor) Pushes False onto the stack. The same instance is pushed on each call. -
loadConstant
public static void loadConstant(org.objectweb.asm.MethodVisitor methodVisitor, String className, int constantIndex) Gets theconstantIndexconstant from the class constant list- Parameters:
className- The class currently being defined by the methodVisitorconstantIndex- The index of the constant to load in the class constant list
-
loadName
public static void loadName(org.objectweb.asm.MethodVisitor methodVisitor, String className, int nameIndex) Gets thenameIndexname from the class name list- Parameters:
className- The class currently being defined by the methodVisitornameIndex- The index of the name to load in the class name list
-