Documentation of 'org.python.expose.ExposedType' Java class
ExposedType
org.python.expose

Annotation Type ExposedType



  • @Retention(value=RUNTIME)
     @Target(value=TYPE)
    public @interface ExposedType
    Indicates a given class should be made visible to Python code as a builtin type.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      java.lang.Class base 
      java.lang.String doc
      Returns the __doc__ String for this type.
      boolean isBaseType 
      java.lang.String name 
    • Element Detail

      • name

        public abstract java.lang.String name
        Returns:
        the name to expose this item as. Defaults to the actual name of the class.
        Default:
        ""
      • base

        public abstract java.lang.Class base
        Returns:
        the base type of this type. Must be another class anotated with ExposedType. If unspecified, the base is set to object, or PyObject.class.
        Default:
        java.lang.Object.class
      • isBaseType

        public abstract boolean isBaseType
        Returns:
        Whether this type allows subclassing.
        Default:
        true
      • doc

        public abstract java.lang.String doc
        Returns the __doc__ String for this type.
        Default:
        ""

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.