com.google.javascript.jscomp.serialization.AutoValue_TypedAstDeserializer_DeserializedAst 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.
package com.google.javascript.jscomp.serialization;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableSet;
import com.google.javascript.jscomp.SourceFile;
import com.google.javascript.jscomp.colors.ColorRegistry;
import com.google.javascript.rhino.Node;
import java.util.concurrent.ConcurrentMap;
import java.util.function.Supplier;
import javax.annotation.processing.Generated;
import org.jspecify.nullness.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TypedAstDeserializer_DeserializedAst extends TypedAstDeserializer.DeserializedAst {
private final ConcurrentMap> filesystem;
private final Optional colorRegistry;
private final @Nullable ImmutableSet externProperties;
AutoValue_TypedAstDeserializer_DeserializedAst(
ConcurrentMap> filesystem,
Optional colorRegistry,
@Nullable ImmutableSet externProperties) {
if (filesystem == null) {
throw new NullPointerException("Null filesystem");
}
this.filesystem = filesystem;
if (colorRegistry == null) {
throw new NullPointerException("Null colorRegistry");
}
this.colorRegistry = colorRegistry;
this.externProperties = externProperties;
}
@Override
public ConcurrentMap> getFilesystem() {
return filesystem;
}
@Override
public Optional getColorRegistry() {
return colorRegistry;
}
@Override
public @Nullable ImmutableSet getExternProperties() {
return externProperties;
}
@Override
public String toString() {
return "DeserializedAst{"
+ "filesystem=" + filesystem + ", "
+ "colorRegistry=" + colorRegistry + ", "
+ "externProperties=" + externProperties
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TypedAstDeserializer.DeserializedAst) {
TypedAstDeserializer.DeserializedAst that = (TypedAstDeserializer.DeserializedAst) o;
return (this.filesystem.equals(that.getFilesystem()))
&& (this.colorRegistry.equals(that.getColorRegistry()))
&& ((this.externProperties == null) ? (that.getExternProperties() == null) : this.externProperties.equals(that.getExternProperties()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= filesystem.hashCode();
h$ *= 1000003;
h$ ^= colorRegistry.hashCode();
h$ *= 1000003;
h$ ^= (externProperties == null) ? 0 : externProperties.hashCode();
return h$;
}
}