Get the full path including component paths. (component paths listed first, in order) Duplicate path components are removed.
()
| 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 | /** |