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

org.vertexium.cypher.ast.model.CypherIn 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 CypherIn extends CypherAstBase {
    private final CypherAstBase valueExpression;
    private final CypherAstBase arrayExpression;

    public CypherIn(CypherAstBase valueExpression, CypherAstBase arrayExpression) {
        this.valueExpression = valueExpression;
        this.arrayExpression = arrayExpression;
    }

    public CypherAstBase getValueExpression() {
        return valueExpression;
    }

    public CypherAstBase getArrayExpression() {
        return arrayExpression;
    }

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

    @Override
    public Stream getChildren() {
        return Stream.of(valueExpression, arrayExpression);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy