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

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

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

import java.util.stream.Stream;

public class CypherIdInColl extends CypherAstBase {
    private final CypherVariable variable;
    private final CypherAstBase expression;

    public CypherIdInColl(CypherVariable variable, CypherAstBase expression) {
        this.variable = variable;
        this.expression = expression;
    }

    public CypherVariable getVariable() {
        return variable;
    }

    public CypherAstBase getExpression() {
        return expression;
    }

    @Override
    public String toString() {
        return String.format("%s IN %s", getVariable(), getExpression());
    }

    @Override
    public Stream getChildren() {
        return Stream.of(variable, expression);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy