public class IgnoreNode extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
IgnoreNode.MatchResult
Result from  
isIgnored(String, boolean). | 
| Constructor and Description | 
|---|
IgnoreNode()
Create an empty ignore node with no rules. 
 | 
IgnoreNode(List<FastIgnoreRule> rules)
Create an ignore node with given rules. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<FastIgnoreRule> | 
getRules()  | 
IgnoreNode.MatchResult | 
isIgnored(String entryPath,
         boolean isDirectory)
Determine if an entry path matches an ignore rule. 
 | 
IgnoreNode.MatchResult | 
isIgnored(String entryPath,
         boolean isDirectory,
         boolean negateFirstMatch)
Determine if an entry path matches an ignore rule. 
 | 
void | 
parse(InputStream in)
Parse files according to gitignore standards. 
 | 
String | 
toString()  | 
public IgnoreNode()
public IgnoreNode(List<FastIgnoreRule> rules)
rules - list of rules.public void parse(InputStream in) throws IOException
in - input stream holding the standard ignore format. The caller is
            responsible for closing the stream.IOException - Error thrown when reading an ignore file.public List<FastIgnoreRule> getRules()
public IgnoreNode.MatchResult isIgnored(String entryPath, boolean isDirectory)
entryPath - the path to test. The path must be relative to this ignore
            node's own repository path, and in repository path format
            (uses '/' and not '\').isDirectory - true if the target item is a directory.public IgnoreNode.MatchResult isIgnored(String entryPath, boolean isDirectory, boolean negateFirstMatch)
entryPath - the path to test. The path must be relative to this ignore
            node's own repository path, and in repository path format
            (uses '/' and not '\').isDirectory - true if the target item is a directory.negateFirstMatch - true if the first match should be negatedCopyright © 2016 Eclipse JGit Project. All rights reserved.