org.eclipse.jgit.ignore.FastIgnoreRule
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private static final String | ATTRIBUTES_SPLIT_REGEX
regular expression for splitting attributes - space, tab and \r (the C implementation oddly enough allows \r between attributes) |
| private final boolean | |
| private final IMatcher | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | AttributesRule(String
Base pattern for the attributes rule. This pattern will be
parsed to generate rule parameters. It can not be
pattern, String null.the rule attributes. This string will be parsed to read the
attributes. attributes)Create a new attribute rule with the given pattern. |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: an unmodifiable list of attributes (never returnsnull)Return the attributes. |
| public String | |
| public boolean | Returns: true if the pattern should match directories onlyWhether to match directories only |
| public boolean | |
| public boolean | Returns: true if the pattern is just a file name and not a
pathWhether the pattern is only a file name and not a path |
| private static List | |
| public String |
| attributes | back to summary |
|---|---|
| private final List<Attribute> attributes | |
| ATTRIBUTES_SPLIT_REGEX | back to summary |
|---|---|
| private static final String ATTRIBUTES_SPLIT_REGEX regular expression for splitting attributes - space, tab and \r (the C implementation oddly enough allows \r between attributes) | |
| dirOnly | back to summary |
|---|---|
| private final boolean dirOnly | |
| matcher | back to summary |
|---|---|
| private final IMatcher matcher | |
| nameOnly | back to summary |
|---|---|
| private final boolean nameOnly | |
| pattern | back to summary |
|---|---|
| private final String pattern | |
| AttributesRule | back to summary |
|---|---|
| public AttributesRule(String pattern, String attributes) Create a new attribute rule with the given pattern. Assumes that the pattern is already trimmed. | |
| getAttributes | back to summary |
|---|---|
| public List Return the attributes. | |
| getPattern | back to summary |
|---|---|
| public String getPattern() Get the pattern
| |
| isDirOnly | back to summary |
|---|---|
| public boolean isDirOnly() Whether to match directories only
| |
| isMatch | back to summary |
|---|---|
| public boolean isMatch(String relativeTarget, boolean isDirectory) Returns
| |
| isNameOnly | back to summary |
|---|---|
| public boolean isNameOnly() Whether the pattern is only a file name and not a path
| |
| parseAttributes | back to summary |
|---|---|
| private static List | |
| 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- | |