![JAR search and dependency download from the Maven repository](/logo.png)
com.google.javascript.jscomp.AutoValue_PolyfillFindingCallback_PolyfillUsage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-linter Show documentation
Show all versions of closure-compiler-linter 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.
This binary checks for style issues such as incorrect or missing JSDoc
usage, and missing goog.require() statements. It does not do more advanced
checks such as typechecking.
package com.google.javascript.jscomp;
import com.google.javascript.rhino.Node;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PolyfillFindingCallback_PolyfillUsage extends PolyfillFindingCallback.PolyfillUsage {
private final PolyfillFindingCallback.Polyfill polyfill;
private final Node node;
private final String name;
private final boolean isExplicitGlobal;
AutoValue_PolyfillFindingCallback_PolyfillUsage(
PolyfillFindingCallback.Polyfill polyfill,
Node node,
String name,
boolean isExplicitGlobal) {
if (polyfill == null) {
throw new NullPointerException("Null polyfill");
}
this.polyfill = polyfill;
if (node == null) {
throw new NullPointerException("Null node");
}
this.node = node;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.isExplicitGlobal = isExplicitGlobal;
}
@Override
PolyfillFindingCallback.Polyfill polyfill() {
return polyfill;
}
@Override
Node node() {
return node;
}
@Override
String name() {
return name;
}
@Override
boolean isExplicitGlobal() {
return isExplicitGlobal;
}
@Override
public String toString() {
return "PolyfillUsage{"
+ "polyfill=" + polyfill + ", "
+ "node=" + node + ", "
+ "name=" + name + ", "
+ "isExplicitGlobal=" + isExplicitGlobal
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PolyfillFindingCallback.PolyfillUsage) {
PolyfillFindingCallback.PolyfillUsage that = (PolyfillFindingCallback.PolyfillUsage) o;
return (this.polyfill.equals(that.polyfill()))
&& (this.node.equals(that.node()))
&& (this.name.equals(that.name()))
&& (this.isExplicitGlobal == that.isExplicitGlobal());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.polyfill.hashCode();
h *= 1000003;
h ^= this.node.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= this.isExplicitGlobal ? 1231 : 1237;
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy