类 JIntrospect
- java.lang.Object
-
- org.meteoinfo.console.jython.JIntrospect
-
- 所有已实现的接口:
NameCompletion
public class JIntrospect extends Object implements NameCompletion
- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 JIntrospect(org.python.util.PythonInterpreter interp)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String[]completeName(String paramString)List<String>completePackageName(String target)Complete package nameList<String>getAutoCompleteList(String command)Get auto complete listList<String>getAutoCompleteList(String command, boolean includeMagic, boolean includeSingle, boolean includeDouble)Get auto complete listString[]getCallTipJava(String command)For a command, return a tuple of object name, argspec, tip text.StringgetPackageName(String command)Get package nameStringgetRoot(String command, String terminator)Return the rightmost root portion of an arbitrary Python command.String[]getTip(String command)org.python.core.PyListgetTokens(String command)Return list of token for command.StringrtrimTerminus(String command, String terminator)Return command minus anything that follows the final terminator.
-
-
-
方法详细资料
-
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 commandincludeMagic-includeSingle-includeDouble-- 返回:
- Auto complete list
- 抛出:
IOException
-
completeName
public String[] completeName(String paramString)
- 指定者:
completeName在接口中NameCompletion
-
getRoot
public String getRoot(String command, String terminator) throws IOException
Return the rightmost root portion of an arbitrary Python command.- 参数:
command- The commandterminator- The terminator - '(' or '.'- 返回:
- Rightmost root portion
- 抛出:
IOException
-
getTokens
public org.python.core.PyList getTokens(String command) throws UnsupportedEncodingException
Return list of token for command.- 参数:
command- The command- 返回:
- Token list
- 抛出:
UnsupportedEncodingException
-
rtrimTerminus
public String rtrimTerminus(String command, String terminator)
Return command minus anything that follows the final terminator.- 参数:
command- The commandterminator- 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
-
getTip
public String[] getTip(String command)
- 指定者:
getTip在接口中NameCompletion
-
-