| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final List | rules
The rules that have been parsed into this node. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static BufferedReader | |
| public Boolean | Returns: Boolean.TRUE, if the entry is ignored; Boolean.FALSE, if the entry is forced to be not ignored (negated match); or null, if undeterminedthe path to test. The path must be relative to this ignore
node's own repository path, and in repository path format
(uses '/' and not '\'). entryPath, boolean true if the target item is a directory. isDirectory)Determine if an entry path matches an ignore rule. |
| public List | Returns: list of all ignore rules held by this nodeGet list of all ignore rules held by this node |
| public IgnoreNode. | Returns: status of the path.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 '\'). entryPath, boolean true if the target item is a directory. isDirectory)Determine if an entry path matches an ignore rule. |
| public void | parse(InputStream
input stream holding the standard ignore format. The caller is
responsible for closing the stream. in)Parse files according to gitignore standards. |
| public void | parse(String
identifying the source of the stream sourceName, InputStream input stream holding the standard ignore format. The caller is
responsible for closing the stream. in)Parse files according to gitignore standards. |
| public String |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| rules | back to summary |
|---|---|
| private final List<FastIgnoreRule> rules The rules that have been parsed into this node. | |
| IgnoreNode | back to summary |
|---|---|
| public IgnoreNode() Create an empty ignore node with no rules. | |
| IgnoreNode | back to summary |
|---|---|
| public IgnoreNode(List<FastIgnoreRule> rules) Create an ignore node with given rules.
| |
| asReader | back to summary |
|---|---|
| private static BufferedReader asReader(InputStream in) | |
| checkIgnored | back to summary |
|---|---|
| public Boolean checkIgnored(String entryPath, boolean isDirectory) Determine if an entry path matches an ignore rule.
| |
| getRules | back to summary |
|---|---|
| public List Get list of all ignore rules held by this node
| |
| isIgnored | back to summary |
|---|---|
| public IgnoreNode. Determine if an entry path matches an ignore rule.
| |
| parse | back to summary |
|---|---|
| public void parse(InputStream in) throws IOException Parse files according to gitignore standards.
| |
| parse | back to summary |
|---|---|
| public void parse(String sourceName, InputStream in) throws IOException Parse files according to gitignore standards.
| |
| 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- | |
IgnoreNode#isIgnored(String, boolean).
| Modifier and Type | Field and Description |
|---|---|
| public static final IgnoreNode. | CHECK_PARENT
The ignore status is unknown, check inherited rules. |
| public static final IgnoreNode. | CHECK_PARENT_NEGATE_FIRST_MATCH
The first previous (parent) ignore rule match (if any) should be negated, and then inherited rules applied. |
| public static final IgnoreNode. | IGNORED
The file is ignored due to a rule in this node. |
| public static final IgnoreNode. | NOT_IGNORED
The file is not ignored, due to a rule saying its not ignored. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IgnoreNode. | |
| public static IgnoreNode. |
| CHECK_PARENT | back to summary |
|---|---|
| public static final IgnoreNode. The ignore status is unknown, check inherited rules. | |
| CHECK_PARENT_NEGATE_FIRST_MATCH | back to summary |
|---|---|
| public static final IgnoreNode. The first previous (parent) ignore rule match (if any) should be negated, and then inherited rules applied.
| |
| IGNORED | back to summary |
|---|---|
| public static final IgnoreNode. The file is ignored due to a rule in this node. | |
| NOT_IGNORED | back to summary |
|---|---|
| public static final IgnoreNode. The file is not ignored, due to a rule saying its not ignored. | |
| MatchResult | back to summary |
|---|---|
| private MatchResult() | |
| valueOf | back to summary |
|---|---|
| public static IgnoreNode. | |
| values | back to summary |
|---|---|
| public static IgnoreNode. | |