1 | public void includePattern(String[] regexp) {↵ | | 1 | public void excludePattern(String[] regexp) {↵
|
2 | if (regexp != null && regexp.length > 0) {↵ | | 2 | if (regexp != null && regexp.length > 0) {↵
|
3 | INCPTRN = regexp;↵ | | 3 | EXCPTRN = regexp;↵
|
4 | this.PTRNFILTER = true;↵ | | 4 | this.PTRNFILTER = true;↵
|
5 | // now we create the compiled pattern and↵ | | 5 | // now we create the compiled pattern and↵
|
6 | // add it to the arraylist↵ | | 6 | // add it to the arraylist↵
|
7 | for (int idx = 0; idx < INCPTRN.length; idx++) {↵ | | 7 | for (int idx = 0; idx < EXCPTRN.length; idx++) {↵
|
8 | this.INCPATTERNS.add(this.createPattern(INCPTRN[idx]));↵ | | 8 | this.EXCPATTERNS.add(this.createPattern(EXCPTRN[idx]));↵
|
9 | | | 9 |
|