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

Method unwrapVariable

src/bsh/NameSpace.java:611–615  ·  view source on GitHub ↗

Unwrap a variable to its value. @return return the variable value. A null var is mapped to Primitive.VOID

( Variable var )

Source from the content-addressed store, hash-verified

609 Primitive.VOID
610 */
611 protected Object unwrapVariable( Variable var )
612 throws UtilEvalError
613 {
614 return (var == null) ? Primitive.VOID : var.getValue();
615 }
616
617 /**
618 @deprecated See #setTypedVariable( String, Class, Object, Modifiers )

Callers 2

getVariableMethod · 0.95
putExternalMapMethod · 0.80

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected