public List < URI > getClasspathURIs ( ) { if ( closed . get ( ) ) { throw new IllegalArgumentException ( "Cannot use a ScanResult after it has been closed" ) ; } final List < URI > classpathElementOrderURIs = new ArrayList <> ( ) ; for ( final ClasspathElement classpathElement : classpathOrder ) { try { final URI uri = classpathElement . getURI ( ) ; if ( uri != null ) { classpathElementOrderURIs . add ( uri ) ; } } catch ( final IllegalArgumentException e ) { // Skip null location URIs } } return classpathElementOrderURIs ; }
Returns an ordered list of unique classpath element and module URIs .