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

Method getClassNameByUnqName

src/bsh/classpath/BshClassPath.java:275–287  ·  view source on GitHub ↗

Support for super import " "; Get the full name associated with the unqualified name in this classpath. Returns either the String name or an AmbiguousName object encapsulating the various names.

( String name )

Source from the content-addressed store, hash-verified

273 encapsulating the various names.
274 */
275 public String getClassNameByUnqName( String name )
276 throws ClassPathException
277 {
278 insureInitialized();
279 UnqualifiedNameTable unqNameTable = getUnqualifiedNameTable();
280
281 Object obj = unqNameTable.get( name );
282 if ( obj instanceof AmbiguousName )
283 throw new ClassPathException("Ambigous class names: "+
284 ((AmbiguousName)obj).get() );
285
286 return (String)obj;
287 }
288
289 /*
290 Note: we could probably do away with the unqualified name table

Callers

nothing calls this directly

Calls 3

insureInitializedMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected