public abstract class AbstractFileHyperlinkFilter extends java.lang.Object implements Filter
Filter.NextAction, Filter.Result, Filter.ResultItem
EMPTY_ARRAY
Constructor and Description |
---|
AbstractFileHyperlinkFilter(Project project,
java.lang.String baseDir) |
AbstractFileHyperlinkFilter(Project project,
VirtualFile baseDir) |
Modifier and Type | Method and Description |
---|---|
Filter.Result |
applyFilter(java.lang.String line,
int entireLength)
Filters line by creating an instance of
Filter.Result . |
protected static VirtualFile |
findDir(java.lang.String baseDir) |
VirtualFile |
findFile(java.lang.String filePath) |
abstract java.util.List<FileHyperlinkRawData> |
parse(java.lang.String line) |
protected boolean |
supportVfsRefresh() |
public AbstractFileHyperlinkFilter(Project project, java.lang.String baseDir)
public AbstractFileHyperlinkFilter(Project project, VirtualFile baseDir)
protected static VirtualFile findDir(java.lang.String baseDir)
protected boolean supportVfsRefresh()
public final Filter.Result applyFilter(java.lang.String line, int entireLength)
Filter
Filter.Result
.applyFilter
in interface Filter
line
- The line to be filtered. Note that the line must contain a line
separator at the end.entireLength
- The length of the entire text including the line passed for filtration.null
if there was no match. Otherwise, an instance of Filter.Result
public abstract java.util.List<FileHyperlinkRawData> parse(java.lang.String line)
public VirtualFile findFile(java.lang.String filePath)