which.bsh

来自「用java 编写的源码开放的文本编辑器。有很多有用的特性」· BSH 代码 · 共 25 行

BSH
25
字号
/**	Use classpath mapping to determine the source of the specified class	file.  (Like the Unix which command for executables).	@method which( classIdentifier | string | class )*/bsh.help.which= "usage: which( classIdentifier | string | class )";import bsh.Name;import bsh.BshClassManager;which( clas ) { 	// make the class into a name	if ( clas instanceof Name.ClassIdentifier )		clas = this.namespace.identifierToClass( clas );	if ( clas instanceof Class )		clas = clas.getName();	String className = clas;	cp = BshClassManager.getClassManager().getClassPath();	print ( cp.getClassSource( className ) );}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?