com.google.javascript.jscomp.modules.AutoValue_Export Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded 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.modules;
import com.google.javascript.jscomp.deps.ModuleLoader;
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_Export extends Export {
private final @Nullable String exportName;
private final @Nullable String moduleRequest;
private final @Nullable String importName;
private final @Nullable String localName;
private final ModuleLoader.@Nullable ModulePath modulePath;
private final @Nullable Node exportNode;
private final @Nullable Node nameNode;
private final ModuleMetadataMap.ModuleMetadata moduleMetadata;
private final @Nullable String closureNamespace;
private final boolean mutated;
private AutoValue_Export(
@Nullable String exportName,
@Nullable String moduleRequest,
@Nullable String importName,
@Nullable String localName,
ModuleLoader.@Nullable ModulePath modulePath,
@Nullable Node exportNode,
@Nullable Node nameNode,
ModuleMetadataMap.ModuleMetadata moduleMetadata,
@Nullable String closureNamespace,
boolean mutated) {
this.exportName = exportName;
this.moduleRequest = moduleRequest;
this.importName = importName;
this.localName = localName;
this.modulePath = modulePath;
this.exportNode = exportNode;
this.nameNode = nameNode;
this.moduleMetadata = moduleMetadata;
this.closureNamespace = closureNamespace;
this.mutated = mutated;
}
@Override
public @Nullable String exportName() {
return exportName;
}
@Override
public @Nullable String moduleRequest() {
return moduleRequest;
}
@Override
public @Nullable String importName() {
return importName;
}
@Override
public @Nullable String localName() {
return localName;
}
@Override
public ModuleLoader.@Nullable ModulePath modulePath() {
return modulePath;
}
@Override
public @Nullable Node exportNode() {
return exportNode;
}
@Override
public @Nullable Node nameNode() {
return nameNode;
}
@Override
public ModuleMetadataMap.ModuleMetadata moduleMetadata() {
return moduleMetadata;
}
@Override
public @Nullable String closureNamespace() {
return closureNamespace;
}
@Override
public boolean mutated() {
return mutated;
}
@Override
public String toString() {
return "Export{"
+ "exportName=" + exportName + ", "
+ "moduleRequest=" + moduleRequest + ", "
+ "importName=" + importName + ", "
+ "localName=" + localName + ", "
+ "modulePath=" + modulePath + ", "
+ "exportNode=" + exportNode + ", "
+ "nameNode=" + nameNode + ", "
+ "moduleMetadata=" + moduleMetadata + ", "
+ "closureNamespace=" + closureNamespace + ", "
+ "mutated=" + mutated
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Export) {
Export that = (Export) o;
return ((this.exportName == null) ? (that.exportName() == null) : this.exportName.equals(that.exportName()))
&& ((this.moduleRequest == null) ? (that.moduleRequest() == null) : this.moduleRequest.equals(that.moduleRequest()))
&& ((this.importName == null) ? (that.importName() == null) : this.importName.equals(that.importName()))
&& ((this.localName == null) ? (that.localName() == null) : this.localName.equals(that.localName()))
&& ((this.modulePath == null) ? (that.modulePath() == null) : this.modulePath.equals(that.modulePath()))
&& ((this.exportNode == null) ? (that.exportNode() == null) : this.exportNode.equals(that.exportNode()))
&& ((this.nameNode == null) ? (that.nameNode() == null) : this.nameNode.equals(that.nameNode()))
&& (this.moduleMetadata.equals(that.moduleMetadata()))
&& ((this.closureNamespace == null) ? (that.closureNamespace() == null) : this.closureNamespace.equals(that.closureNamespace()))
&& (this.mutated == that.mutated());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (exportName == null) ? 0 : exportName.hashCode();
h$ *= 1000003;
h$ ^= (moduleRequest == null) ? 0 : moduleRequest.hashCode();
h$ *= 1000003;
h$ ^= (importName == null) ? 0 : importName.hashCode();
h$ *= 1000003;
h$ ^= (localName == null) ? 0 : localName.hashCode();
h$ *= 1000003;
h$ ^= (modulePath == null) ? 0 : modulePath.hashCode();
h$ *= 1000003;
h$ ^= (exportNode == null) ? 0 : exportNode.hashCode();
h$ *= 1000003;
h$ ^= (nameNode == null) ? 0 : nameNode.hashCode();
h$ *= 1000003;
h$ ^= moduleMetadata.hashCode();
h$ *= 1000003;
h$ ^= (closureNamespace == null) ? 0 : closureNamespace.hashCode();
h$ *= 1000003;
h$ ^= mutated ? 1231 : 1237;
return h$;
}
@Override
Export.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends Export.Builder {
private @Nullable String exportName;
private @Nullable String moduleRequest;
private @Nullable String importName;
private @Nullable String localName;
private ModuleLoader.@Nullable ModulePath modulePath;
private @Nullable Node exportNode;
private @Nullable Node nameNode;
private ModuleMetadataMap.ModuleMetadata moduleMetadata;
private @Nullable String closureNamespace;
private Boolean mutated;
Builder() {
}
private Builder(Export source) {
this.exportName = source.exportName();
this.moduleRequest = source.moduleRequest();
this.importName = source.importName();
this.localName = source.localName();
this.modulePath = source.modulePath();
this.exportNode = source.exportNode();
this.nameNode = source.nameNode();
this.moduleMetadata = source.moduleMetadata();
this.closureNamespace = source.closureNamespace();
this.mutated = source.mutated();
}
@Override
Export.Builder exportName(@Nullable String exportName) {
this.exportName = exportName;
return this;
}
@Override
Export.Builder moduleRequest(@Nullable String moduleRequest) {
this.moduleRequest = moduleRequest;
return this;
}
@Override
Export.Builder importName(@Nullable String importName) {
this.importName = importName;
return this;
}
@Override
Export.Builder localName(@Nullable String localName) {
this.localName = localName;
return this;
}
@Override
Export.Builder modulePath(ModuleLoader.@Nullable ModulePath modulePath) {
this.modulePath = modulePath;
return this;
}
@Override
Export.Builder exportNode(@Nullable Node exportNode) {
this.exportNode = exportNode;
return this;
}
@Override
Export.Builder nameNode(@Nullable Node nameNode) {
this.nameNode = nameNode;
return this;
}
@Override
Export.Builder moduleMetadata(ModuleMetadataMap.ModuleMetadata moduleMetadata) {
if (moduleMetadata == null) {
throw new NullPointerException("Null moduleMetadata");
}
this.moduleMetadata = moduleMetadata;
return this;
}
@Override
Export.Builder closureNamespace(@Nullable String closureNamespace) {
this.closureNamespace = closureNamespace;
return this;
}
@Override
Export.Builder mutated(boolean mutated) {
this.mutated = mutated;
return this;
}
@Override
Export autoBuild() {
String missing = "";
if (this.moduleMetadata == null) {
missing += " moduleMetadata";
}
if (this.mutated == null) {
missing += " mutated";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_Export(
this.exportName,
this.moduleRequest,
this.importName,
this.localName,
this.modulePath,
this.exportNode,
this.nameNode,
this.moduleMetadata,
this.closureNamespace,
this.mutated);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy