MCPcopy Create free account
hub / github.com/beanshell/beanshell / setVariable

Method setVariable

src/bsh/NameSpace.java:249–255  ·  view source on GitHub ↗

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 )

Source from the content-addressed store, hash-verified

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.

Callers 6

invokeMethod · 0.95
setLocalVariableMethod · 0.95
assignMethod · 0.45
setMethod · 0.45
setShutdownOnExitMethod · 0.45

Calls 7

ensureVariablesMethod · 0.95
getVariableImplMethod · 0.95
setValueMethod · 0.95
createVariableMethod · 0.95
nameSpaceChangedMethod · 0.95
putMethod · 0.65
getMessageMethod · 0.45

Tested by

no test coverage detected