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 )
| 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 |
nothing calls this directly
no test coverage detected