
hydra.ext.cypher.openCypher.QuantifierOperator Maven / Gradle / Ivy
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.cypher.openCypher;
import java.io.Serializable;
public abstract class QuantifierOperator implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/cypher/openCypher.QuantifierOperator");
public static final hydra.core.Name FIELD_NAME_ALL = new hydra.core.Name("all");
public static final hydra.core.Name FIELD_NAME_ANY = new hydra.core.Name("any");
public static final hydra.core.Name FIELD_NAME_NONE = new hydra.core.Name("none");
public static final hydra.core.Name FIELD_NAME_SINGLE = new hydra.core.Name("single");
private QuantifierOperator () {
}
public abstract R accept(Visitor visitor) ;
public interface Visitor {
R visit(All instance) ;
R visit(Any instance) ;
R visit(None instance) ;
R visit(Single instance) ;
}
public interface PartialVisitor extends Visitor {
default R otherwise(QuantifierOperator instance) {
throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
}
default R visit(All instance) {
return otherwise((instance));
}
default R visit(Any instance) {
return otherwise((instance));
}
default R visit(None instance) {
return otherwise((instance));
}
default R visit(Single instance) {
return otherwise((instance));
}
}
public static final class All extends hydra.ext.cypher.openCypher.QuantifierOperator 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 Any extends hydra.ext.cypher.openCypher.QuantifierOperator implements Serializable {
public Any () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Any)) {
return false;
}
Any o = (Any) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class None extends hydra.ext.cypher.openCypher.QuantifierOperator implements Serializable {
public None () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof None)) {
return false;
}
None o = (None) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Single extends hydra.ext.cypher.openCypher.QuantifierOperator implements Serializable {
public Single () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Single)) {
return false;
}
Single o = (Single) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy