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

Annotation Type ExposedClassMethod



  • @Retention(value=RUNTIME)
     @Target(value=METHOD)
    public @interface ExposedClassMethod
    Indicates a method should be exposed as a classmethod to Python code.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      java.lang.String[] defaults 
      java.lang.String doc
      Returns the __doc__ String for this method.
      java.lang.String[] names 
    • Element Detail

      • names

        public abstract java.lang.String[] names
        Returns:
        the names to expose this method as. Defaults to just actual name of the method.
        Default:
        {}
      • defaults

        public abstract java.lang.String[] defaults
        Returns:
        default arguments. Starts at the number of arguments - defaults.length.
        Default:
        {}
      • doc

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.