public interface OrderEntry extends Synthetic, java.lang.Comparable<OrderEntry>
Modifier and Type | Field and Description |
---|---|
static OrderEntry[] |
EMPTY_ARRAY
The empty array of order entries which can be reused to avoid unnecessary allocations.
|
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(RootPolicy<R> policy,
R initialValue)
Accepts the specified order entries visitor.
|
VirtualFile [] |
getFiles(OrderRootType type)
Returns list of root
VirtualFile s of given type for this entry. |
Module |
getOwnerModule()
Returns the module to which the entry belongs.
|
java.lang.String |
getPresentableName()
Returns the user-visible name of this OrderEntry.
|
java.lang.String [] |
getUrls(OrderRootType rootType)
Returns list of roots of given type for this entry.
|
boolean |
isValid()
Checks whether this order entry is invalid for some reason.
|
isSynthetic
static final OrderEntry[] EMPTY_ARRAY
VirtualFile [] getFiles(OrderRootType type)
VirtualFile
s of given type for this entry.
Those files should be traversed in order they are returned in.
Note that actual OrderEntry (as seen in UI) may also contain invalid roots.
If you want to get list of all roots, use getUrls(OrderRootType)
method. type
- required root type.getUrls(OrderRootType)
java.lang.String [] getUrls(OrderRootType rootType)
VirtualFileManager.findFileByUrl(String)
rootType
- the type of roots which should be returned.java.lang.String getPresentableName()
boolean isValid()
Module getOwnerModule()
<R> R accept(RootPolicy<R> policy, R initialValue)
policy
- the visitor to accept.initialValue
- the default value to be returned by the visit process.