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

org.vertexium.cypher.ast.model.CypherRemoveLabelItem 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 CypherRemoveLabelItem extends CypherRemoveItem {
    private final CypherVariable variable;
    private final CypherListLiteral labelNames;

    public CypherRemoveLabelItem(CypherVariable variable, CypherListLiteral labelNames) {
        this.variable = variable;
        this.labelNames = labelNames;
    }

    public CypherListLiteral getLabelNames() {
        return labelNames;
    }

    public CypherVariable getVariable() {
        return variable;
    }

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

    @Override
    public Stream getChildren() {
        return Stream.concat(
            Stream.of(variable),
            labelNames.stream()
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy