Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
---|---|---|
600 |
String () { return "JpsLibraryImpl: "+getName(); }
|
toString
|
601 |
String () { return myElementName; }
|
getSdkName
|
602 |
JpsTypedLibrary<JpsSdk<P>> (JpsLibrary element) { return element.asTyped(mySdkType); }
|
resolve
|
603 |
JpsSdkReferenceImpl<P> () { return new JpsSdkReferenceImpl<>(this); }
|
createCopy
|
604 |
String () { return "SDK reference: '" + myElementName + "' in " + getParentReference(); }
|
toString
|
605 |
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; return myRootType.equals(((JpsLibraryRootRole)o).myRootType); }
|
equals
|
606 |
int () { return myRootType.hashCode(); }
|
hashCode
|
607 |
String () { return myElementName; }
|
getLibraryName
|
608 |
JpsLibraryReferenceImpl () { return new JpsLibraryReferenceImpl(this); }
|
createCopy
|
609 |
JpsLibraryReference (@NotNull JpsModel model) { model.registerExternalReference(this); return this; }
|
asExternal
|
610 |
String () { return "lib ref: '" + myElementName + "' in " + getParentReference(); }
|
toString
|
611 |
List<JpsLibrary> () { return myCollection.getElements(); }
|
getLibraries
|
612 |
void (@NotNull JpsLibrary library) { myCollection.addChild(library); }
|
addLibrary
|
613 |
void (@NotNull JpsLibrary library) { myCollection.removeChild(library); }
|
removeLibrary
|
614 |
JpsLibrary (@NotNull String name) { for (JpsLibrary library : getLibraries()) { if (name.equals(library.getName())) { return library; } } return null; }
|
findLibrary
|
615 |
JpsSdkImpl<P> () { return new JpsSdkImpl<>(this); }
|
createCopy
|
616 |
P () { return myContainer.getChild(mySdkType.getSdkPropertiesRole()); }
|
getSdkProperties
|
617 |
JpsSdkReference<P> () { return JpsElementFactory.getInstance().createSdkReference(getParent().getName(), mySdkType); }
|
createReference
|
618 |
JpsSdkType<P> () { return mySdkType; }
|
getSdkType
|
619 |
JpsLibraryImpl<JpsSdk<P>> () { //noinspection unchecked return (JpsLibraryImpl<JpsSdk<P>>)super.getParent(); }
|
getParent
|
620 |
void (@NotNull JpsSdkImpl<P> modified) { super.applyChanges(modified); setHomePath(modified.getHomePath()); setVersionString(modified.getVersionString()); }
|
applyChanges
|
621 |
String () { return myHomePath; }
|
getHomePath
|
622 |
void (String homePath) { if (!Objects.equals(myHomePath, homePath)) { myHomePath = homePath; fireElementChanged(); } }
|
setHomePath
|
623 |
String () { return myVersionString; }
|
getVersionString
|
624 |
void (String versionString) { if (!Objects.equals(myVersionString, versionString)) { myVersionString = versionString; fireElementChanged(); } }
|
setVersionString
|
625 |
P () { return myContainer.getChild(myRootType.getPropertiesRole()); }
|
getProperties
|
626 |
JpsModuleSourceRootType<P> () { return myRootType; }
|
getRootType
|
627 |
String () { return myUrl; }
|
getUrl
|
628 |
File () { return JpsPathUtil.urlToFile(myUrl); }
|
getFile
|
629 |
Path () { return Paths.get(JpsPathUtil.urlToPath(myUrl)); }
|
getPath
|
630 |
JpsModuleSourceRootImpl<P> () { return new JpsModuleSourceRootImpl<>(this); }
|
createCopy
|
631 |
int () { return myType.hashCode(); }
|
hashCode
|
632 |
boolean (Object obj) { return obj instanceof JpsSdkReferenceRole && myType.equals(((JpsSdkReferenceRole)obj).myType); }
|
equals
|
633 |
JpsModuleSourceDependencyImpl () { return new JpsModuleSourceDependencyImpl(this); }
|
createCopy
|
634 |
String () { return "module source dep"; }
|
toString
|
635 |
JpsSdkDependencyImpl () { return new JpsSdkDependencyImpl(this); }
|
createCopy
|
636 |
JpsLibrary () { final JpsSdkReference<?> reference = getSdkReference(); if (reference == null) return null; return reference.resolve(); }
|
resolveSdk
|
637 |
boolean () { return false; }
|
isInherited
|
638 |
String () { return "sdk dep [" + mySdkType + "]"; }
|
toString
|
639 |
void () { ((JpsDependenciesListImpl)myParent.getParent()).getContainer().getChild(JpsDependenciesListImpl.DEPENDENCY_COLLECTION_ROLE).removeChild(this); }
|
remove
|
640 |
JpsDependenciesListImpl () { return (JpsDependenciesListImpl)myParent.getParent(); }
|
getDependenciesList
|
641 |
JpsModule () { return getDependenciesList().getParent(); }
|
getContainingModule
|
642 |
JpsModuleReferenceImpl () { return new JpsModuleReferenceImpl(myElementName); }
|
createCopy
|
643 |
String () { return myElementName; }
|
getModuleName
|
644 |
JpsModuleReference (@NotNull JpsModel model) { model.registerExternalReference(this); return this; }
|
asExternal
|
645 |
String () { return "module ref: '" + myElementName + "' in " + getParentReference(); }
|
toString
|
646 |
JpsModuleReference () { return myContainer.getChild(MODULE_REFERENCE_CHILD_ROLE); }
|
getProductionModuleReference
|
647 |
JpsTestModulePropertiesImpl () { return new JpsTestModulePropertiesImpl(this); }
|
createCopy
|
648 |
JpsSdkReferencesTableImpl () { return new JpsSdkReferencesTableImpl(this); }
|
createCopy
|
649 |
JpsSdkReferencesTable () { return new JpsSdkReferencesTableImpl(); }
|
create
|
650 |
JpsLibraryReference () { return myContainer.getChild(LIBRARY_REFERENCE_CHILD_ROLE); }
|
getLibraryReference
|
651 |
JpsLibrary () { Ref<JpsLibrary> libRef = myCachedLibrary; if (libRef == null) { libRef = new Ref<>(getLibraryReference().resolve()); myCachedLibrary = libRef; } return libRef.get(); }
|
getLibrary
|
652 |
JpsLibraryDependencyImpl () { return new JpsLibraryDependencyImpl(this); }
|
createCopy
|
653 |
String () { return "lib dep [" + getLibraryReference() + "]"; }
|
toString
|
654 |
JpsModuleReference () { return myContainer.getChild(MODULE_REFERENCE_CHILD_ROLE); }
|
getModuleReference
|
655 |
JpsModule () { Ref<JpsModule> moduleRef = myCachedModule; if (moduleRef == null) { moduleRef = new Ref<>(getModuleReference().resolve()); myCachedModule = moduleRef; } return moduleRef.get(); }
|
getModule
|
656 |
JpsModuleDependencyImpl () { return new JpsModuleDependencyImpl(this); }
|
createCopy
|
657 |
String () { return "module dep [" + getModuleReference() + "]"; }
|
toString
|
658 |
Self () { myWithoutLibraries = true; return self(); }
|
withoutLibraries
|
659 |
Self () { myWithoutDepModules = true; return self(); }
|
withoutDepModules
|
660 |
Self () { myWithoutSdk = true; return self(); }
|
withoutSdk
|
661 |
Self () { myWithoutModuleSourceEntries = true; return self(); }
|
withoutModuleSourceEntries
|
662 |
Self (@NotNull Condition<? super JpsDependencyElement> condition) { myCondition = condition; return self(); }
|
satisfying
|
663 |
Self () { myRecursively = true; return self(); }
|
recursively
|
664 |
Set<JpsModule> () { Set<JpsModule> result = new LinkedHashSet<>(); processModules(new CollectConsumer<>(result)); return result; }
|
getModules
|
665 |
void (@NotNull final Consumer<? super JpsModule> consumer) { processModuleAndLibraries(consumer, EmptyConsumer.getInstance()); }
|
processModules
|
666 |
boolean () { return true; }
|
shouldProcessDependenciesRecursively
|
667 |
boolean (Processor<? super JpsDependencyElement> processor) { Set<JpsModule> processed = CollectionFactory.createSmallMemoryFootprintSet(); for (JpsModule module : myRootModules) { if (!doProcessDependencies(module, processor, processed)) { return false; } } return true; }
|
processDependencies
|
668 |
boolean (JpsModule module, Processor<? super JpsDependencyElement> processor, Set<? super JpsModule> processed) { if (!processed.add(module)) return true; for (JpsDependencyElement element : module.getDependenciesList().getDependencies()) { if (myCondition != null && !myCondition.value(element)) continue; if (myWithoutSdk && element instanceof JpsSdkDependency || myWithoutLibraries && element instanceof JpsLibraryDependency || myWithoutModuleSourceEntries && element instanceof JpsModuleSourceDependency) continue; if (myWithoutDepModules) { if (!myRecursively && element instanceof JpsModuleDependency) continue; if (element instanceof JpsModuleSourceDependency && !isEnumerationRootModule(module)) continue; } if (!shouldProcess(module, element)) { continue; } if (element instanceof JpsModuleDependency) { if (myRecursively && shouldProcessDependenciesRecursively()) { JpsModule depModule = ((JpsModuleDependency)element).getModule(); if (depModule != null) { if (!doProcessDependencies(depModule, processor, processed)) { return false; } continue; } } if (myWithoutDepModules) continue; } if (!processor.process(element)) { return false; } } return true; }
|
doProcessDependencies
|
669 |
boolean (JpsModule module, JpsDependencyElement element) { return true; }
|
shouldProcess
|
670 |
boolean (JpsModule module) { return myRootModules.contains(module); }
|
isEnumerationRootModule
|
671 |
Set<JpsLibrary> () { Set<JpsLibrary> libraries = new LinkedHashSet<>(); processLibraries(new CollectConsumer<>(libraries)); return libraries; }
|
getLibraries
|
672 |
void (@NotNull final Consumer<? super JpsLibrary> consumer) { processModuleAndLibraries(EmptyConsumer.getInstance(), consumer); }
|
processLibraries
|
673 |
void (@Nullable final Consumer<? super JpsModule> moduleConsumer, @Nullable final Consumer<? super JpsLibrary> libraryConsumer) { processDependencies(dependencyElement -> { if (moduleConsumer != null) { if (myRecursively && dependencyElement instanceof JpsModuleSourceDependency) { moduleConsumer.consume(dependencyElement.getContainingModule()); } else if ((!myRecursively || !shouldProcessDependenciesRecursively()) && dependencyElement instanceof JpsModuleDependency) { JpsModule module = ((JpsModuleDependency)dependencyElement).getModule(); if (module != null) { moduleConsumer.consume(module); } } } if (libraryConsumer != null && dependencyElement instanceof JpsLibraryDependency) { JpsLibrary library = ((JpsLibraryDependency)dependencyElement).getLibrary(); if (library != null) { libraryConsumer.consume(library); } } return true; }); }
|
processModuleAndLibraries
|
674 |
List<JpsDependencyElement> () { return myContainer.getChild(DEPENDENCY_COLLECTION_ROLE).getElements(); }
|
getDependencies
|
675 |
void () { myContainer.getChild(DEPENDENCY_COLLECTION_ROLE).removeAllChildren(); }
|
clear
|
676 |
JpsModuleDependency (@NotNull JpsModule module) { return addModuleDependency(module.createReference()); }
|
addModuleDependency
|
677 |
JpsModuleDependency (@NotNull JpsModuleReference moduleReference) { final JpsModuleDependencyImpl dependency = new JpsModuleDependencyImpl(moduleReference); myContainer.getChild(DEPENDENCY_COLLECTION_ROLE).addChild(dependency); return dependency; }
|
addModuleDependency
|
678 |
JpsLibraryDependency (@NotNull JpsLibrary libraryElement) { return addLibraryDependency(libraryElement.createReference()); }
|
addLibraryDependency
|
679 |
JpsLibraryDependency (@NotNull JpsLibraryReference libraryReference) { final JpsLibraryDependencyImpl dependency = new JpsLibraryDependencyImpl(libraryReference); myContainer.getChild(DEPENDENCY_COLLECTION_ROLE).addChild(dependency); return dependency; }
|
addLibraryDependency
|
680 |
void () { myContainer.getChild(DEPENDENCY_COLLECTION_ROLE).addChild(new JpsModuleSourceDependencyImpl()); }
|
addModuleSourceDependency
|
681 |
void (@NotNull JpsSdkType<?> sdkType) { myContainer.getChild(DEPENDENCY_COLLECTION_ROLE).addChild(new JpsSdkDependencyImpl(sdkType)); }
|
addSdkDependency
|
682 |
JpsDependenciesListImpl () { return new JpsDependenciesListImpl(this); }
|
createCopy
|
683 |
JpsModuleImpl () { return (JpsModuleImpl)super.getParent(); }
|
getParent
|
684 |
JpsModuleImpl<P> () { return new JpsModuleImpl<>(this); }
|
createCopy
|
685 |
JpsElementType<P> () { return myModuleType; }
|
getType
|
686 |
P () { return myContainer.getChild(myModuleType.getPropertiesRole()); }
|
getProperties
|
687 |
JpsUrlList () { return myContainer.getChild(CONTENT_ROOTS_ROLE); }
|
getContentRootsList
|
688 |
JpsUrlList () { return myContainer.getChild(EXCLUDED_ROOTS_ROLE); }
|
getExcludeRootsList
|
689 |
List<JpsModuleSourceRoot> () { return myContainer.getChild(JpsModuleSourceRootRole.ROOT_COLLECTION_ROLE).getElements(); }
|
getSourceRoots
|
690 |
void (@NotNull JpsModuleSourceRoot root) { myContainer.getChild(JpsModuleSourceRootRole.ROOT_COLLECTION_ROLE).addChild(root); }
|
addSourceRoot
|
691 |
void (@NotNull String url, @NotNull JpsModuleSourceRootType rootType) { final JpsElementCollection<JpsModuleSourceRoot> roots = myContainer.getChild(JpsModuleSourceRootRole.ROOT_COLLECTION_ROLE); for (JpsModuleSourceRoot root : roots.getElements()) { if (root.getRootType().equals(rootType) && root.getUrl().equals(url)) { roots.removeChild(root); break; } } }
|
removeSourceRoot
|
692 |
void (@NotNull String baseDirUrl, @NotNull String pattern) { myContainer.getOrSetChild(EXCLUDE_PATTERNS_ROLE).addChild(new JpsExcludePatternImpl(baseDirUrl, pattern)); }
|
addExcludePattern
|
693 |
void (@NotNull String baseDirUrl, @NotNull String pattern) { JpsElementCollection<JpsExcludePattern> child = myContainer.getChild(EXCLUDE_PATTERNS_ROLE); if (child != null) { for (JpsExcludePattern excludePattern : child.getElements()) { if (excludePattern.getBaseDirUrl().equals(baseDirUrl) && excludePattern.getPattern().equals(pattern)) { child.removeChild(excludePattern); } } } }
|
removeExcludePattern
|
694 |
List<JpsExcludePattern> () { JpsElementCollection<JpsExcludePattern> child = myContainer.getChild(EXCLUDE_PATTERNS_ROLE); return child != null ? child.getElements() : Collections.emptyList(); }
|
getExcludePatterns
|
695 |
JpsDependenciesList () { return myContainer.getChild(DEPENDENCIES_LIST_CHILD_ROLE); }
|
getDependenciesList
|
696 |
JpsSdkReferencesTable () { return myContainer.getChild(JpsSdkReferencesTableImpl.ROLE); }
|
getSdkReferencesTable
|
697 |
void () { //noinspection unchecked ((JpsElementCollection<JpsModule>)myParent).removeChild(this); }
|
delete
|
698 |
JpsModuleReference () { return new JpsModuleReferenceImpl(getName()); }
|
createReference
|
699 |
void (final @NotNull JpsLibrary library) { myLibraryCollection.addLibrary(library); }
|
addModuleLibrary
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.