private final int myColumnMatchGroup;
public FileReferenceFilter(@NotNull Project project, @NonNls @NotNull String expression) {
myProject = project;
if (StringUtil.isEmpty(expression)) {
throw new InvalidExpressionException("expression is empty");
}
int filePathIndex = expression.indexOf(PATH_MACROS);
int lineIndex = expression.indexOf(LINE_MACROS);
int columnIndex = expression.indexOf(COLUMN_MACROS);
if (filePathIndex == -1) {
throw new InvalidExpressionException("Expression must contain " + PATH_MACROS + " macros.");
}
TreeMap<Integer,String> map = new TreeMap<Integer, String>();
map.put(filePathIndex, PATH_MACROS);
expression = StringUtil.replace(expression, PATH_MACROS, FILE_PATH_REGEXP);