Package org.eclipse.xtext.workspace
Interface ISourceFolder
-
- All Known Implementing Classes:
FileSourceFolder
public interface ISourceFolderDescribes directories that contain source files of a project.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancontains(org.eclipse.emf.common.util.URI uri)default java.util.List<org.eclipse.emf.common.util.URI>getAllResources(org.eclipse.xtext.util.IFileSystemScanner scanner)java.lang.StringgetName()The logical name of the source folder, like "src/main/java"org.eclipse.emf.common.util.URIgetPath()The (platform dependent) physical location of the source folder.
-
-
-
Method Detail
-
getName
java.lang.String getName()
The logical name of the source folder, like "src/main/java"
-
getPath
org.eclipse.emf.common.util.URI getPath()
The (platform dependent) physical location of the source folder. The path will always end in a trailing separator. It will never be null.
-
contains
default boolean contains(org.eclipse.emf.common.util.URI uri)
- Parameters:
uri- to check- Returns:
- true iff the given
URIis a sub element of theURIof thisISourceFolder.
-
getAllResources
default java.util.List<org.eclipse.emf.common.util.URI> getAllResources(org.eclipse.xtext.util.IFileSystemScanner scanner)
- Returns:
- a list of all URIs that are passed to the acceptor of
IFileSystemScanner.scan(URI, IAcceptor)
-
-