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

org.vertexium.cypher.ast.model.CypherComparisonExpression 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 CypherComparisonExpression extends CypherExpression {
    private final CypherAstBase left;
    private final String op;
    private final CypherAstBase right;

    public CypherComparisonExpression(CypherAstBase left, String op, CypherAstBase right) {
        this.left = left;
        this.op = op;
        this.right = right;
    }

    public CypherAstBase getLeft() {
        return left;
    }

    public String getOp() {
        return op;
    }

    public CypherAstBase getRight() {
        return right;
    }

    @Override
    public String toString() {
        return String.format("%s %s %s", getLeft(), getOp(), getRight());
    }

    @Override
    public Stream getChildren() {
        return Stream.of(left, right);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy