@Test public void evaluateExpressionWithDefault() { AttributedString result = underTest.evaluate("@{.foo:-bold foo}"); System.out.println(result.toAnsi()); assert result.equals(new AttributedString("foo", BOLD)); }
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);  }