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

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

package hydra.langs.scala.meta;

import java.io.Serializable;

public class Defn_Macro implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/scala/meta.Defn.Macro");
  
  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 java.util.Optional decltpe;
  
  public final hydra.langs.scala.meta.Data body;
  
  public Defn_Macro (java.util.List mods, hydra.langs.scala.meta.Data_Name name, java.util.List tparams, java.util.List> paramss, java.util.Optional decltpe, hydra.langs.scala.meta.Data 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_Macro)) {
      return false;
    }
    Defn_Macro o = (Defn_Macro) (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_Macro withMods(java.util.List mods) {
    return new Defn_Macro(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Macro withName(hydra.langs.scala.meta.Data_Name name) {
    return new Defn_Macro(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Macro withTparams(java.util.List tparams) {
    return new Defn_Macro(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Macro withParamss(java.util.List> paramss) {
    return new Defn_Macro(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Macro withDecltpe(java.util.Optional decltpe) {
    return new Defn_Macro(mods, name, tparams, paramss, decltpe, body);
  }
  
  public Defn_Macro withBody(hydra.langs.scala.meta.Data body) {
    return new Defn_Macro(mods, name, tparams, paramss, decltpe, body);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy