org.vertexium.cypher.ast.model.CypherIsNull Maven / Gradle / Ivy
package org.vertexium.cypher.ast.model;
import java.util.stream.Stream;
public class CypherIsNull extends CypherAstBase {
private final CypherAstBase valueExpression;
public CypherIsNull(CypherAstBase valueExpression) {
this.valueExpression = valueExpression;
}
public CypherAstBase getValueExpression() {
return valueExpression;
}
@Override
public String toString() {
return String.format("%s IS NULL", getValueExpression());
}
@Override
public Stream extends CypherAstBase> getChildren() {
return Stream.of(valueExpression);
}
}