hydra.langs.cypher.openCypher.YieldExpression Maven / Gradle / Ivy
package hydra.langs.cypher.openCypher;
import java.io.Serializable;
public abstract class YieldExpression implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/cypher/openCypher.YieldExpression");
private YieldExpression () {
}
public abstract R accept(Visitor visitor) ;
public interface Visitor {
R visit(All instance) ;
R visit(List instance) ;
}
public interface PartialVisitor extends Visitor {
default R otherwise(YieldExpression instance) {
throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
}
default R visit(All instance) {
return otherwise((instance));
}
default R visit(List instance) {
return otherwise((instance));
}
}
public static final class All extends hydra.langs.cypher.openCypher.YieldExpression implements Serializable {
public All () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof All)) {
return false;
}
All o = (All) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class List extends hydra.langs.cypher.openCypher.YieldExpression implements Serializable {
public final hydra.langs.cypher.openCypher.YieldItems value;
public List (hydra.langs.cypher.openCypher.YieldItems value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof List)) {
return false;
}
List o = (List) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy