PageRenderTime 325ms CodeModel.GetById 322ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/bsh/commands/print.bsh

#
Unknown | 19 lines | 15 code | 4 blank | 0 comment | 0 complexity | 7cb38bbb58a6d41aa402c3c4495df104 MD5 | raw file
 1
 2bsh.help.print = "usage: print( value )";
 3
 4print( arg ) {
 5	if ( arg == null )
 6		arg = "null";
 7
 8	if ( arg instanceof Object [] ) {
 9		len = arg.length;
10		print( "Array: "+arg +" {");
11		for( int i=0; i< len; i++ ) {
12			this.interpreter.print("   ");
13			print( arg[i] );
14		}
15		print ( "}");
16	} else
17		this.interpreter.println(String.valueOf(arg));
18}
19