Class PythonCompiledClass

java.lang.Object
ai.timefold.jpyinterpreter.PythonCompiledClass

public class PythonCompiledClass extends Object
  • Field Details

    • module

      public String module
      The module where the class was defined.
    • moduleFilePath

      public String moduleFilePath
      The path to the file that defines the module.
    • qualifiedName

      public String qualifiedName
      The qualified name of the class. Does not include module.
    • className

      public String className
    • annotations

      public List<AnnotationMetadata> annotations
      The annotations on the type
    • typeAnnotations

      public Map<String,TypeHint> typeAnnotations
      Type annotations for fields
    • javaInterfaces

      public List<Class<?>> javaInterfaces
      Java interfaces the class implement
    • pythonJavaTypeMappings

      public List<PythonJavaTypeMapping<?,?>> pythonJavaTypeMappings
      Mapping from Python types to Java types
    • binaryType

      public PythonLikeType binaryType
      The binary type of this PythonCompiledClass; typically CPythonType. Used when methods cannot be generated.
    • superclassList

      public List<PythonLikeType> superclassList
    • instanceFunctionNameToPythonBytecode

      public Map<String,PythonCompiledFunction> instanceFunctionNameToPythonBytecode
    • staticFunctionNameToPythonBytecode

      public Map<String,PythonCompiledFunction> staticFunctionNameToPythonBytecode
    • classFunctionNameToPythonBytecode

      public Map<String,PythonCompiledFunction> classFunctionNameToPythonBytecode
    • staticAttributeNameToObject

      public Map<String,PythonLikeObject> staticAttributeNameToObject
      Contains static attributes that are not instances of this class
    • staticAttributeNameToClassInstance

      public Map<String,OpaquePythonReference> staticAttributeNameToClassInstance
      Contains static attributes that are instances of this class
    • staticAttributeDescriptorNames

      public Set<String> staticAttributeDescriptorNames
      Contains static attributes that have get/set descriptors
  • Constructor Details

    • PythonCompiledClass

      public PythonCompiledClass()
  • Method Details

    • getGeneratedClassBaseName

      public String getGeneratedClassBaseName()
    • getGeneratedClassBaseName

      public static String getGeneratedClassBaseName(String module, String qualifiedName)