this.spec = DEFAULT_SPEC;
}
+ public ImportDeclaration(long location, String moduleName, String localName, boolean reexport, ImportSpec spec) {
+ this(moduleName, localName, reexport);
+ this.location = location;
+ }
+
public ImportDeclaration(String moduleName, String localName, boolean reexport, ImportSpec spec) {
if(spec == null)
throw new NullPointerException();
if (reexport != other.reexport)
return false;
return true;
+ }
+
+ public ImportDeclaration hidden() {
+ return new ImportDeclaration(moduleName, null);
}
}