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

Method getNameResolver

src/bsh/NameSpace.java:1381–1394  ·  view source on GitHub ↗

This is the factory for Name objects which resolve names within this namespace (e.g. toObject(), toClass(), toLHS()). This was intended to support name resolver caching, allowing Name objects to cache info about the resolution of names for performance reasons. However this not prov

( String ambigname )

Source from the content-addressed store, hash-verified

1379 Use get() instead.
1380 */
1381 Name getNameResolver( String ambigname )
1382 {
1383 if ( names == null )
1384 names = new HashMap<String,Name>();
1385
1386 Name name = names.get( ambigname );
1387
1388 if ( name == null ) {
1389 name = new Name( this, ambigname );
1390 names.put( ambigname, name );
1391 }
1392
1393 return name;
1394 }
1395
1396 public int getInvocationLine() {
1397 SimpleNode node = getNode();

Callers 6

invokeMethodMethod · 0.95
getMethod · 0.95
getImportedClassImplMethod · 0.95
getNameMethod · 0.80
setMethod · 0.80
unsetMethod · 0.80

Calls 2

getMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected