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

org.vertexium.cypher.ast.model.CypherLiteralExpression 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 CypherLiteralExpression extends CypherExpression {
    private final Object value;

    public CypherLiteralExpression(Object value) {
        this.value = value;
    }

    public Object getValue() {
        return value;
    }

    @Override
    public Stream getChildren() {
        if (value instanceof CypherAstBase) {
            return Stream.of((CypherAstBase) value);
        }
        return Stream.empty();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy