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

Method getVariable

src/bsh/NameSpace.java:539–543  ·  view source on GitHub ↗

Get the specified variable in this namespace or a parent namespace. Note: this method is primarily intended for use internally. If you use this method outside of the bsh package you will have to use Primitive.unwrap() to get primitive values. @see Primitive#unwrap( Object ) @retur

( String name )

Source from the content-addressed store, hash-verified

537 @return The variable value or Primitive.VOID if it is not defined.
538 */
539 public Object getVariable( String name )
540 throws UtilEvalError
541 {
542 return getVariable( name, true );
543 }
544
545 /**
546 Get the specified variable in this namespace.

Callers 8

namespace_nestingMethod · 0.95
getConstructorArgsMethod · 0.80
initInstanceMethod · 0.80
getValueMethod · 0.80
getObjectFieldValueMethod · 0.80
invokeMethodMethod · 0.80
InterpreterMethod · 0.80

Calls 2

getVariableImplMethod · 0.95
unwrapVariableMethod · 0.95

Tested by 1

namespace_nestingMethod · 0.76