public abstract class DirectoryInfo
extends java.lang.Object
| Constructor and Description |
|---|
DirectoryInfo() |
| Modifier and Type | Method and Description |
|---|---|
abstract VirtualFile |
getContentRoot() |
abstract VirtualFile |
getLibraryClassRoot() |
abstract Module |
getModule() |
abstract VirtualFile |
getSourceRoot() |
abstract SourceFolder |
getSourceRootFolder() |
abstract java.lang.String |
getUnloadedModuleName()
Return name of an unloaded module to which content this file or directory belongs
or
null if it doesn't belong to an unloaded module. |
boolean |
hasLibraryClassRoot() |
abstract boolean |
isExcluded(VirtualFile file)
Returns
true if file located under this directory is excluded from the project. |
abstract boolean |
isIgnored() |
abstract boolean |
isInLibrarySource(VirtualFile file) |
abstract boolean |
isInModuleSource(VirtualFile file)
Returns
true if file is located under a module source root and not excluded or ignored |
abstract boolean |
isInProject(VirtualFile file) |
abstract boolean |
processContentBeneathExcluded(VirtualFile dir,
Processor<? super VirtualFile> processor)
if
dir is excluded and there are content entries under the dir, process them all (as long as processor returns true) and |
public abstract boolean isInProject(VirtualFile file)
file - a file under the directory described by this instance.true if file is located under project content or library roots and not excluded or ignoredpublic abstract boolean isIgnored()
true if located under ignored directorypublic abstract boolean isExcluded(VirtualFile file)
true if file located under this directory is excluded from the project. If file is a directory it means
that all of its content is recursively excluded from the project (except the sub-directories which are explicitly included back, e.g. module roots)file - a file under the directory described by this instance.public abstract boolean isInModuleSource(VirtualFile file)
true if file is located under a module source root and not excluded or ignoredpublic abstract boolean isInLibrarySource(VirtualFile file)
file - a file under the directory described by this instance.true if file located under this directory is located in library sources.
If file is a directory it means that all of its content is recursively in not part of the libraries.public abstract VirtualFile getSourceRoot()
public abstract SourceFolder getSourceRootFolder()
public boolean hasLibraryClassRoot()
public abstract VirtualFile getLibraryClassRoot()
public abstract VirtualFile getContentRoot()
public abstract Module getModule()
public abstract java.lang.String getUnloadedModuleName()
null if it doesn't belong to an unloaded module.UnloadedModuleDescriptionpublic abstract boolean processContentBeneathExcluded(VirtualFile dir, Processor<? super VirtualFile> processor)
dir is excluded and there are content entries under the dir, process them all (as long as processor returns true) and