Class PythonConstantsImplementor

java.lang.Object
ai.timefold.jpyinterpreter.implementors.PythonConstantsImplementor

public class PythonConstantsImplementor extends Object
Implementations of loading Python constants
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    loadConstant(org.objectweb.asm.MethodVisitor methodVisitor, String className, int constantIndex)
    Gets the constantIndex constant from the class constant list
    static void
    loadFalse(org.objectweb.asm.MethodVisitor methodVisitor)
    Pushes False onto the stack.
    static void
    loadName(org.objectweb.asm.MethodVisitor methodVisitor, String className, int nameIndex)
    Gets the nameIndex name from the class name list
    static void
    loadNone(org.objectweb.asm.MethodVisitor methodVisitor)
    Pushes None onto the stack.
    static void
    loadTrue(org.objectweb.asm.MethodVisitor methodVisitor)
    Pushes True onto the stack.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 the constantIndex constant from the class constant list
      Parameters:
      className - The class currently being defined by the methodVisitor
      constantIndex - 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 the nameIndex name from the class name list
      Parameters:
      className - The class currently being defined by the methodVisitor
      nameIndex - The index of the name to load in the class name list