home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Freeware 25 / FreelogHS25.iso / Dessin / ArtOfIllusion2.2.1 / ArtOfIllusion.jar / bsh / commands / setStrictJava.bsh < prev    next >
Text File  |  2005-05-23  |  755b  |  28 lines

  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.  
  23. void setStrictJava( boolean val ) 
  24. {
  25.     this.interpreter.setStrictJava( val );
  26. }
  27.  
  28.