public interface OrderRootsEnumerator
OrderEnumerator
.Modifier and Type | Method and Description |
---|---|
void |
collectPaths(PathsList list)
Add all source roots processed by this enumerator to
list |
PathsList |
getPathsList() |
VirtualFile [] |
getRoots() |
java.lang.String [] |
getUrls() |
OrderRootsEnumerator |
usingCache()
If roots for this enumerator are already evaluated the cached result will be used.
|
OrderRootsEnumerator |
usingCustomRootProvider(NotNullFunction<? super OrderEntry,VirtualFile[]> provider)
Use
provider to obtain roots of an library or jdk order entry instead of OrderEntry.getFiles(OrderRootType) method. |
OrderRootsEnumerator |
withoutSelfModuleOutput()
This method makes sense only when dependencies of a module are processed (i.e.
|
VirtualFile [] getRoots()
java.lang.String [] getUrls()
PathsList getPathsList()
void collectPaths(PathsList list)
list
list
- listOrderRootsEnumerator usingCache()
Caching is not supported if OrderEnumerator.satisfying(com.intellij.openapi.util.Condition<? super com.intellij.openapi.roots.OrderEntry>)
, OrderEnumerator.using(com.intellij.openapi.roots.RootModelProvider)
or usingCustomRootProvider(com.intellij.util.NotNullFunction<? super com.intellij.openapi.roots.OrderEntry, com.intellij.openapi.vfs.VirtualFile[]>)
option is used
OrderRootsEnumerator withoutSelfModuleOutput()
OrderEnumerator.orderEntries(com.intellij.openapi.module.Module)
or
ModuleRootModel.orderEntries()
). It instructs the enumerator to skip the output of the main module (if OrderEnumerator.productionOnly()
option is not specified then only the test output will be skipped)OrderRootsEnumerator usingCustomRootProvider(NotNullFunction<? super OrderEntry,VirtualFile[]> provider)
provider
to obtain roots of an library or jdk order entry instead of OrderEntry.getFiles(OrderRootType)
method. Note that
this option won't affect result of getUrls()
methodprovider
- function to evaluate roots for an order entry