@Test public void arg1_constructor() { final StrConcatExpression expr = new StrConcatExpression(Arrays.asList(Util.constantExpression("17")), TagMatchingClause.DEFAULT); assertEquals("str(\"17\")", expr.configString().toString()); }
@Override public StringBuilder configString() { final StringBuilder result = new StringBuilder() .append("str("); boolean first = true; for (TimeSeriesMetricExpression expr : exprs_) { if (first) first = false; else result.append(", "); result.append(expr.configString()); } result.append(')'); final StringBuilder matcherCfg = matcher_.configString(); if (matcherCfg.length() > 0) { result.append(' ').append(matcherCfg); } return result; }
StrConcatExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { final StringBuilder result = new StringBuilder() .append("str("); boolean first = true; for (TimeSeriesMetricExpression expr : exprs_) { if (first) first = false; else result.append(", "); result.append(expr.configString()); } result.append(')'); final StringBuilder matcherCfg = matcher_.configString(); if (matcherCfg.length() > 0) { result.append(' ').append(matcherCfg); } return result; } }
StrConcatExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { final StringBuilder result = new StringBuilder() .append("str("); boolean first = true; for (TimeSeriesMetricExpression expr : exprs_) { if (first) first = false; else result.append(", "); result.append(expr.configString()); } result.append(')'); final StringBuilder matcherCfg = matcher_.configString(); if (matcherCfg.length() > 0) { result.append(' ').append(matcherCfg); } return result; } StrConcatExpression(List<TimeSeriesMetricExpression> exprs, TagMatchingClause matcher); }
StrConcatExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { final StringBuilder result = new StringBuilder() .append("str("); boolean first = true; for (TimeSeriesMetricExpression expr : exprs_) { if (first) first = false; else result.append(", "); result.append(expr.configString()); } result.append(')'); final StringBuilder matcherCfg = matcher_.configString(); if (matcherCfg.length() > 0) { result.append(' ').append(matcherCfg); } return result; } StrConcatExpression(List<TimeSeriesMetricExpression> exprs, TagMatchingClause matcher); @Override Collection<TimeSeriesMetricExpression> getChildren(); @Override TimeSeriesMetricDeltaSet apply(Context ctx); @Override int getPriority(); @Override StringBuilder configString(); }
StrConcatExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { final StringBuilder result = new StringBuilder() .append("str("); boolean first = true; for (TimeSeriesMetricExpression expr : exprs_) { if (first) first = false; else result.append(", "); result.append(expr.configString()); } result.append(')'); final StringBuilder matcherCfg = matcher_.configString(); if (matcherCfg.length() > 0) { result.append(' ').append(matcherCfg); } return result; } StrConcatExpression(List<TimeSeriesMetricExpression> exprs, TagMatchingClause matcher); @Override Collection<TimeSeriesMetricExpression> getChildren(); @Override TimeSeriesMetricDeltaSet apply(Context ctx); @Override int getPriority(); @Override StringBuilder configString();  }