NameCompletionpublic class JIntrospect extends java.lang.Object implements NameCompletion
| 构造器 | 说明 |
|---|---|
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.
|
public JIntrospect(org.python.util.PythonInterpreter interp)
interp - public java.util.List<java.lang.String> completePackageName(java.lang.String target)
target - Targetpublic java.lang.String getPackageName(java.lang.String command)
command - The commandpublic java.util.List<java.lang.String> getAutoCompleteList(java.lang.String command)
throws java.io.IOException
command - Command stringjava.io.IOExceptionpublic java.util.List<java.lang.String> getAutoCompleteList(java.lang.String command,
boolean includeMagic,
boolean includeSingle,
boolean includeDouble)
throws java.io.IOException
command - The commandincludeMagic - includeSingle - includeDouble - java.io.IOExceptionpublic java.lang.String[] completeName(java.lang.String paramString)
completeName 在接口中 NameCompletionpublic java.lang.String getRoot(java.lang.String command,
java.lang.String terminator)
throws java.io.IOException
command - The commandterminator - The terminator - '(' or '.'java.io.IOExceptionpublic org.python.core.PyList getTokens(java.lang.String command)
throws java.io.UnsupportedEncodingException
command - The commandjava.io.UnsupportedEncodingExceptionpublic java.lang.String rtrimTerminus(java.lang.String command,
java.lang.String terminator)
command - The commandterminator - The terminator - '(' or '.'public java.lang.String[] getCallTipJava(java.lang.String command)
throws java.io.IOException
command - Command stringjava.io.IOExceptionpublic java.lang.String[] getTip(java.lang.String command)
getTip 在接口中 NameCompletionCopyright © 2019. All rights reserved.