** pattern.
This class is immutable and thread safe.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private static final Logger | |
| private IMatcher | |
| public static final char | PATH_SEPARATOR
Character used as default path separator for ignore entries |
| Access | Constructor and Description |
|---|---|
| public | FastIgnoreRule(String
ignore pattern as described in git manual. If pattern is invalid or is not a pattern
(comment), this rule doesn't match anything. pattern)Constructor for FastIgnoreRule |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the pattern should match directories onlyWhether the pattern should match directories only |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public boolean | Returns: true if the pattern is just a file name and not a pathWhether the pattern is just a file name and not a path |
| public boolean | Returns: True if the pattern had a "!" in front of itIndicates whether the rule is non-negation or negation. |
| public boolean | Returns: True if the target is to be ignored, false otherwise.Indicates whether the rule is non-negation or negation. |
| public int | |
| public boolean | Returns: true if the rule never matches (comment line or broken
pattern)Whether the rule never matches |
| public boolean | Returns: True if a match was made. This does not necessarily mean that the target is ignored. CallgetResult() for the
result.Name pattern of the file, relative to the base directory of
this rule path, boolean Whether the target file is a directory or not directory)Returns true if a match was made. |
| public boolean | Returns: True if a match was made. This does not necessarily mean that the target is ignored. CallgetResult() for the
result.Name pattern of the file, relative to the base directory of
this rule path, boolean Whether the target file is a directory or not directory, boolean true if the match is for the full path: see
IMatcher#matches(String, int, int)Returns true if a match was made. |
| pack-priv void | |
| public String |
| dirOnly | back to summary |
|---|---|
| private boolean dirOnly | |
| inverse | back to summary |
|---|---|
| private boolean inverse | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| matcher | back to summary |
|---|---|
| private IMatcher matcher | |
| PATH_SEPARATOR | back to summary |
|---|---|
| public static final char PATH_SEPARATOR Character used as default path separator for ignore entries | |
| FastIgnoreRule | back to summary |
|---|---|
| public FastIgnoreRule(String pattern) Constructor for FastIgnoreRule
| |
| FastIgnoreRule | back to summary |
|---|---|
| pack-priv FastIgnoreRule() | |
| dirOnly | back to summary |
|---|---|
| public boolean dirOnly() Whether the pattern should match directories only
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getNameOnly | back to summary |
|---|---|
| public boolean getNameOnly() Whether the pattern is just a file name and not a path
| |
| getNegation | back to summary |
|---|---|
| public boolean getNegation() Indicates whether the rule is non-negation or negation.
| |
| getResult | back to summary |
|---|---|
| public boolean getResult() Indicates whether the rule is non-negation or negation.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Whether the rule never matches
| |
| isMatch | back to summary |
|---|---|
| public boolean isMatch(String path, boolean directory) Returns true if a match was made.
| |
| isMatch | back to summary |
|---|---|
| public boolean isMatch(String path, boolean directory, boolean pathMatch) Returns true if a match was made.
| |
| parse | back to summary |
|---|---|
| pack-priv void parse(String pattern) throws InvalidPatternException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |