hydra.langs.scala.meta.Data_Ref Maven / Gradle / Ivy
package hydra.langs.scala.meta;
import java.io.Serializable;
public abstract class Data_Ref implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/scala/meta.Data.Ref");
private Data_Ref () {
}
public abstract R accept(Visitor visitor) ;
public interface Visitor {
R visit(This instance) ;
R visit(Super instance) ;
R visit(Name instance) ;
R visit(Anonymous instance) ;
R visit(Select instance) ;
R visit(ApplyUnary instance) ;
}
public interface PartialVisitor extends Visitor {
default R otherwise(Data_Ref instance) {
throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
}
default R visit(This instance) {
return otherwise((instance));
}
default R visit(Super instance) {
return otherwise((instance));
}
default R visit(Name instance) {
return otherwise((instance));
}
default R visit(Anonymous instance) {
return otherwise((instance));
}
default R visit(Select instance) {
return otherwise((instance));
}
default R visit(ApplyUnary instance) {
return otherwise((instance));
}
}
public static final class This extends hydra.langs.scala.meta.Data_Ref implements Serializable {
public final hydra.langs.scala.meta.Data_This value;
public This (hydra.langs.scala.meta.Data_This value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof This)) {
return false;
}
This o = (This) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Super extends hydra.langs.scala.meta.Data_Ref implements Serializable {
public final hydra.langs.scala.meta.Data_Super value;
public Super (hydra.langs.scala.meta.Data_Super value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Super)) {
return false;
}
Super o = (Super) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Name extends hydra.langs.scala.meta.Data_Ref implements Serializable {
public final hydra.langs.scala.meta.Data_Name value;
public Name (hydra.langs.scala.meta.Data_Name value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Name)) {
return false;
}
Name o = (Name) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Anonymous extends hydra.langs.scala.meta.Data_Ref implements Serializable {
public final hydra.langs.scala.meta.Data_Anonymous value;
public Anonymous (hydra.langs.scala.meta.Data_Anonymous value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Anonymous)) {
return false;
}
Anonymous o = (Anonymous) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Select extends hydra.langs.scala.meta.Data_Ref implements Serializable {
public final hydra.langs.scala.meta.Data_Select value;
public Select (hydra.langs.scala.meta.Data_Select value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Select)) {
return false;
}
Select o = (Select) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class ApplyUnary extends hydra.langs.scala.meta.Data_Ref implements Serializable {
public final hydra.langs.scala.meta.Data_ApplyUnary value;
public ApplyUnary (hydra.langs.scala.meta.Data_ApplyUnary value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof ApplyUnary)) {
return false;
}
ApplyUnary o = (ApplyUnary) (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