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

Method getFullPath

src/bsh/classpath/BshClassPath.java:248–266  ·  view source on GitHub ↗

Get the full path including component paths. (component paths listed first, in order) Duplicate path components are removed.

()

Source from the content-addressed store, hash-verified

246 Duplicate path components are removed.
247 */
248 protected List getFullPath()
249 {
250 List list = new ArrayList();
251 if ( compPaths != null ) {
252 for (int i=0; i<compPaths.size(); i++) {
253 List l = ((BshClassPath)compPaths.get(i)).getFullPath();
254 // take care to remove dups
255 // wish we had an ordered set collection
256 Iterator it = l.iterator();
257 while ( it.hasNext() ) {
258 Object o = it.next();
259 if ( !list.contains(o) )
260 list.add( o );
261 }
262 }
263 }
264 list.addAll( path );
265 return list;
266 }
267
268
269 /**

Callers 1

getPathComponentsMethod · 0.95

Calls 6

iteratorMethod · 0.80
hasNextMethod · 0.80
getMethod · 0.65
sizeMethod · 0.45
nextMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected