public class SourceFolderImpl extends ContentFolderBaseImpl implements SourceFolder
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME |
static java.lang.String |
TEST_SOURCE_ATTR |
myContentEntry, URL_ATTRIBUTE
Constructor and Description |
---|
SourceFolderImpl(JpsModuleSourceRoot jpsElement,
ContentEntryImpl contentEntry) |
Modifier and Type | Method and Description |
---|---|
ContentFolder |
cloneFolder(ContentEntry contentEntry) |
int |
compareTo(ContentFolderBaseImpl folder) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
JpsModuleSourceRoot |
getJpsElement() |
java.lang.String |
getPackagePrefix()
Returns the package prefix for this source root.
|
RootModelImpl |
getRootModel() |
JpsModuleSourceRootType<?> |
getRootType() |
boolean |
isDisposed() |
boolean |
isTestSource()
Checks if this root is a production or test source root.
|
void |
setPackagePrefix(java.lang.String packagePrefix)
Sets the package prefix for this source root.
|
equals, getContentEntry, getFile, getUrl, hashCode, isSynthetic, toString, writeFolder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContentEntry, getFile, getUrl
isSynthetic
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String TEST_SOURCE_ATTR
public SourceFolderImpl(JpsModuleSourceRoot jpsElement, ContentEntryImpl contentEntry)
public boolean isTestSource()
SourceFolder
isTestSource
in interface SourceFolder
public java.lang.String getPackagePrefix()
SourceFolder
getPackagePrefix
in interface SourceFolder
public void setPackagePrefix(java.lang.String packagePrefix)
SourceFolder
setPackagePrefix
in interface SourceFolder
packagePrefix
- the package prefix, or an empty string if the root has no package prefix.public JpsModuleSourceRootType<?> getRootType()
getRootType
in interface SourceFolder
public ContentFolder cloneFolder(ContentEntry contentEntry)
public JpsModuleSourceRoot getJpsElement()
getJpsElement
in interface SourceFolder
public int compareTo(ContentFolderBaseImpl folder)
compareTo
in interface java.lang.Comparable<ContentFolderBaseImpl>
compareTo
in class ContentFolderBaseImpl
public RootModelImpl getRootModel()
public void dispose()
Disposable
dispose
in interface Disposable
public boolean isDisposed()