/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
- /**
- When strict Java mode is enabled BeanShell will:
- <p>
- <ol>
- <li>Require typed variable declarations, method arguments and return types.
- <li>Modify the scoping of variables to look for the variable
- declaration first in the parent namespace, as in a java method inside
- a java class. e.g. if you can write a method called incrementFoo() that
- will do the expected thing without referring to "super.foo".
- </ul>
- */
- void setStrictJava( boolean val )
- {
- import bsh.Interpreter;
- Interpreter.strictJava = val;
- }