Interface ASTHelper

All Superinterfaces:
AutoCloseable

public interface ASTHelper extends AutoCloseable
See ast_helper.py
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static List<String>
    convertToList(org.jpy.PyObject object)
    A helper to convert the returned results.
    org.jpy.PyObject
    extract_expression_names(String pythonExpression)
    Extract names from an expression string
  • Method Details

    • extract_expression_names

      org.jpy.PyObject extract_expression_names(String pythonExpression)
      Extract names from an expression string
      Parameters:
      pythonExpression - the python expression, of the form <expression>
      Returns:
      a sorted list of the named elements from <expression>
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • convertToList

      static List<String> convertToList(org.jpy.PyObject object)
      A helper to convert the returned results.

      A workaround until IDS-6072 is addressed.

      Parameters:
      object - the python object, as returned from extract_expression_names(String)
      Returns:
      the list