use of loghub.RouteParser.BeanValueContext in project LogHub by fbacchella.
the class Configuration method getStringOrArrayLitteral.
private String[] getStringOrArrayLitteral(BeanValueContext beanValue) {
ArrayContext ac = beanValue.array();
String contentString;
if (ac != null) {
return ac.beanValue().stream().map(i -> i.getText()).toArray(String[]::new);
} else if ((contentString = getStringLitteral(beanValue)) != null) {
return new String[] { contentString };
} else {
return new String[] {};
}
}
Aggregations