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

hydra.langs.scala.meta.Defn_Def Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
// Note: this is an automatically generated file. Do not edit.

package hydra.langs.scala.meta;

import java.io.Serializable;

public class Defn_Def implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/langs/scala/meta.Defn.Def");
  
  public static final hydra.core.Name FIELD_NAME_MODS = new hydra.core.Name("mods");
  
  public static final hydra.core.Name FIELD_NAME_NAME = new hydra.core.Name("name");
  
  public static final hydra.core.Name FIELD_NAME_TPARAMS = new hydra.core.Name("tparams");
  
  public static final hydra.core.Name FIELD_NAME_PARAMSS = new hydra.core.Name("paramss");
  
  public static final hydra.core.Name FIELD_NAME_DECLTPE = new hydra.core.Name("decltpe");
  
  public static final hydra.core.Name FIELD_NAME_BODY = new hydra.core.Name("body");
  
  public final java.util.List mods;
  
  public final hydra.langs.scala.meta.Data_Name name;
  
  public final java.util.List tparams;
  
  public final java.util.List> paramss;
  
  public final hydra.util.Opt decltpe;
  
  public final hydra.langs.scala.meta.Data body;
  
  public Defn_Def (java.util.List mods, hydra.langs.scala.meta.Data_Name name, java.util.List tparams, java.util.List> paramss, hydra.util.Opt decltpe, hydra.langs.scala.meta.Data body) {
    java.util.Objects.requireNonNull((mods));
    java.util.Objects.requireNonNull((name));
    java.util.Objects.requireNonNull((tparams));
    java.util.Objects.requireNonNull((paramss));
    java.util.Objects.requireNonNull((decltpe));
    java.util.Objects.requireNonNull((body));
    this.mods = mods;
    this.name = name;
    this.tparams = tparams;
    this.paramss = paramss;
    this.decltpe = decltpe;
    this.body = body;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof Defn_Def)) {
      return false;
    }
    Defn_Def o = (Defn_Def) (other);
    return mods.equals(o.mods) && name.equals(o.name) && tparams.equals(o.tparams) && paramss.equals(o.paramss) && decltpe.equals(o.decltpe) && body.equals(o.body);
  }
  
  @Override
  public int hashCode() {
    return 2 * mods.hashCode() + 3 * name.hashCode() + 5 * tparams.hashCode() + 7 * paramss.hashCode() + 11 * decltpe.hashCode() + 13 * body.hashCode();
  }
  
  public Defn_Def withMods(java.util.List mods) {
    java.util.Objects.requireNonNull((mods));
    return new Defn_Def(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Def withName(hydra.langs.scala.meta.Data_Name name) {
    java.util.Objects.requireNonNull((name));
    return new Defn_Def(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Def withTparams(java.util.List tparams) {
    java.util.Objects.requireNonNull((tparams));
    return new Defn_Def(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Def withParamss(java.util.List> paramss) {
    java.util.Objects.requireNonNull((paramss));
    return new Defn_Def(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Def withDecltpe(hydra.util.Opt decltpe) {
    java.util.Objects.requireNonNull((decltpe));
    return new Defn_Def(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Def withBody(hydra.langs.scala.meta.Data body) {
    java.util.Objects.requireNonNull((body));
    return new Defn_Def(mods, name, tparams, paramss, decltpe, body);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy