All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.cypher.ast.model.CypherQuery Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.cypher.ast.model;

import com.google.common.collect.ImmutableList;

import java.util.stream.Stream;

public class CypherQuery extends CypherAstBase {
    private final ImmutableList clauses;

    public CypherQuery(ImmutableList clauses) {
        this.clauses = clauses;
    }

    public ImmutableList getClauses() {
        return clauses;
    }

    @Override
    public Stream getChildren() {
        return clauses.stream();
    }

    @Override
    public String toString() {
        StringBuilder results = new StringBuilder();
        for (CypherClause clause : getClauses()) {
            results.append(clause.toString());
            results.append("\n");
        }
        return results.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy