public class ModuleOrderEntryImpl extends java.lang.Object implements ModuleOrderEntry, ClonableOrderEntry
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENTRY_TYPE |
static java.lang.String |
MODULE_NAME_ATTR |
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(RootPolicy<R> policy,
R initialValue)
Accepts the specified order entries visitor.
|
OrderEntry |
cloneEntry(ModifiableRootModel rootModel,
ProjectRootManagerImpl projectRootManager,
VirtualFilePointerManager filePointerManager) |
int |
compareTo(OrderEntry orderEntry) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
boolean |
equals(java.lang.Object obj) |
VirtualFile [] |
getFiles(OrderRootType type)
Returns list of root
VirtualFile s of given type for this entry. |
Module |
getModule() |
java.lang.String |
getModuleName() |
Module |
getOwnerModule()
Returns the module to which the entry belongs.
|
java.lang.String |
getPresentableName()
Returns the user-visible name of this OrderEntry.
|
RootModelImpl |
getRootModel() |
DependencyScope |
getScope() |
java.lang.String [] |
getUrls(OrderRootType rootType)
Returns list of roots of given type for this entry.
|
int |
hashCode() |
boolean |
isDisposed() |
boolean |
isExported() |
boolean |
isProductionOnTestDependency()
If
true test sources roots from the dependency will be included into production classpath for the module containing this entry. |
boolean |
isSynthetic() |
boolean |
isValid()
Checks whether this order entry is invalid for some reason.
|
void |
setExported(boolean value) |
void |
setProductionOnTestDependency(boolean productionOnTestDependency) |
void |
setScope(DependencyScope scope) |
java.lang.String |
toString() |
void |
writeExternal(Element rootElement) |
public static final java.lang.String ENTRY_TYPE
public static final java.lang.String MODULE_NAME_ATTR
public Module getOwnerModule()
OrderEntry
getOwnerModule
in interface OrderEntry
public boolean isProductionOnTestDependency()
ModuleOrderEntry
true
test sources roots from the dependency will be included into production classpath for the module containing this entry.isProductionOnTestDependency
in interface ModuleOrderEntry
public void setProductionOnTestDependency(boolean productionOnTestDependency)
setProductionOnTestDependency
in interface ModuleOrderEntry
public VirtualFile [] getFiles(OrderRootType type)
OrderEntry
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 OrderEntry.getUrls(OrderRootType)
method. getFiles
in interface OrderEntry
type
- required root type.OrderEntry.getUrls(OrderRootType)
public java.lang.String [] getUrls(OrderRootType rootType)
OrderEntry
VirtualFileManager.findFileByUrl(String)
getUrls
in interface OrderEntry
rootType
- the type of roots which should be returned.public boolean isValid()
OrderEntry
isValid
in interface OrderEntry
public <R> R accept(RootPolicy<R> policy, R initialValue)
OrderEntry
accept
in interface OrderEntry
policy
- the visitor to accept.initialValue
- the default value to be returned by the visit process.public java.lang.String getPresentableName()
OrderEntry
getPresentableName
in interface OrderEntry
public boolean isSynthetic()
isSynthetic
in interface Synthetic
public Module getModule()
getModule
in interface ModuleOrderEntry
public void writeExternal(Element rootElement) throws WriteExternalException
WriteExternalException
public java.lang.String getModuleName()
getModuleName
in interface ModuleOrderEntry
public OrderEntry cloneEntry(ModifiableRootModel rootModel, ProjectRootManagerImpl projectRootManager, VirtualFilePointerManager filePointerManager)
cloneEntry
in interface ClonableOrderEntry
public boolean isExported()
isExported
in interface ExportableOrderEntry
public void setExported(boolean value)
setExported
in interface ExportableOrderEntry
public DependencyScope getScope()
getScope
in interface ExportableOrderEntry
public void setScope(DependencyScope scope)
setScope
in interface ExportableOrderEntry
public int compareTo(OrderEntry orderEntry)
compareTo
in interface java.lang.Comparable<OrderEntry>
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public RootModelImpl getRootModel()
public void dispose()
Disposable
dispose
in interface Disposable
public boolean isDisposed()