public class FastIgnoreRule extends Object
** pattern.
This class is immutable and thread safe.
Modifier and Type | Field and Description |
---|---|
static char |
PATH_SEPARATOR
Character used as default path separator for ignore entries
|
Constructor and Description |
---|
FastIgnoreRule(String pattern) |
Modifier and Type | Method and Description |
---|---|
boolean |
dirOnly() |
boolean |
equals(Object obj) |
boolean |
getNameOnly() |
boolean |
getNegation()
Indicates whether the rule is non-negation or negation.
|
boolean |
getResult()
Indicates whether the rule is non-negation or negation.
|
int |
hashCode() |
boolean |
isMatch(String path,
boolean directory)
Returns true if a match was made.
|
String |
toString() |
public static final char PATH_SEPARATOR
public FastIgnoreRule(String pattern)
pattern
- ignore pattern as described in git manual. If pattern is invalid or is not a pattern
(comment), this rule doesn't match anything.public boolean isMatch(String path, boolean directory)
getResult()
for the negation status. The actual
ignore status may be true or false depending on whether this rule is an
ignore rule or a negation rule.path
- Name pattern of the file, relative to the base directory of
this ruledirectory
- Whether the target file is a directory or notgetResult()
for the
result.public boolean getNameOnly()
public boolean dirOnly()
public boolean getNegation()
public boolean getResult()
Copyright © 2015 Eclipse JGit Project. All rights reserved.