@Test public void evaluateWithStyleReference() { source.set("test", "very-red", "bold,fg:red"); AttributedString string = underTest.evaluate("@{.very-red foo bar}"); assert string.equals(new AttributedString("foo bar", BOLD.foreground(RED))); }
public void evaluate(final AttributedStringBuilder buff, final String expression) { requireNonNull(buff); requireNonNull(expression); String translated = InterpolationHelper.substVars(expression, this::style, false); buff.appendAnsi(translated); }
StyleExpression { public void evaluate(final AttributedStringBuilder buff, final String expression) { requireNonNull(buff); requireNonNull(expression); String translated = InterpolationHelper.substVars(expression, this::style, false); buff.appendAnsi(translated); } }
StyleExpression { public void evaluate(final AttributedStringBuilder buff, final String expression) { requireNonNull(buff); requireNonNull(expression); String translated = InterpolationHelper.substVars(expression, this::style, false); buff.appendAnsi(translated); } StyleExpression();  StyleExpression(final StyleResolver resolver); }
StyleExpression { public void evaluate(final AttributedStringBuilder buff, final String expression) { requireNonNull(buff); requireNonNull(expression); String translated = InterpolationHelper.substVars(expression, this::style, false); buff.appendAnsi(translated); } StyleExpression();  StyleExpression(final StyleResolver resolver); void evaluate(final AttributedStringBuilder buff, final String expression); AttributedString evaluate(final String expression); }
StyleExpression { public void evaluate(final AttributedStringBuilder buff, final String expression) { requireNonNull(buff); requireNonNull(expression); String translated = InterpolationHelper.substVars(expression, this::style, false); buff.appendAnsi(translated); } StyleExpression();  StyleExpression(final StyleResolver resolver); void evaluate(final AttributedStringBuilder buff, final String expression); AttributedString evaluate(final String expression);  }