Modifier and Type | Method and Description |
---|---|
static Scope |
create(Collection<FileObject> sourceRoots,
Collection<NonRecursiveFolder> folders,
Collection<FileObject> files)
Creates a new scope.
|
static Scope |
create(Collection<FileObject> sourceRoots,
Collection<NonRecursiveFolder> folders,
Collection<FileObject> files,
boolean dependencies)
Creates a new scope.A custom scope can be any combination of source roots, folders and files.
|
Set<FileObject> |
getFiles()
Get the files to include in the where used query.
|
Set<NonRecursiveFolder> |
getFolders()
Get the non recursive folders to include in the where used query.
|
Set<FileObject> |
getSourceRoots()
Get the source roots to include in the where used query.
|
boolean |
isDependencies()
Search in dependent libraries.
|
@NonNull public Set<FileObject> getFiles()
@NonNull public Set<NonRecursiveFolder> getFolders()
@NonNull public Set<FileObject> getSourceRoots()
public boolean isDependencies()
@NonNull public static Scope create(@NullAllowed Collection<FileObject> sourceRoots, @NullAllowed Collection<NonRecursiveFolder> folders, @NullAllowed Collection<FileObject> files)
sourceRoots
- the source roots to include in this scopefolders
- the non recursive folders to include in this scopefiles
- the files to include in this scope@NonNull public static Scope create(@NullAllowed Collection<FileObject> sourceRoots, @NullAllowed Collection<NonRecursiveFolder> folders, @NullAllowed Collection<FileObject> files, boolean dependencies)
sourceRoots
- the source roots to include in this scopefolders
- the non recursive folders to include in this scopefiles
- the files to include in this scopedependencies
- true if dependencies of the scope should be included