com.google.javascript.rhino.jstype.AutoValue_JSTypeRegistry_ClosureNamespace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler Show documentation
Show all versions of closure-compiler Show documentation
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.
The newest version!
package com.google.javascript.rhino.jstype;
import com.google.javascript.rhino.Node;
import javax.annotation.processing.Generated;
import org.jspecify.nullness.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_JSTypeRegistry_ClosureNamespace extends JSTypeRegistry.ClosureNamespace {
private final boolean isLegacy;
private final @Nullable Node definitionNode;
private final @Nullable JSType type;
AutoValue_JSTypeRegistry_ClosureNamespace(
boolean isLegacy,
@Nullable Node definitionNode,
@Nullable JSType type) {
this.isLegacy = isLegacy;
this.definitionNode = definitionNode;
this.type = type;
}
@Override
boolean isLegacy() {
return isLegacy;
}
@Override
@Nullable Node definitionNode() {
return definitionNode;
}
@Override
@Nullable JSType type() {
return type;
}
@Override
public String toString() {
return "ClosureNamespace{"
+ "isLegacy=" + isLegacy + ", "
+ "definitionNode=" + definitionNode + ", "
+ "type=" + type
+ "}";
}
@Override
public boolean equals(@Nullable Object o) {
if (o == this) {
return true;
}
if (o instanceof JSTypeRegistry.ClosureNamespace) {
JSTypeRegistry.ClosureNamespace that = (JSTypeRegistry.ClosureNamespace) o;
return this.isLegacy == that.isLegacy()
&& (this.definitionNode == null ? that.definitionNode() == null : this.definitionNode.equals(that.definitionNode()))
&& (this.type == null ? that.type() == null : this.type.equals(that.type()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= isLegacy ? 1231 : 1237;
h$ *= 1000003;
h$ ^= (definitionNode == null) ? 0 : definitionNode.hashCode();
h$ *= 1000003;
h$ ^= (type == null) ? 0 : type.hashCode();
return h$;
}
}