org.vertexium.cypher.ast.model.CypherRemoveLabelItem Maven / Gradle / Ivy
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 extends CypherAstBase> getChildren() {
return Stream.concat(
Stream.of(variable),
labelNames.stream()
);
}
}