public final class VCSContext extends Object
Modifier and Type | Field and Description |
---|---|
static VCSContext |
EMPTY
VCSContext that contains no files.
|
Modifier and Type | Method and Description |
---|---|
Set<File> |
computeFiles(FileFilter filter)
Returns the smallest possible set of all files that lie under Root files and are NOT
under some Excluded file.
|
boolean |
contains(File file)
Determines whether the supplied File is contained in this context.
|
static VCSContext |
forNodes(Node[] nodes)
Initializes the context from array of nodes (typically currently activated nodes).
|
Lookup |
getElements()
Retrieves elements that make up this VCS context.
|
Set<File> |
getExclusions()
Retrieves set of files/folders that are excluded from this context.
|
Set<File> |
getFiles()
Retrieves set of files/folders that represent this context.
|
Set<File> |
getRootFiles()
Retrieves set of root files/folders that represent this context.
|
public static final VCSContext EMPTY
public static VCSContext forNodes(Node[] nodes)
nodes
- array of Nodespublic Set<File> computeFiles(FileFilter filter)
filter
- custom file filterpublic Lookup getElements()
public Set<File> getFiles()
VCSContext.getRootFiles()
public Set<File> getRootFiles()
VCSContext.getFiles()
public Set<File> getExclusions()
public boolean contains(File file)
file
- a File to test