Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
---|---|---|
700 |
JpsLibraryCollection () { return myLibraryCollection; }
|
getLibraryCollection
|
701 |
JpsProject () { JpsModel model = getModel(); return model != null ? model.getProject() : null; }
|
getProject
|
702 |
JpsModuleType<P> () { return myModuleType; }
|
getModuleType
|
703 |
String () { return "JpsModuleImpl: "+getName(); }
|
toString
|
704 |
Collection<String> () { Set<String> urls = new LinkedHashSet<>(); processUrls(new CollectConsumer<>(urls)); return urls; }
|
getUrls
|
705 |
Collection<File> () { Set<File> files = new LinkedHashSet<>(); processUrls(url -> { if (!JpsPathUtil.isJrtUrl(url)) { files.add(JpsPathUtil.urlToFile(url)); } }); return files; }
|
getRoots
|
706 |
void (final Consumer<? super String> urlConsumer) { myDependenciesEnumerator.processDependencies(dependencyElement -> { if (dependencyElement instanceof JpsModuleSourceDependency) { processModuleRootUrls(dependencyElement.getContainingModule(), dependencyElement, urlConsumer); } else if (dependencyElement instanceof JpsModuleDependency) { JpsModule dep = ((JpsModuleDependency)dependencyElement).getModule(); if (dep != null) { processModuleRootUrls(dep, dependencyElement, urlConsumer); } } else if (dependencyElement instanceof JpsLibraryDependency) { JpsLibrary lib = ((JpsLibraryDependency)dependencyElement).getLibrary(); if (lib != null) { processLibraryRootUrls(lib, urlConsumer); } } else if (dependencyElement instanceof JpsSdkDependency) { JpsLibrary lib = ((JpsSdkDependency)dependencyElement).resolveSdk(); if (lib != null) { processLibraryRootUrls(lib, urlConsumer); } } return true; }); }
|
processUrls
|
707 |
boolean (JpsLibrary library, Consumer<? super String> urlConsumer) { for (String url : library.getRootUrls(myRootType)) { urlConsumer.accept(url); } return true; }
|
processLibraryRootUrls
|
708 |
List<JpsArtifact> (@NotNull JpsProject project) { JpsElementCollection<JpsArtifact> collection = project.getContainer().getChild(JpsArtifactRole.ARTIFACT_COLLECTION_ROLE); return collection != null ? collection.getElements() : Collections.emptyList(); }
|
getArtifacts
|
709 |
List<JpsArtifact> (@NotNull JpsProject project) { List<JpsArtifact> artifacts = new ArrayList<>(getArtifacts(project)); artifacts.sort((o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName())); return artifacts; }
|
getSortedArtifacts
|
710 |
JpsArtifactReference (@NotNull String artifactName) { return new JpsArtifactReferenceImpl(artifactName); }
|
createReference
|
711 |
JpsArtifactReferenceImpl () { return new JpsArtifactReferenceImpl(this); }
|
createCopy
|
712 |
String () { return myElementName; }
|
getArtifactName
|
713 |
JpsArtifactReferenceImpl (@NotNull JpsModel model) { model.registerExternalReference(this); return this; }
|
asExternal
|
714 |
JpsArtifactImpl<P> () { return new JpsArtifactImpl<>(this); }
|
createCopy
|
715 |
String () { return myOutputPath; }
|
getOutputPath
|
716 |
void (@Nullable String outputPath) { if (!Objects.equals(myOutputPath, outputPath)) { myOutputPath = outputPath; fireElementChanged(); } }
|
setOutputPath
|
717 |
String () { if (StringUtil.isEmpty(myOutputPath)) return null; JpsCompositePackagingElement root = getRootElement(); return root instanceof JpsArchivePackagingElement ? myOutputPath + "/" + ((JpsArchivePackagingElement)root).getArchiveName() : myOutputPath; }
|
getOutputFilePath
|
718 |
JpsArtifactType<P> () { return myArtifactType; }
|
getArtifactType
|
719 |
JpsArtifactReferenceImpl () { return new JpsArtifactReferenceImpl(getName()); }
|
createReference
|
720 |
JpsCompositePackagingElement () { return myContainer.getChild(ROOT_ELEMENT_CHILD_ROLE); }
|
getRootElement
|
721 |
void (@NotNull JpsCompositePackagingElement rootElement) { myContainer.setChild(ROOT_ELEMENT_CHILD_ROLE, rootElement); }
|
setRootElement
|
722 |
P () { return myContainer.getChild(myArtifactType.getPropertiesRole()); }
|
getProperties
|
723 |
boolean () { return myBuildOnMake; }
|
isBuildOnMake
|
724 |
void (boolean buildOnMake) { if (myBuildOnMake != buildOnMake) { myBuildOnMake = buildOnMake; fireElementChanged(); } }
|
setBuildOnMake
|
725 |
JpsArtifactRootElementImpl () { return new JpsArtifactRootElementImpl(); }
|
createCopy
|
726 |
void (@NotNull Self modified) { setFilePath(modified.myFilePath); }
|
applyChanges
|
727 |
String () { return myFilePath; }
|
getFilePath
|
728 |
void (String filePath) { if (!Objects.equals(myFilePath, filePath)) { myFilePath = filePath; fireElementChanged(); } }
|
setFilePath
|
729 |
JpsFileCopyPackagingElementImpl () { return new JpsFileCopyPackagingElementImpl(myFilePath, myRenamedOutputFileName); }
|
createCopy
|
730 |
void (@NotNull JpsFileCopyPackagingElementImpl modified) { super.applyChanges(modified); setRenamedOutputFileName(modified.myRenamedOutputFileName); }
|
applyChanges
|
731 |
String () { return myRenamedOutputFileName; }
|
getRenamedOutputFileName
|
732 |
void (String renamedOutputFileName) { if (!Objects.equals(myRenamedOutputFileName, renamedOutputFileName)) { myRenamedOutputFileName = renamedOutputFileName; fireElementChanged(); } }
|
setRenamedOutputFileName
|
733 |
JpsModuleReference () { return myContainer.getChild(MODULE_REFERENCE_CHILD_ROLE); }
|
getModuleReference
|
734 |
String () { JpsModule module = getModuleReference().resolve(); if (module == null) return null; return getOutputUrl(module); }
|
getOutputUrl
|
735 |
JpsExtractedDirectoryPackagingElementImpl () { return new JpsExtractedDirectoryPackagingElementImpl(myFilePath, myPathInJar); }
|
createCopy
|
736 |
void (@NotNull JpsExtractedDirectoryPackagingElementImpl modified) { super.applyChanges(modified); setPathInJar(modified.myPathInJar); }
|
applyChanges
|
737 |
String () { return myPathInJar; }
|
getPathInJar
|
738 |
void (String pathInJar) { if (!Objects.equals(myPathInJar, pathInJar)) { myPathInJar = pathInJar; fireElementChanged(); } }
|
setPathInJar
|
739 |
List<JpsPackagingElement> () { return myContainer.getChild(CHILDREN_ROLE).getElements(); }
|
getChildren
|
740 |
void (@NotNull JpsPackagingElement child) { myContainer.getChild(CHILDREN_ROLE).removeChild(child); }
|
removeChild
|
741 |
JpsDirectoryPackagingElementImpl () { return new JpsDirectoryPackagingElementImpl(this); }
|
createCopy
|
742 |
String () { return myDirectoryName; }
|
getDirectoryName
|
743 |
void (String directoryName) { if (!myDirectoryName.equals(directoryName)) { myDirectoryName = directoryName; fireElementChanged(); } }
|
setDirectoryName
|
744 |
JpsArtifactOutputPackagingElementImpl () { return new JpsArtifactOutputPackagingElementImpl(this); }
|
createCopy
|
745 |
JpsArtifactReference () { return myContainer.getChild(ARTIFACT_REFERENCE_CHILD_ROLE); }
|
getArtifactReference
|
746 |
List<JpsPackagingElement> () { JpsArtifact artifact = getArtifactReference().resolve(); if (artifact == null) return Collections.emptyList(); JpsCompositePackagingElement rootElement = artifact.getRootElement(); if (rootElement instanceof JpsArtifactRootElement) { return new ArrayList<>(rootElement.getChildren()); } else { return Collections.singletonList(rootElement); } }
|
getSubstitution
|
747 |
JpsLibraryFilesPackagingElementImpl () { return new JpsLibraryFilesPackagingElementImpl(this); }
|
createCopy
|
748 |
JpsLibraryReference () { return myContainer.getChild(LIBRARY_REFERENCE_CHILD_ROLE); }
|
getLibraryReference
|
749 |
List<JpsPackagingElement> () { JpsLibrary library = getLibraryReference().resolve(); if (library == null) return Collections.emptyList(); List<JpsPackagingElement> result = new ArrayList<>(); for (File file : library.getFiles(JpsOrderRootType.COMPILED)) { String path = FileUtil.toSystemIndependentName(file.getAbsolutePath()); if (file.isDirectory()) { result.add(JpsPackagingElementFactory.getInstance().createDirectoryCopy(path)); } else { result.add(JpsPackagingElementFactory.getInstance().createFileCopy(path, null)); } } return result; }
|
getSubstitution
|
750 |
JpsArchivePackagingElementImpl () { return new JpsArchivePackagingElementImpl(this); }
|
createCopy
|
751 |
String () { return myArchiveName; }
|
getArchiveName
|
752 |
void (String directoryName) { if (!myArchiveName.equals(directoryName)) { myArchiveName = directoryName; fireElementChanged(); } }
|
setArchiveName
|
753 |
JpsDirectoryCopyPackagingElement (@NotNull String directoryPath) { return new JpsDirectoryCopyPackagingElementImpl(directoryPath); }
|
createDirectoryCopy
|
754 |
JpsPackagingElement (String relativeOutputPath, JpsPackagingElement element) { relativeOutputPath = StringUtil.trimStart(relativeOutputPath, "/"); if (relativeOutputPath.length() == 0) { return element; } int slash = relativeOutputPath.indexOf('/'); if (slash == -1) slash = relativeOutputPath.length(); String rootName = relativeOutputPath.substring(0, slash); String pathTail = relativeOutputPath.substring(slash); final JpsDirectoryPackagingElement root = createDirectory(rootName); final JpsCompositePackagingElement last = getOrCreateDirectoryOrArchive(root, pathTail, true); last.addChild(element); return root; }
|
createParentDirectories
|
755 |
JpsCompositePackagingElement (@NotNull JpsCompositePackagingElement root, @NotNull String path) { return getOrCreateDirectoryOrArchive(root, path, true); }
|
getOrCreateDirectory
|
756 |
JpsCompositePackagingElement (@NotNull JpsCompositePackagingElement root, @NotNull String path) { return getOrCreateDirectoryOrArchive(root, path, false); }
|
getOrCreateArchive
|
757 |
JpsCompositePackagingElement (@NotNull JpsCompositePackagingElement root, @NotNull @NonNls String path, final boolean directory) { path = StringUtil.trimStart(StringUtil.trimEnd(path, "/"), "/"); if (path.length() == 0) { return root; } int index = path.lastIndexOf('/'); String lastName = path.substring(index + 1); String parentPath = index != -1 ? path.substring(0, index) : ""; final JpsCompositePackagingElement parent = getOrCreateDirectoryOrArchive(root, parentPath, true); final JpsCompositePackagingElement last = directory ? createDirectory(lastName) : createArchive(lastName); return parent.addChild(last); }
|
getOrCreateDirectoryOrArchive
|
758 |
JpsFileCopyPackagingElement (@NotNull String filePath, @Nullable String outputFileName) { return new JpsFileCopyPackagingElementImpl(filePath, outputFileName); }
|
createFileCopy
|
759 |
JpsExtractedDirectoryPackagingElement (@NotNull String jarPath, @NotNull String pathInJar) { return new JpsExtractedDirectoryPackagingElementImpl(jarPath, pathInJar); }
|
createExtractedDirectory
|
760 |
JpsDirectoryPackagingElement (@NotNull String directoryName) { return new JpsDirectoryPackagingElementImpl(directoryName); }
|
createDirectory
|
761 |
JpsArchivePackagingElement (@NotNull String archiveName) { return new JpsArchivePackagingElementImpl(archiveName); }
|
createArchive
|
762 |
JpsArtifactRootElement () { return new JpsArtifactRootElementImpl(); }
|
createArtifactRoot
|
763 |
JpsLibraryFilesPackagingElement (@NotNull JpsLibraryReference reference) { return new JpsLibraryFilesPackagingElementImpl(reference); }
|
createLibraryElement
|
764 |
JpsArtifactOutputPackagingElement (@NotNull JpsArtifactReference reference) { return new JpsArtifactOutputPackagingElementImpl(reference); }
|
createArtifactOutput
|
765 |
JpsDirectoryCopyPackagingElementImpl () { return new JpsDirectoryCopyPackagingElementImpl(myFilePath); }
|
createCopy
|
766 |
String () { return getFilePath(); }
|
getDirectoryPath
|
767 |
void (String path) { setFilePath(path); }
|
setDirectoryPath
|
768 |
FileNameMatcher (@NotNull String pattern) { if (pattern.startsWith("*.") && pattern.indexOf('*', 2) < 0 && pattern.indexOf('.', 2) < 0 && pattern.indexOf('?', 2) < 0) { return new ExtensionFileNameMatcher(StringUtil.toLowerCase(pattern.substring(2))); } if (pattern.contains("*") || pattern.contains("?")) { return new WildcardFileNameMatcher(pattern); } return new ExactFileNameMatcher(pattern); }
|
createMatcher
|
769 |
JpsRemoteRepositoriesConfiguration (@NotNull JpsProject project) { return project.getContainer().getChild(JpsRemoteRepositoriesConfigurationImpl.ROLE); }
|
getRemoteRepositoriesConfiguration
|
770 |
JpsRemoteRepositoriesConfigurationImpl () { return new JpsRemoteRepositoriesConfigurationImpl(repositories); }
|
createCopy
|
771 |
void (@NotNull JpsRemoteRepositoriesConfigurationImpl modified) { setRepositories(modified.getRepositories()); }
|
applyChanges
|
772 |
List<JpsRemoteRepositoryDescription> () { return Collections.unmodifiableList(repositories); }
|
getRepositories
|
773 |
void (List<? extends JpsRemoteRepositoryDescription> repositories) { this.repositories.clear(); this.repositories.addAll(repositories); }
|
setRepositories
|
774 |
String () { return myBaseDirUrl; }
|
getBaseDirUrl
|
775 |
String () { return myPattern; }
|
getPattern
|
776 |
JpsExcludePatternImpl () { return new JpsExcludePatternImpl(myBaseDirUrl, myPattern); }
|
createCopy
|
777 |
void (@NotNull JpsExcludePatternImpl modified) { }
|
applyChanges
|
778 |
JpsModel () { return myModel; }
|
getModel
|
779 |
E () { throw new UnsupportedOperationException("'createCopy' not implemented in " + getClass().getName()); }
|
createCopy
|
780 |
D () { return myData; }
|
getData
|
781 |
void (@NotNull D data) { if (!myData.equals(data)) { myData = data; fireElementChanged(); } }
|
setData
|
782 |
JpsSimpleElementImpl<D> () { return new JpsSimpleElementImpl<>(this); }
|
createCopy
|
783 |
void (@NotNull JpsSimpleElementImpl<D> modified) { setData(modified.getData()); }
|
applyChanges
|
784 |
JpsProjectImpl () { return myProject; }
|
getProject
|
785 |
JpsGlobalImpl () { return myGlobal; }
|
getGlobal
|
786 |
void (@NotNull JpsElementReference<?> reference) { myProject.addExternalReference(reference); }
|
registerExternalReference
|
787 |
void () { myOriginalModel.applyChanges(this); }
|
commit
|
788 |
void (@NotNull JpsModelImpl modifiedCopy) { myProject.applyChanges(modifiedCopy.myProject); myGlobal.applyChanges(modifiedCopy.myGlobal); }
|
applyChanges
|
789 |
T () { final JpsCompositeElement parent = getParentReference().resolve(); if (parent == null) return null; JpsElementCollection<? extends S> collection = getCollection(parent); if (collection == null) return null; final List<? extends S> elements = collection.getElements(); for (S element : elements) { if (element.getName().equals(myElementName)) { T resolved = resolve(element); if (resolved != null) { return resolved; } } } return null; }
|
resolve
|
790 |
JpsElementReference<T> (@NotNull JpsModel model) { model.registerExternalReference(this); return this; }
|
asExternal
|
791 |
JpsLibraryCollection () { return myLibraryCollection; }
|
getLibraryCollection
|
792 |
JpsFileTypesConfiguration () { return myContainer.getChild(JpsFileTypesConfigurationImpl.ROLE); }
|
getFileTypesConfiguration
|
793 |
JpsPathMapper () { return myPathMapper; }
|
getPathMapper
|
794 |
void (@NotNull JpsPathMapper pathMapper) { myPathMapper = pathMapper; }
|
setPathMapper
|
795 |
JpsElementReference<JpsGlobal> () { return new JpsGlobalElementReference(); }
|
createReference
|
796 |
String (@NotNull File file) { if (isXmlFile(file)) { try { String encoding = XmlCharsetDetector.extractXmlEncodingFromProlog(FileUtil.loadFileBytes(file)); if (encoding != null) { return encoding; } } catch (IOException e) { LOG.info("Cannot detect encoding for xml file " + file.getAbsolutePath(), e); } } if (!myUrlToEncoding.isEmpty()) { File current = file; while (current != null) { String encoding = myUrlToEncoding.get(JpsPathUtil.pathToUrl(FileUtilRt.toSystemIndependentName(current.getPath()))); if (encoding != null) { return encoding; } current = FileUtilRt.getParentFile(current); } } if (myProjectEncoding != null) { return myProjectEncoding; } final JpsModel model = getModel(); assert model != null; return JpsEncodingConfigurationService.getInstance().getGlobalEncoding(model.getGlobal()); }
|
getEncoding
|
797 |
boolean (File file) { String fileName = file.getName(); return SystemInfo.isFileSystemCaseSensitive ? fileName.endsWith(XML_NAME_SUFFIX) : StringUtil.endsWithIgnoreCase(fileName, XML_NAME_SUFFIX); }
|
isXmlFile
|
798 |
String () { return myProjectEncoding; }
|
getProjectEncoding
|
799 |
JpsEncodingProjectConfigurationImpl () { return new JpsEncodingProjectConfigurationImpl(myUrlToEncoding, myProjectEncoding); }
|
createCopy
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.