Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
44,100 | boolean () { return isValidTemplate(template); } | isValidTemplate |
44,101 | boolean (String template) { template = template.trim(); if (template.indexOf('{') == -1) { return false; } // ending } must be the last character String s = template.trim(); if (s.lastIndexOf('} | isValidTemplate |
44,102 | String () { return className; } | getClassName |
44,103 | String () { return fileName != null ? fileName : template; } | toString |
44,104 | boolean (Object o) { if (this == o) return true; if (!(o instanceof TemplateResource that)) return false; return fileName.equals(that.fileName) && template.equals(that.template); } | equals |
44,105 | int () { return 31 * fileName.hashCode() + template.hashCode(); } | hashCode |
44,106 | TemplatesManager () { return ApplicationManager.getApplication().getService(ToStringTemplatesManager.class); } | getInstance |
44,107 | List<TemplateResource> () { try { return Arrays.asList(new TemplateResource("String concat (+)", readFile(DEFAULT_CONCAT), true), new TemplateResource("String concat (+) and super.toString()", readFile(DEFAULT_CONCAT_SUPER), true), new TemplateResource("StringBuffer", readFile(DEFAULT_BUFFER), true), new TemplateResour... | getDefaultTemplates |
44,108 | ConflictResolutionPolicy (String targetMethodName) { int exit = Messages.showYesNoCancelDialog( JavaBundle.message("generate.tostring.method.already.exists.dialog.me=ssage", targetMethodName), JavaBundle.message("generate.tostring.method.already.exists.dialog.title"), Messages.getQuestionIcon()); if (exit == Messages.C... | showDialog |
44,109 | String (TemplateResource templateResource) { return templateResource.getFileName(); } | getName |
44,110 | boolean (TemplateResource item) { return !item.isDefault(); } | canRename |
44,111 | void (TemplateResource templateResource, String name) { templateResource.setFileName(name); } | setName |
44,112 | TemplateResource (TemplateResource templateResource) { if (templateResource.isDefault()) return templateResource; return copyOf(templateResource); } | cloneOf |
44,113 | TemplateResource (TemplateResource templateResource) { TemplateResource result = new TemplateResource(); result.setFileName(templateResource.getFileName()); result.setTemplate(templateResource.getTemplate()); return result; } | copyOf |
44,114 | void (@NlsContexts.HintText String hint) { myHint = hint; } | setHint |
44,115 | String () { return JavaBundle.message("configurable.TemplatesPanel.display.name"); } | getDisplayName |
44,116 | String () { return JavaBundle.message("dialog.title.copy.template"); } | getCopyDialogTitle |
44,117 | String () { return JavaBundle.message("dialog.title.create.new.template"); } | getCreateNewDialogTitle |
44,118 | String () { return "Templates_Dialog"; } | getHelpTopic |
44,119 | boolean () { return super.isModified() || !Comparing.equal(myTemplatesManager.getDefaultTemplate(), getSelectedItem()); } | isModified |
44,120 | boolean (TemplateResource item) { return !item.isDefault(); } | canDelete |
44,121 | UnnamedConfigurable (TemplateResource item) { final GenerateTemplateConfigurable configurable = new GenerateTemplateConfigurable(item, Collections.emptyMap(), myProject, onMultipleFields()); configurable.setHint(myHint); return configurable; } | createConfigurable |
44,122 | boolean () { return true; } | onMultipleFields |
44,123 | void (@Nls String hint) { myHint = hint; } | setHint |
44,124 | JComponent () { final JComponent component = myEditor.getComponent(); if (availableImplicits.isEmpty() && myHint == null) { return component; } final JPanel panel = new JPanel(new BorderLayout()); panel.add(component, BorderLayout.CENTER); String availableVariables = JavaBundle.message("generate.tostring.available.impl... | createComponent |
44,125 | boolean () { return !Objects.equals(myEditor.getDocument().getText(), template.getTemplate()); } | isModified |
44,126 | void () { WriteCommandAction.writeCommandAction(null).run(() -> myEditor.getDocument().setText(template.getTemplate())); } | reset |
44,127 | void () { EditorFactory.getInstance().releaseEditor(myEditor); } | disposeUIResources |
44,128 | void () { JPanel header = new JPanel(new BorderLayout()); header.add(initSettingPanel(), BorderLayout.WEST); add(header, BorderLayout.NORTH); } | init |
44,129 | JPanel () { GridBagConstraints constraint = new GridBagConstraints(); JPanel outer = new JPanel(new GridBagLayout()); // UI Layout - Settings JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); panel.setBorder(IdeBorderFactory.createTitledBorder(JavaBundle.message("generate.tostring.se... | initSettingPanel |
44,130 | void (Config config) { fullyQualifiedName.setSelected(config.isUseFullyQualifiedName()); DuplicationPolicy option = config.getReplaceDialogInitialOption(); for (JRadioButton anInitialValueForReplaceDialog : initialValueForReplaceDialog) { ConflictResolutionOptionAction action = (ConflictResolutionOptionAction)anInitial... | setConfig |
44,131 | String (final String s) { if (s != null && s.length() == 0) return null; return s; } | emptyToNull |
44,132 | Config () { Config config = new Config(); config.setUseFullyQualifiedName(fullyQualifiedName.isSelected()); for (JRadioButton anInitialValueForReplaceDialog : initialValueForReplaceDialog) { if (anInitialValueForReplaceDialog.isSelected()) { config.setReplaceDialogInitialOption(((ConflictResolutionOptionAction) anIniti... | getConfig |
44,133 | void (ActionEvent e) { } | actionPerformed |
44,134 | void (ActionEvent e) { } | actionPerformed |
44,135 | void (ActionEvent e) { sortElementsComboBox.setEnabled(sortElements.isSelected()); } | actionPerformed |
44,136 | DuplicatePolicy () { return instance; } | getInstance |
44,137 | void (InsertNewMethodStrategy strategy) { newMethodStrategy = strategy; } | setNewMethodStrategy |
44,138 | PsiMethod (PsiClass clazz, PsiMethod existingMethod, @NotNull PsiMethod newMethod, Editor editor) { return newMethodStrategy.insertNewMethod(clazz, newMethod, editor); } | applyMethod |
44,139 | String () { return "Duplicate"; } | toString |
44,140 | ReplacePolicy () { return instance; } | getInstance |
44,141 | void (InsertNewMethodStrategy strategy) { DuplicatePolicy.getInstance().setNewMethodStrategy(strategy); } | setNewMethodStrategy |
44,142 | String () { return "Replace existing"; } | toString |
44,143 | InsertAfterEqualsHashCodeStrategy () { return instance; } | getInstance |
44,144 | PsiMethod (PsiClass clazz, @NotNull PsiMethod newMethod, Editor editor) { PsiMethod methodHashCode = PsiAdapter.findHashCodeMethod(clazz); PsiMethod methodEquals = PsiAdapter.findEqualsMethod(clazz); // if both methods exist determine the last method in the javafile PsiMethod method; if (methodEquals != null && methodH... | insertNewMethod |
44,145 | String () { return "After equals/hashCode"; } | toString |
44,146 | InsertAtCaretStrategy () { return instance; } | getInstance |
44,147 | PsiMethod (PsiClass clazz, @NotNull PsiMethod newMethod, Editor editor) { int offset = (editor != null) ? editor.getCaretModel().getOffset() : (clazz.getTextRange().getEndOffset() - 1); final PsiGenerationInfo<PsiMethod> generationInfo = new PsiGenerationInfo<>(newMethod, false); GenerateMembersUtil.insertMembersAtOffs... | insertNewMethod |
44,148 | String () { return "At caret"; } | toString |
44,149 | boolean (String interfaceName) { for (String className : implementNames) { if (interfaceName.contains(className)) { return true; } } return false; } | isImplements |
44,150 | boolean (String classNames) { return classNames.contains(superName); } | isExtends |
44,151 | String[] () { return implementNames; } | getImplementNames |
44,152 | void (String[] implementNames) { this.implementNames = implementNames; } | setImplementNames |
44,153 | String () { return superQualifiedName; } | getSuperQualifiedName |
44,154 | void (String superQualifiedName) { this.superQualifiedName = superQualifiedName; } | setSuperQualifiedName |
44,155 | String () { return superName; } | getSuperName |
44,156 | void (String superName) { this.superName = superName; } | setSuperName |
44,157 | String () { return name; } | getName |
44,158 | void (String name) { this.name = name; } | setName |
44,159 | String () { return qualifiedName; } | getQualifiedName |
44,160 | void (String FQClassname) { this.qualifiedName = FQClassname; } | setQualifiedName |
44,161 | boolean () { return this.superName != null; } | isHasSuper |
44,162 | boolean () { return deprecated; } | isDeprecated |
44,163 | void (boolean deprecated) { this.deprecated = deprecated; } | setDeprecated |
44,164 | boolean () { return _enum; } | isEnum |
44,165 | void (boolean aEnum) { this._enum = aEnum; } | setEnum |
44,166 | boolean () { return exception; } | isException |
44,167 | void (boolean exception) { this.exception = exception; } | setException |
44,168 | boolean () { return _abstract; } | isAbstract |
44,169 | void (boolean aAbstract) { this._abstract = aAbstract; } | setAbstract |
44,170 | String () { return "ClassElement{" + "name='" + name + "'" + ", qualifiedName='" + qualifiedName + "'" + ", superName='" + superName + "'" + ", superQualifiedName='" + superQualifiedName + "'" + ", implementNames=" + (implementNames == null ? null : Arrays.asList(implementNames)) + ", enum=" + _enum + ", deprecated=" +... | toString |
44,171 | void (int typeParams) { myTypeParams = typeParams; } | setTypeParams |
44,172 | int () { return myTypeParams; } | getTypeParams |
44,173 | String () { return accessor; } | getAccessor |
44,174 | boolean () { return isConstant; } | isConstant |
44,175 | boolean () { return isModifierTransient; } | isModifierTransient |
44,176 | boolean () { return isModifierVolatile; } | isModifierVolatile |
44,177 | boolean () { return isEnum; } | isEnum |
44,178 | boolean () { return isRecordComponent; } | isRecordComponent |
44,179 | void (boolean recordComponent) { isRecordComponent = recordComponent; } | setRecordComponent |
44,180 | void (boolean anEnum) { isEnum = anEnum; } | setEnum |
44,181 | String () { return super.toString() + " ::: FieldElement{" + "isConstant=" + isConstant + ", isEnum=" + isEnum + ", isModifierTransient=" + isModifierTransient + ", isModifierVolatile=" + isModifierVolatile + "}"; } | toString |
44,182 | void (String accessor) { this.accessor = accessor; } | setAccessor |
44,183 | String () { return name; } | getName |
44,184 | boolean () { return isArray; } | isArray |
44,185 | boolean () { return isNestedArray; } | isNestedArray |
44,186 | void (boolean isNestedArray) { this.isNestedArray = isNestedArray; } | setNestedArray |
44,187 | boolean () { return isCollection; } | isCollection |
44,188 | boolean () { return isMap; } | isMap |
44,189 | boolean () { return isPrimitive; } | isPrimitive |
44,190 | boolean () { return isString; } | isString |
44,191 | boolean () { return isPrimitiveArray; } | isPrimitiveArray |
44,192 | boolean () { return isObjectArray; } | isObjectArray |
44,193 | boolean () { return isNumeric; } | isNumeric |
44,194 | boolean () { return isObject; } | isObject |
44,195 | boolean () { return isDate; } | isDate |
44,196 | boolean () { return isSet; } | isSet |
44,197 | boolean () { return isList; } | isList |
44,198 | boolean () { return isStringArray; } | isStringArray |
44,199 | boolean () { return isCalendar; } | isCalendar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.