PageRenderTime 158ms CodeModel.GetById 155ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/bsh/commands/setStrictJava.bsh

#
Unknown | 20 lines | 16 code | 4 blank | 0 comment | 0 complexity | cbed5be8a45ffc04c89553a631f1addd MD5 | raw file
 1/**
 2	When strict Java mode is enabled BeanShell will:
 3	<p>
 4
 5	<ol>
 6	<li>Require typed variable declarations, method arguments and return types.
 7	<li>Modify the scoping of variables to look for the variable
 8	declaration first in the parent namespace, as in a java method inside 
 9	a java class.  e.g. if you can write a method called incrementFoo() that 
10	will do the expected thing without referring to "super.foo".
11	</ul>
12*/
13
14void setStrictJava( boolean val ) 
15{
16	import bsh.Interpreter;
17
18	Interpreter.strictJava = val;
19}
20