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

Annotation Type ExposedMethod



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

      Optional Elements 
      Modifier and Type Optional Element and Description
      java.lang.String[] defaults
      Returns default arguments.
      java.lang.String doc
      Returns the __doc__ String for this method.
      java.lang.String[] names
      Returns the names to expose this method as.
      MethodType type
      Returns how to expose this method.
    • Element Detail

      • names

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

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

        public abstract MethodType type
        Returns how to expose this method. See MethodType for the options.
        Default:
        org.python.expose.MethodType.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.