PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/bsh/commands/setStrictJava.bsh

#
Unknown | 27 lines | 22 code | 5 blank | 0 comment | 0 complexity | 457d99d4b02817cb1326fd90dbc8ef95 MD5 | raw file
 1/**
 2	Enable or disable "Strict Java Mode".
 3	When strict Java mode is enabled BeanShell will:
 4	<p>
 5
 6	<ol>
 7	<li>Require typed variable declarations, method arguments and return types.
 8	<li>Modify the scoping of variables to look for the variable
 9	declaration first in the parent namespace, as in a java method inside 
10	a java class.  e.g. if you can write a method called incrementFoo() that 
11	will do the expected thing without referring to "super.foo".
12	</ul>
13	<p/>
14
15	See "Strict Java Mode" for more details.
16	<p/>
17
18	<em>Note: Currently most standard BeanShell commands will not work in 
19	Strict Java mode simply because they have not been written with full
20	types, etc.
21*/
22
23void setStrictJava( boolean val ) 
24{
25	this.interpreter.setStrictJava( val );
26}
27