public abstract class Rule extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Rule.Operation  | 
| Modifier and Type | Method and Description | 
|---|---|
static Rule | 
create(String definition)  | 
Rule.Operation | 
evaluate(String relativePath)  | 
String | 
getDefinition()  | 
protected Rule.Operation | 
getExcludeOperation()  | 
protected Rule.Operation | 
getIncludeOperation()  | 
Boolean | 
getNegated()
Whether or not the rule should be negated. 
 | 
protected String | 
getPattern()  | 
abstract Boolean | 
matches(String relativePath)  | 
public String getDefinition()
protected String getPattern()
public Boolean getNegated()
NOTE: It is not possible to re-include a file if a parent directory of that file is excluded.
true if the rule is negated (inverse), otherwise false (normal).public Rule.Operation evaluate(String relativePath)
protected Rule.Operation getIncludeOperation()
protected Rule.Operation getExcludeOperation()
Copyright © 2020. All rights reserved.