public class ErrorsCache extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ErrorsCache.Convertor<T>
Getter for properties of the given error description.
|
static class |
ErrorsCache.ErrorKind |
Modifier and Type | Method and Description |
---|---|
static Collection<? extends URL> |
getAllFilesInError(URL root)
Return all files with error badge under the given source root
|
static boolean |
isInError(FileObject file,
boolean recursive)
Whether or not the given file has an error badge.
|
static <T> void |
setErrors(URL root,
Indexable i,
Iterable<? extends T> errors,
ErrorsCache.Convertor<T> convertor)
Sets errors for a file/indexable.
|
public static <T> void setErrors(URL root, Indexable i, Iterable<? extends T> errors, ErrorsCache.Convertor<T> convertor)
root
- inside which the given file residesi
- indexable for which the errors are being seterrors
- errors to setconvertor
- getter for properties of T
. The methods on the
convertor are not invoked after this method finishes.public static boolean isInError(FileObject file, boolean recursive)
file
- file to testrecursive
- true if and only if folders should be tested recursivelypublic static Collection<? extends URL> getAllFilesInError(URL root) throws IOException
root
- source root to testIOException