org.vertexium.cypher.ast.model.CypherExpression Maven / Gradle / Ivy
package org.vertexium.cypher.ast.model;
import com.google.common.collect.Lists;
import java.util.stream.Collectors;
import static org.vertexium.util.StreamUtils.stream;
public abstract class CypherExpression extends CypherAstBase {
public static String toString(Iterable expressions) {
return stream(expressions)
.map(e -> e == null ? "null" : e)
.map(Object::toString)
.collect(Collectors.joining(", "));
}
public static Object toString(CypherAstBase[] expressions) {
return toString(Lists.newArrayList(expressions));
}
}