in src/org/jetbrains/r/visualization/inlays/table/filters/parser/Parser.java [552:594]
static {
expressionMatcher = Pattern.compile(
"^\\s*(>=|<=|<>|!~|~~|>|<|=|~|!)?(\\s*(.*))$", Pattern.DOTALL);
operands = new HashMap<>();
operands.put("~~", new REOperand(true));
operands.put("!~", new WildcardOperand(false));
operands.put("!", new EqualOperand(false));
operands.put(">=", new ComparisonOperand() {
@Override
boolean matches(int comparison) {
return comparison >= 0;
}
});
operands.put(">", new ComparisonOperand() {
@Override
boolean matches(int comparison) {
return comparison > 0;
}
});
operands.put("<=", new ComparisonOperand() {
@Override
boolean matches(int comparison) {
return comparison <= 0;
}
});
operands.put("<", new ComparisonOperand() {
@Override
boolean matches(int comparison) {
return comparison < 0;
}
});
operands.put("<>", new ComparisonOperand() {
@Override
boolean matches(int comparison) {
return comparison != 0;
}
});
operands.put("~", wildcardOperand = new WildcardOperand(true));
operands.put("=", new EqualOperand(true));
instantOperand = new WildcardOperand(true);
instantOperand.setInstantMode(true);
}