Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
77,800 | void (PsiMember classMember, PsiReferenceExpression classMemberReferenceExpression) { visitClassMemberReferenceElement(classMember, classMemberReferenceExpression); } | visitClassMemberReferenceExpression |
77,801 | PsiClass () { return myClass; } | getPsiClass |
77,802 | PsiReferenceList () { return mySourceReferenceList; } | getSourceReferenceList |
77,803 | List<MemberInfo> (PsiClass subclass, Filter<PsiMember> filter, boolean extractInterfacesDeep) { List<MemberInfo> members = new ArrayList<>(); extractClassMembers(subclass, members, filter, extractInterfacesDeep); return members; } | extractClassMembers |
77,804 | void (PsiClass subclass, List<MemberInfo> result, Filter<PsiMember> filter, final boolean extractInterfacesDeep) { if (extractInterfacesDeep) { extractSuperInterfaces(subclass, filter, result, new HashSet<>()); } else { PsiClass[] interfaces = subclass.getInterfaces(); PsiReferenceList sourceRefList = subclass.isInterf... | extractClassMembers |
77,805 | void (final PsiClass subclass, final Filter<PsiMember> filter, final List<MemberInfo> result, Set<PsiClass> processed) { if (!processed.contains(subclass)) { processed.add(subclass); extractSuperInterfacesFromReferenceList(subclass.getExtendsList(), filter, result, processed); extractSuperInterfacesFromReferenceList(su... | extractSuperInterfaces |
77,806 | void (final PsiReferenceList referenceList, final Filter<PsiMember> filter, final List<MemberInfo> result, final Set<PsiClass> processed) { if (referenceList != null) { final PsiClassType[] extendsListTypes = referenceList.getReferencedTypes(); for (PsiClassType extendsListType : extendsListTypes) { final PsiClass aSup... | extractSuperInterfacesFromReferenceList |
77,807 | boolean () { return myResult; } | usesMembers |
77,808 | void (PsiMember classMember, PsiJavaCodeReferenceElement classMemberReference) { if (classMember == null || classMember.equals(myMember)) return; if (classMember.hasModifierProperty(PsiModifier.STATIC)) return; if (ignoreUsedTypeParams() && classMember instanceof PsiTypeParameter) return; myResult = true; } | visitClassMemberReferenceElement |
77,809 | boolean () { return myMember != null; } | ignoreUsedTypeParams |
77,810 | void (PsiClass referencedClass, PsiThisExpression reference) { myResult = true; } | visitExplicitThis |
77,811 | void (PsiClass referencedClass, PsiSuperExpression reference) { myResult = true; } | visitExplicitSuper |
77,812 | void (@NotNull PsiReferenceExpression expression) { super.visitReferenceExpression(expression); PsiType type = expression.getType(); if (type != null) { PsiTypesUtil.TypeParameterSearcher searcher = new PsiTypesUtil.TypeParameterSearcher(); type.accept(searcher); for (PsiTypeParameter parameter : searcher.getTypeParame... | visitReferenceExpression |
77,813 | ChainCallExtractor (@Nullable PsiLambdaExpression lambda, @NotNull PsiExpression expression, @Nullable PsiType targetType) { if (lambda == null) return null; PsiParameterList parameters = lambda.getParameterList(); if (parameters.getParametersCount() != 1) return null; PsiExpressionList args = tryCast(PsiUtil.skipParen... | findExtractor |
77,814 | PsiLambdaExpression (@NotNull Project project, PsiLocalVariable variable) { if (variable == null) return null; PsiExpression initializer = variable.getInitializer(); if (initializer == null) return null; PsiLambdaExpression lambda = PsiTreeUtil.getParentOfType(variable, PsiLambdaExpression.class); if (lambda == null) r... | extractMappingStep |
77,815 | PsiFile () { return myContainingFile; } | getFile |
77,816 | TextRange () { return myTextRange; } | getTextRange |
77,817 | boolean () { return myGenerateConditionalExit; } | isGenerateConditionalExit |
77,818 | boolean (@NotNull PsiVariable variable) { return ControlFlowUtil.needVariableValueAt(variable, myControlFlow, myFlowEnd); } | needVariableValueAfterEnd |
77,819 | void (@NotNull PsiReferenceExpression expression) { super.visitReferenceExpression(expression); if (expression.resolve() instanceof PsiVariable variable && isWrittenInside(variable)) { outputVariables.add(variable); } } | visitReferenceExpression |
77,820 | boolean (final PsiVariable variable) { final List<Instruction> instructions = myControlFlow.getInstructions(); for (int i = myFlowStart; i < myFlowEnd; i++) { Instruction instruction = instructions.get(i); if (instruction instanceof WriteVariableInstruction && variable.equals(((WriteVariableInstruction)instruction).var... | isWrittenInside |
77,821 | boolean () { return ControlFlowUtil.returnPresentBetween(myControlFlow, myFlowStart, myFlowEnd); } | isReturnPresentBetween |
77,822 | void (PsiElement codeFragment, List<PsiVariable> inputVariables) { LocalSearchScope scope = new LocalSearchScope(codeFragment); Variables: for (Iterator<PsiVariable> iterator = inputVariables.iterator(); iterator.hasNext();) { PsiVariable variable = iterator.next(); for (PsiReference ref : ReferencesSearch.search(varia... | removeParametersUsedInExitsOnly |
77,823 | boolean (PsiElement element, Collection<? extends PsiStatement> exitStatements) { for (PsiStatement exitStatement : exitStatements) { if (PsiTreeUtil.isAncestor(exitStatement, element, false)) return true; } return false; } | isInExitStatements |
77,824 | boolean (final PsiStatement exitStatement) { if (exitStatement instanceof PsiContinueStatement) { //IDEADEV-11748 PsiStatement statement = ((PsiContinueStatement)exitStatement).findContinuedStatement(); if (statement == null) return true; if (statement instanceof PsiLoopStatement) statement = ((PsiLoopStatement)stateme... | needExitStatement |
77,825 | List<PsiVariable> (final PsiElement codeFragment, PsiElement[] elements, PsiVariable[] outputVariables) { final List<PsiVariable> inputVariables = ControlFlowUtil.getInputVariables(myControlFlow, myFlowStart, myFlowEnd); List<PsiVariable> myInputVariables; List<PsiVariable> inputVariableList = new ArrayList<>(inputVari... | getInputVariables |
77,826 | List<PsiVariable> (int start) { return getUsedVariables(start, myControlFlow.getSize()); } | getUsedVariables |
77,827 | List<PsiVariable> (int start, int end) { return ControlFlowUtil.getUsedVariables(myControlFlow, start, end); } | getUsedVariables |
77,828 | boolean (PsiVariable[] outputVariables) { return myGenerateConditionalExit && outputVariables.length == 0; } | skipVariablesFromExitStatements |
77,829 | boolean () { return false; } | reportBaseInTestSelectionInSource |
77,830 | boolean () { return false; } | reportBaseInSourceSelectionInTest |
77,831 | void () { super.removeNotify(); Disposer.dispose(myAlarm); } | removeNotify |
77,832 | void (@NotNull Project project, @Nullable PsiDirectory initialTargetDirectory, @NotNull EditorComboBox editorComboBox) { setData(project, initialTargetDirectory, __ -> {}, editorComboBox); } | setData |
77,833 | void (@NotNull Project project, @Nullable PsiDirectory targetDirectory, @NotNull Consumer<? super @NlsContexts.DialogMessage String> errorMessageUpdater, @NotNull EditorComboBox editorComboBox) { myProject = project; myInitialTargetDirectory = targetDirectory; mySourceRoots = getSourceRoots(project, targetDirectory); m... | setData |
77,834 | String (Object element) { if (element == DirectoryChooser.ItemWrapper.NULL) return leaveInSameSourceRoot; if (element instanceof DirectoryChooser.ItemWrapper) { final VirtualFile virtualFile = ((DirectoryChooser.ItemWrapper)element).getDirectory().getVirtualFile(); final Module module = ModuleUtilCore.findModuleForFile... | getElementText |
77,835 | void (ActionEvent e) { final ComboBoxModel<DirectoryChooser.ItemWrapper> model = getComboBox().getModel(); VirtualFile root = CommonMoveClassesOrPackagesUtil.chooseSourceRoot( new PackageWrapper(PsiManager.getInstance(project), getTargetPackage()), mySourceRoots, targetDirectory ); if (root == null) return; List<Direct... | actionPerformed |
77,836 | void (@NotNull DocumentEvent e) { JComboBox comboBox = getComboBox(); DirectoryChooser.ItemWrapper selectedItem = (DirectoryChooser.ItemWrapper)comboBox.getSelectedItem(); VirtualFile initialTargetDirectorySourceRoot = selectedItem != null && selectedItem != DirectoryChooser.ItemWrapper.NULL ? fileIndex.getSourceRootFo... | documentChanged |
77,837 | void (ActionEvent e) { Object selectedItem = getComboBox().getSelectedItem(); record NonBlockingResult(@Nullable String error, @NlsSafe @Nullable String relativeSrcPath) { } ReadAction .nonBlocking(() -> { if (selectedItem instanceof DirectoryChooser.ItemWrapper && selectedItem != DirectoryChooser.ItemWrapper.NULL) { P... | actionPerformed |
77,838 | List<VirtualFile> (@NotNull Project project, @Nullable PsiDirectory initialTargetDirectory) { return JavaProjectRootsUtil.getSuitableDestinationSourceRoots(project); } | getSourceRoots |
77,839 | void (@NlsSafe @Nullable String relativeSourceRootPath) { JComboBox<?> comboBox = getComboBox(); if (relativeSourceRootPath != null && comboBox.getSelectedItem() == DirectoryChooser.ItemWrapper.NULL) { comboBox.setToolTipText(relativeSourceRootPath); } else { comboBox.setToolTipText(null); } } | updateTooltipText |
77,840 | MoveDestination (final PackageWrapper targetPackage, final boolean showChooserWhenDefault) { final DirectoryChooser.ItemWrapper selectedItem = (DirectoryChooser.ItemWrapper)getComboBox().getSelectedItem(); if (selectedItem == null || selectedItem == DirectoryChooser.ItemWrapper.NULL) { return new MultipleRootsMoveDesti... | selectDirectory |
77,841 | String (ProjectFileIndex fileIndex, Object selectedItem) { if (myInitialTargetDirectory != null && selectedItem instanceof DirectoryChooser.ItemWrapper && selectedItem != DirectoryChooser.ItemWrapper.NULL) { final PsiDirectory directory = ((DirectoryChooser.ItemWrapper)selectedItem).getDirectory(); final boolean isSele... | getUpdateErrorMessage |
77,842 | void (@Nullable VirtualFile sourceRoot, @Nullable VirtualFile oldSelection, boolean forceIncludeAll) { myAlarm.cancelAllRequests(); myAlarm.addRequest(() -> setComboboxModelInternal(sourceRoot, oldSelection, forceIncludeAll), 300, ModalityState.stateForComponent(this)); } | setComboboxModel |
77,843 | void (@Nullable VirtualFile sourceRoot, @Nullable VirtualFile oldSelection, boolean forceIncludeAll) { if (myProject.isDisposed()) return; ProjectFileIndex fileIndex = ProjectRootManager.getInstance(myProject).getFileIndex(); JComboBox<DirectoryChooser.ItemWrapper> comboBox = getComboBox(); final ComboBoxModel<Director... | setComboboxModelInternal |
77,844 | boolean (DirectoryChooser.ItemWrapper oItem, DirectoryChooser.ItemWrapper itemWrapper) { if (oItem == DirectoryChooser.ItemWrapper.NULL || itemWrapper == DirectoryChooser.ItemWrapper.NULL) { if (oItem != itemWrapper) { return false; } return true; } if (oItem == null) return itemWrapper == null; if (itemWrapper == null... | areItemsEquivalent |
77,845 | boolean (final Project project, final VirtualFile virtualFile, final VirtualFile targetVirtualFile) { final boolean inTestSourceContent = ProjectRootManager.getInstance(project).getFileIndex().isInTestSourceContent(virtualFile); final Module module = ModuleUtilCore.findModuleForFile(virtualFile, project); if (targetVir... | isAccessible |
77,846 | PackageWrapper () { return myPackage; } | getTargetPackage |
77,847 | PsiDirectory (@NotNull PsiFile source) { return findTargetDirectoryForSource(source.getVirtualFile()); } | getTargetIfExists |
77,848 | String (PsiFile source) { VirtualFile virtualFile = source.getVirtualFile(); if (virtualFile.isDirectory()) { virtualFile = virtualFile.getParent(); LOG.assertTrue(virtualFile.isDirectory()); } final VirtualFile sourceRootForFile = myFileIndex.getSourceRootForFile(virtualFile); if (sourceRootForFile == null) { return "... | verify |
77,849 | String (PsiDirectory source) { VirtualFile virtualFile = source.getVirtualFile(); final VirtualFile sourceRootForFile = myFileIndex.getSourceRootForFile(virtualFile); if (sourceRootForFile == null) { return ""; } if (virtualFile.equals(sourceRootForFile)) return null; return checkCanCreateInSourceRoot(sourceRootForFile... | verify |
77,850 | String (PsiPackage source) { PsiDirectory[] directories = source.getDirectories(); for (final PsiDirectory directory : directories) { String s = verify(directory); if (s != null) return s; } return null; } | verify |
77,851 | void (@NotNull final Collection<? extends PsiElement> elements, @NotNull MultiMap<PsiElement,String> conflicts, final UsageInfo[] usages) { } | analyzeModuleConflicts |
77,852 | boolean (@NotNull Project project, @NotNull VirtualFile place) { return true; } | isTargetAccessible |
77,853 | PsiDirectory (PsiDirectory source) { return findTargetDirectoryForSource(source.getVirtualFile()); } | getTargetIfExists |
77,854 | PsiDirectory (final VirtualFile file) { final VirtualFile sourceRoot = myFileIndex.getSourceRootForFile(file); LOG.assertTrue(sourceRoot != null); return CommonJavaRefactoringUtil.findPackageDirectoryInSourceRoot(myPackage, sourceRoot); } | findTargetDirectoryForSource |
77,855 | PackageWrapper () { return myPackage; } | getTargetPackage |
77,856 | PsiDirectory (PsiDirectory source) { return myTargetDirectory; } | getTargetIfExists |
77,857 | PsiDirectory (@NotNull PsiFile source) { return myTargetDirectory; } | getTargetIfExists |
77,858 | PsiDirectory (PsiDirectory source) { return myTargetDirectory; } | getTargetDirectory |
77,859 | String (PsiFile source) { return null; } | verify |
77,860 | String (PsiDirectory source) { return null; } | verify |
77,861 | String (PsiPackage source) { return null; } | verify |
77,862 | void (@NotNull final Collection<? extends PsiElement> elements, @NotNull MultiMap<PsiElement,String> conflicts, final UsageInfo[] usages) { final VirtualFile targetDirFile = PsiUtilCore.getVirtualFile(myTargetDirectory); if (targetDirFile == null) return; RefactoringConflictsUtil.getInstance() .analyzeModuleConflicts(m... | analyzeModuleConflicts |
77,863 | boolean (@NotNull Project project, @NotNull VirtualFile place) { final boolean inTestSourceContent = ProjectRootManager.getInstance(project).getFileIndex().isInTestSourceContent(place); final Module module = ModuleUtilCore.findModuleForFile(place, project); final VirtualFile targetVirtualFile = myTargetDirectory.getVir... | isTargetAccessible |
77,864 | PsiDirectory (PsiFile source) { return myTargetDirectory; } | getTargetDirectory |
77,865 | PackageWrapper () { return myPackage; } | getTargetPackage |
77,866 | PsiDirectory (PsiDirectory source) { return CommonJavaRefactoringUtil.findPackageDirectoryInSourceRoot(myPackage, mySourceRoot); } | getTargetIfExists |
77,867 | PsiDirectory (@NotNull PsiFile source) { return CommonJavaRefactoringUtil.findPackageDirectoryInSourceRoot(myPackage, mySourceRoot); } | getTargetIfExists |
77,868 | String (PsiFile source) { return checkCanCreateInSourceRoot(mySourceRoot); } | verify |
77,869 | String (PsiDirectory source) { return checkCanCreateInSourceRoot(mySourceRoot); } | verify |
77,870 | String (PsiPackage aPackage) { return checkCanCreateInSourceRoot(mySourceRoot); } | verify |
77,871 | void (@NotNull final Collection<? extends PsiElement> elements, @NotNull MultiMap<PsiElement,String> conflicts, final UsageInfo[] usages) { RefactoringConflictsUtil.getInstance() .analyzeModuleConflicts(getTargetPackage().getManager().getProject(), elements, usages, mySourceRoot, conflicts); } | analyzeModuleConflicts |
77,872 | boolean (@NotNull Project project, @NotNull VirtualFile place) { final boolean inTestSourceContent = ProjectRootManager.getInstance(project).getFileIndex().isInTestSourceContent(place); final Module module = ModuleUtilCore.findModuleForFile(place, project); if (mySourceRoot != null && module != null && !GlobalSearchSco... | isTargetAccessible |
77,873 | TableCellEditor (ParameterTableModelItemBase<ParameterInfoImpl> item) { return new EditorWithExpectedType(typeContext); } | doCreateEditor |
77,874 | boolean (ParameterTableModelItemBase<ParameterInfoImpl> item) { boolean isGenerateDelegate = ((ChangeSignatureDialogBase<?, ?, ?, ?, ?, ?>)dialog).isGenerateDelegate(); return !isGenerateDelegate && super.isCellEditable(item); } | isCellEditable |
77,875 | ParameterTableModelItemBase<ParameterInfoImpl> (@Nullable ParameterInfoImpl parameterInfo) { if (parameterInfo == null) { parameterInfo = ParameterInfoImpl.createNew(); } JavaCodeFragmentFactory f = JavaCodeFragmentFactory.getInstance(myProject); final PsiTypeCodeFragment paramTypeCodeFragment = f.createTypeCodeFragmen... | createRowItem |
77,876 | boolean () { try { return paramTypeCodeFragment.getType() instanceof PsiEllipsisType; } catch (PsiTypeCodeFragment.TypeSyntaxException | PsiTypeCodeFragment.NoTypeException e) { return false; } } | isEllipsisType |
77,877 | void (Object aValue, int rowIndex, int columnIndex) { super.setValueAtWithoutUpdate(aValue, rowIndex, columnIndex); //if type was changed - update default value's expected type PsiType type = null; if (columnIndex == 0 && aValue instanceof String) { try { type = JavaPsiFacade.getElementFactory(myProject).createTypeFrom... | setValueAtWithoutUpdate |
77,878 | PsiType (JTable table, int row) { try { return ((PsiTypeCodeFragment)((JavaParameterTableModel)table.getModel()).getItems().get(row).typeCodeFragment).getType(); } catch (PsiTypeCodeFragment.TypeSyntaxException | PsiTypeCodeFragment.NoTypeException e) { return null; } } | getRowType |
77,879 | Component (final JTable table, Object value, boolean isSelected, final int row, int column) { final EditorTextField textField = (EditorTextField)super.getTableCellEditorComponent(table, value, isSelected, row, column); textField.registerKeyboardAction(new ActionListener() { @Override public void actionPerformed(ActionE... | getTableCellEditorComponent |
77,880 | void (ActionEvent e) { PsiType type = getRowType(table, row); if (type != null) { completeVariable(textField, type); } } | actionPerformed |
77,881 | void (EditorTextField editorTextField, PsiType type) { Editor editor = editorTextField.getEditor(); String prefix = editorTextField.getText(); Set<LookupElement> set = new LinkedHashSet<>(); JavaCompletionUtil.completeVariableNameForRefactoring(editorTextField.getProject(), set, prefix, type, VariableKind.PARAMETER); L... | completeVariable |
77,882 | Component (JTable table, Object value, boolean isSelected, int row, int column) { final Component editor = super.getTableCellEditorComponent(table, value, isSelected, row, column); final PsiType type = getRowType(table, row); if (type != null) { ((PsiExpressionCodeFragment)myCodeFragment).setExpectedType(type); } retur... | getTableCellEditorComponent |
77,883 | TableCellEditor (ParameterTableModelItemBase<ParameterInfoImpl> o) { return new JavaCodeFragmentTableCellEditor(myProject); } | doCreateEditor |
77,884 | TableCellEditor (ParameterTableModelItemBase<ParameterInfoImpl> o) { return new VariableCompletionTableCellEditor(myProject); } | doCreateEditor |
77,885 | TableCellRenderer (ParameterTableModelItemBase<ParameterInfoImpl> item) { return new ColoredTableCellRenderer() { @Override public void customizeCellRenderer(@NotNull JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value == null) return; if (isSelected || hasFocus) { acquire... | doCreateRenderer |
77,886 | void (@NotNull JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value == null) return; if (isSelected || hasFocus) { acquireState(table, true, false, row, column); getCellState().updateRenderer(this); setPaintFocusBorder(false); } append((String)value, new SimpleTextAttribute... | customizeCellRenderer |
77,887 | boolean () { return myCheckUnusedParameter; } | checkUnusedParameter |
77,888 | void () { myCheckUnusedParameter = true; } | setCheckUnusedParameter |
77,889 | boolean () { return isFixFieldConflicts; } | isFixFieldConflicts |
77,890 | void (boolean fixFieldConflicts) { isFixFieldConflicts = fixFieldConflicts; } | setFixFieldConflicts |
77,891 | void (PsiMethod method) { PsiParameter[] parameters = method.getParameterList().getParameters(); oldParameterNames = new String[parameters.length]; oldParameterTypes = new String[parameters.length]; PsiElementFactory factory = JavaPsiFacade.getElementFactory(method.getProject()); for (int i = 0; i < parameters.length; ... | fillOldParams |
77,892 | String () { return newVisibility; } | getNewVisibility |
77,893 | boolean () { return isParameterSetOrOrderChanged; } | isParameterSetOrOrderChanged |
77,894 | void (ThrownExceptionInfo @Nullable [] newExceptions, @NotNull PsiMethod method) { if (newExceptions == null) { newExceptions = JavaThrownExceptionInfo.extractExceptions(method); } this.newExceptions = newExceptions; PsiClassType[] types = method.getThrowsList().getReferencedTypes(); isExceptionSetChanged = newExceptio... | setupExceptions |
77,895 | void (final PsiParameter[] parameters, final ParameterInfoImpl[] newParms) { if (parameters.length >= newParms.length) { isPropagationEnabled = false; } else { isPropagationEnabled = !propagateParametersMethods.isEmpty(); for (int i = 0; i < parameters.length; i++) { final ParameterInfoImpl newParm = newParms[i]; if (n... | setupPropagationEnabled |
77,896 | PsiMethod () { return method; } | getMethod |
77,897 | void (@NotNull PsiMethod method) { this.method = method; } | updateMethod |
77,898 | Collection<PsiMethod> () { return propagateParametersMethods; } | getMethodsToPropagateParameters |
77,899 | boolean () { return isVisibilityChanged; } | isVisibilityChanged |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.