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

Method weHaveVar

src/bsh/BlockNameSpace.java:96–102  ·  view source on GitHub ↗

We have the variable: either it was declared here with a type, giving it block local scope or an untyped var was explicitly set here via setBlockVariable().

( String name )

Source from the content-addressed store, hash-verified

94 setBlockVariable().
95 */
96 private boolean weHaveVar( String name )
97 {
98 // super.variables.containsKey( name ) not any faster, I checked
99 try {
100 return super.getVariableImpl( name, false ) != null;
101 } catch ( UtilEvalError e ) { return false; }
102 }
103
104/**
105 Get the actual BlockNameSpace 'this' reference.

Callers 1

setVariableMethod · 0.95

Calls 1

getVariableImplMethod · 0.45

Tested by

no test coverage detected