public ClasspathEntry withExtraAttributeRemoved(String attrName) { IClasspathAttribute[] changedAttributes = Arrays.stream(this.getExtraAttributes()) .filter(a -> !a.getName().equals(attrName)).toArray(IClasspathAttribute[]::new); return new ClasspathEntry( this.getContentKind(), this.getEntryKind(), this.getPath(), this.getInclusionPatterns(), this.getExclusionPatterns(), this.getSourceAttachmentPath(), this.getSourceAttachmentRootPath(), this.getOutputLocation(), this.getReferencingEntry(), this.isExported(), this.getAccessRules(), this.combineAccessRules(), changedAttributes); }
continue; if (isInitialProject || entry.isExported()){ String rootID = entry.rootID();
for (int i = 0, length = resolvedClasspath.length; i < length; i++){ ClasspathEntry entry = (ClasspathEntry) resolvedClasspath[i]; if (isInitialProject || entry.isExported()){ String rootID = entry.rootID(); if (rootIDs.contains(rootID)) {
for (int i = 0, length = resolvedClasspath.length; i < length; i++){ ClasspathEntry entry = (ClasspathEntry) resolvedClasspath[i]; if (isInitialProject || entry.isExported()){ String rootID = entry.rootID(); if (rootIDs.contains(rootID)) {
for (int i = 0, length = resolvedClasspath.length; i < length; i++){ ClasspathEntry entry = (ClasspathEntry) resolvedClasspath[i]; if (isInitialProject || entry.isExported()){ String rootID = entry.rootID(); if (rootIDs.contains(rootID)) {
if (referringEntry == null) return this; IClasspathAttribute[] referringExtraAttributes = referringEntry.getExtraAttributes(); if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null || referringExtraAttributes.length > 0) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); IClasspathAttribute[] combinedAttributes = this.extraAttributes; getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules,
for (int i = 0, length = resolvedClasspath.length; i < length; i++){ ClasspathEntry entry = (ClasspathEntry) resolvedClasspath[i]; if (isInitialProject || entry.isExported()){ String rootID = entry.rootID(); if (rootIDs.contains(rootID)) {
if (referringEntry == null) return this; IClasspathAttribute[] referringExtraAttributes = referringEntry.getExtraAttributes(); if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null || referringExtraAttributes.length > 0) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); IClasspathAttribute[] combinedAttributes = this.extraAttributes; getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules,
for (int i = 0, length = resolvedClasspath.length; i < length; i++){ ClasspathEntry entry = (ClasspathEntry) resolvedClasspath[i]; if (isInitialProject || entry.isExported()){ String rootID = entry.rootID(); if (rootIDs.contains(rootID)) {
if (referringEntry == null) return this; IClasspathAttribute[] referringExtraAttributes = referringEntry.getExtraAttributes(); if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null || referringExtraAttributes.length > 0) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); IClasspathAttribute[] combinedAttributes = this.extraAttributes; getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules,
/** * Used to perform export/restriction propagation across referring projects/containers */ public ClasspathEntry combineWith(ClasspathEntry referringEntry) { if (referringEntry == null) return this; if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null ) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); return new ClasspathEntry( getContentKind(), getEntryKind(), getPath(), this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules, this.extraAttributes); } // no need to clone return this; }
/** * Used to perform export/restriction propagation across referring projects/containers */ public ClasspathEntry combineWith(ClasspathEntry referringEntry) { if (referringEntry == null) return this; if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null ) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); return new ClasspathEntry( getContentKind(), getEntryKind(), getPath(), this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules, this.extraAttributes); } // no need to clone return this; }
/** * Used to perform export/restriction propagation across referring projects/containers */ public ClasspathEntry combineWith(ClasspathEntry referringEntry) { if (referringEntry == null) return this; if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null ) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); return new ClasspathEntry( getContentKind(), getEntryKind(), getPath(), this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules, this.extraAttributes); } // no need to clone return this; }
return false; if (this.isExported != otherEntry.isExported()) return false;
return false; if (this.isExported != otherEntry.isExported()) return false;
return false; if (this.isExported != otherEntry.isExported()) return false;
return false; if (this.isExported != otherEntry.isExported()) return false;
return false; if (this.isExported != otherEntry.isExported()) return false;
return false; if (this.isExported != otherEntry.isExported()) return false;