类 JIntrospect
- java.lang.Object
-
- org.meteoinfo.laboratory.codecomplete.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 namejava.util.List<java.lang.String>getAutoCompleteList(java.lang.String command)Get auto complete listjava.util.List<java.lang.String>getAutoCompleteList(java.lang.String command, boolean includeMagic, boolean includeSingle, boolean includeDouble)Get auto complete listjava.lang.String[]getCallTipJava(java.lang.String command)For a command, return a tuple of object name, argspec, tip text.java.lang.StringgetPackageName(java.lang.String command)Get package namejava.lang.StringgetRoot(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.PyListgetTokens(java.lang.String command)Return list of token for command.java.lang.StringrtrimTerminus(java.lang.String command, java.lang.String terminator)Return command minus anything that follows the final terminator.
-
-
-
方法详细资料
-
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.IOExceptionGet 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.IOExceptionGet auto complete list- 参数:
command- The commandincludeMagic-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.IOExceptionReturn the rightmost root portion of an arbitrary Python command.- 参数:
command- The commandterminator- The terminator - '(' or '.'- 返回:
- Rightmost root portion
- 抛出:
java.io.IOException
-
getTokens
public org.python.core.PyList getTokens(java.lang.String command) throws java.io.UnsupportedEncodingExceptionReturn 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 commandterminator- The terminator - '(' or '.'- 返回:
- Result string
-
getCallTipJava
public java.lang.String[] getCallTipJava(java.lang.String command) throws java.io.IOExceptionFor 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
-
-