类 JIntrospect

  • 所有已实现的接口:
    org.meteoinfo.console.NameCompletion

    public class JIntrospect
    extends java.lang.Object
    implements org.meteoinfo.console.NameCompletion
    作者:
    Yaqiang Wang
    • 构造器概要

      构造器 
      构造器 说明
      JIntrospect​(org.python.util.PythonInterpreter interp)
      Constructor
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.String[] completeName​(java.lang.String paramString)  
      java.util.List<java.lang.String> completePackageName​(java.lang.String target)
      Complete package name
      java.util.List<java.lang.String> getAutoCompleteList​(java.lang.String command)
      Get auto complete list
      java.util.List<java.lang.String> getAutoCompleteList​(java.lang.String command, boolean includeMagic, boolean includeSingle, boolean includeDouble)
      Get auto complete list
      java.lang.String[] getCallTipJava​(java.lang.String command)
      For a command, return a tuple of object name, argspec, tip text.
      java.lang.String getPackageName​(java.lang.String command)
      Get package name
      java.lang.String getRoot​(java.lang.String command, java.lang.String terminator)
      Return the rightmost root portion of an arbitrary Python command.
      java.lang.String[] getTip​(java.lang.String command)  
      org.python.core.PyList getTokens​(java.lang.String command)
      Return list of token for command.
      java.lang.String rtrimTerminus​(java.lang.String command, java.lang.String terminator)
      Return command minus anything that follows the final terminator.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • JIntrospect

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

      • completePackageName

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

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

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

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

        public java.lang.String[] completeName​(java.lang.String paramString)
        指定者:
        completeName 在接口中 org.meteoinfo.console.NameCompletion
      • getRoot

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

        public org.python.core.PyList getTokens​(java.lang.String command)
                                         throws java.io.UnsupportedEncodingException
        Return list of token for command.
        参数:
        command - The command
        返回:
        Token list
        抛出:
        java.io.UnsupportedEncodingException
      • rtrimTerminus

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

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

        public java.lang.String[] getTip​(java.lang.String command)
        指定者:
        getTip 在接口中 org.meteoinfo.console.NameCompletion