|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.index.IgnoredNames
public class IgnoredNames
This class maintains a list of file names (like "cscope.out"), SRC_ROOT relative file paths (like "usr/src/uts" or "usr/src/Makefile"), and glob patterns (like .make.*) which opengrok should ignore.
Nested Class Summary | |
---|---|
class |
IgnoredNames.PatternList
During the load of the configuration file, the framework will add entries to the ignored pattern list. |
Constructor Summary | |
---|---|
IgnoredNames()
|
Method Summary | |
---|---|
void |
add(java.lang.String pattern)
Add a pattern to the list of patterns of filenames to ignore |
void |
addDefaultPatterns()
|
void |
clear()
Remove all installed patterns from the list of files to ignore |
java.util.List<java.lang.String> |
getIgnoredPatterns()
|
boolean |
ignore(java.io.File file)
Should the file be ignored or not? |
boolean |
ignore(java.lang.String name)
Should the file be ignored or not? |
void |
setIgnoredPatterns(java.util.List<java.lang.String> ignoredPatterns)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IgnoredNames()
Method Detail |
---|
public java.util.List<java.lang.String> getIgnoredPatterns()
public void setIgnoredPatterns(java.util.List<java.lang.String> ignoredPatterns)
public void add(java.lang.String pattern)
pattern
- the pattern to ignorepublic void clear()
public boolean ignore(java.io.File file)
file
- the file to check
public boolean ignore(java.lang.String name)
name
- the name of the file to check
public void addDefaultPatterns()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |