类 JIntrospect

    • 构造器详细资料

      • JIntrospect

        public JIntrospect​(org.python.util.PythonInterpreter interp)
        Constructor
        参数:
        interp -
    • 方法详细资料

      • completePackageName

        public List<String> completePackageName​(String target)
        Complete package name
        参数:
        target - Target
        返回:
        Package names
      • getPackageName

        public String getPackageName​(String command)
        Get package name
        参数:
        command - The command
        返回:
        Package name
      • getAutoCompleteList

        public List<String> getAutoCompleteList​(String command)
                                         throws IOException
        Get auto complete list
        参数:
        command - Command string
        返回:
        Complete list string
        抛出:
        IOException
      • getAutoCompleteList

        public List<String> getAutoCompleteList​(String command,
                                                boolean includeMagic,
                                                boolean includeSingle,
                                                boolean includeDouble)
                                         throws IOException
        Get auto complete list
        参数:
        command - The command
        includeMagic -
        includeSingle -
        includeDouble -
        返回:
        Auto complete list
        抛出:
        IOException
      • getRoot

        public String getRoot​(String command,
                              String terminator)
                       throws IOException
        Return the rightmost root portion of an arbitrary Python command.
        参数:
        command - The command
        terminator - The terminator - '(' or '.'
        返回:
        Rightmost root portion
        抛出:
        IOException
      • rtrimTerminus

        public String rtrimTerminus​(String command,
                                    String terminator)
        Return command minus anything that follows the final terminator.
        参数:
        command - The command
        terminator - The terminator - '(' or '.'
        返回:
        Result string
      • getCallTipJava

        public String[] getCallTipJava​(String command)
                                throws IOException
        For a command, return a tuple of object name, argspec, tip text.
        参数:
        command - Command string
        返回:
        Tip text
        抛出:
        IOException