Set the variable through this namespace. This method obeys the LOCALSCOPING property to determine how variables are set. Note: this method is primarily intended for use internally. If you use this method outside of the bsh package and wish to set variables with primitive values you
( String name, Object value, boolean strictJava )
| 247 | @param strictJava specifies whether strict java rules are applied. |
| 248 | */ |
| 249 | public void setVariable( String name, Object value, boolean strictJava ) |
| 250 | throws UtilEvalError |
| 251 | { |
| 252 | // if localscoping switch follow strictJava, else recurse |
| 253 | boolean recurse = Interpreter.LOCALSCOPING ? strictJava : true; |
| 254 | setVariable( name, value, strictJava, recurse ); |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | Set a variable explicitly in the local scope. |
no test coverage detected