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
VirtualFiles 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()
OrderEntrygetOwnerModule in interface OrderEntrypublic boolean isProductionOnTestDependency()
ModuleOrderEntrytrue test sources roots from the dependency will be included into production classpath for the module containing this entry.isProductionOnTestDependency in interface ModuleOrderEntrypublic void setProductionOnTestDependency(boolean productionOnTestDependency)
setProductionOnTestDependency in interface ModuleOrderEntrypublic VirtualFile [] getFiles(OrderRootType type)
OrderEntryVirtualFiles 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 OrderEntrytype - required root type.OrderEntry.getUrls(OrderRootType)public java.lang.String [] getUrls(OrderRootType rootType)
OrderEntryVirtualFileManager.findFileByUrl(String) getUrls in interface OrderEntryrootType - the type of roots which should be returned.public boolean isValid()
OrderEntryisValid in interface OrderEntrypublic <R> R accept(RootPolicy<R> policy, R initialValue)
OrderEntryaccept in interface OrderEntrypolicy - the visitor to accept.initialValue - the default value to be returned by the visit process.public java.lang.String getPresentableName()
OrderEntrygetPresentableName in interface OrderEntrypublic boolean isSynthetic()
isSynthetic in interface Syntheticpublic Module getModule()
getModule in interface ModuleOrderEntrypublic void writeExternal(Element rootElement)
throws WriteExternalException
WriteExternalExceptionpublic java.lang.String getModuleName()
getModuleName in interface ModuleOrderEntrypublic OrderEntry cloneEntry(ModifiableRootModel rootModel, ProjectRootManagerImpl projectRootManager, VirtualFilePointerManager filePointerManager)
cloneEntry in interface ClonableOrderEntrypublic boolean isExported()
isExported in interface ExportableOrderEntrypublic void setExported(boolean value)
setExported in interface ExportableOrderEntrypublic DependencyScope getScope()
getScope in interface ExportableOrderEntrypublic void setScope(DependencyScope scope)
setScope in interface ExportableOrderEntrypublic int compareTo(OrderEntry orderEntry)
compareTo in interface java.lang.Comparable<OrderEntry>public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic RootModelImpl getRootModel()
public void dispose()
Disposabledispose in interface Disposablepublic boolean isDisposed()