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

com.google.javascript.jscomp.AutoValue_ModuleRenaming_GlobalizedModuleName Maven / Gradle / Ivy

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

There is a newer version: v20240317
Show newest version


package com.google.javascript.jscomp;

import com.google.javascript.rhino.QualifiedName;
import com.google.javascript.rhino.jstype.JSType;
import javax.annotation.processing.Generated;
import org.jspecify.nullness.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_ModuleRenaming_GlobalizedModuleName extends ModuleRenaming.GlobalizedModuleName {

  private final QualifiedName aliasName;
  private final @Nullable JSType rootNameType;

  AutoValue_ModuleRenaming_GlobalizedModuleName(
      QualifiedName aliasName,
       @Nullable JSType rootNameType) {
    if (aliasName == null) {
      throw new NullPointerException("Null aliasName");
    }
    this.aliasName = aliasName;
    this.rootNameType = rootNameType;
  }

  @Override
  QualifiedName aliasName() {
    return aliasName;
  }

  @Override
  @Nullable JSType rootNameType() {
    return rootNameType;
  }

  @Override
  public String toString() {
    return "GlobalizedModuleName{"
         + "aliasName=" + aliasName + ", "
         + "rootNameType=" + rootNameType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ModuleRenaming.GlobalizedModuleName) {
      ModuleRenaming.GlobalizedModuleName that = (ModuleRenaming.GlobalizedModuleName) o;
      return (this.aliasName.equals(that.aliasName()))
           && ((this.rootNameType == null) ? (that.rootNameType() == null) : this.rootNameType.equals(that.rootNameType()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= aliasName.hashCode();
    h$ *= 1000003;
    h$ ^= (rootNameType == null) ? 0 : rootNameType.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy