Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
12,800 | String () { return myQualifiedName; } | getQualifiedName |
12,801 | Icon (final int flags) { RowIcon baseIcon = IconManager.getInstance().createLayeredIcon(this, myBaseIcon, ElementPresentationUtil.getFlags(this, false)); return ElementPresentationUtil.addVisibilityIcon(this, flags, baseIcon); } | getElementIcon |
12,802 | TextRange () { TextRange r = super.getTextRange(); return r == null ? TextRange.EMPTY_RANGE : r; } | getTextRange |
12,803 | PsiFile () { if (null != getContainingClass()) { return getContainingClass().getContainingFile(); } return super.getContainingFile(); } | getContainingFile |
12,804 | boolean () { return myIsEnum; } | isEnum |
12,805 | List<PsiField> () { return Collections.emptyList(); } | getOwnFields |
12,806 | List<PsiMethod> () { return Collections.emptyList(); } | getOwnMethods |
12,807 | List<PsiClass> () { return Collections.emptyList(); } | getOwnInnerClasses |
12,808 | LombokLightClassBuilder (final Function<PsiClass, ? extends Collection<PsiField>> fieldSupplier) { this.fieldSupplier = fieldSupplier; return this; } | withFieldSupplier |
12,809 | LombokLightClassBuilder (final Function<PsiClass, ? extends Collection<PsiMethod>> methodSupplier) { this.methodSupplier = methodSupplier; return this; } | withMethodSupplier |
12,810 | LombokLightClassBuilder (boolean isEnum) { myIsEnum = isEnum; return this; } | withEnum |
12,811 | LombokLightClassBuilder (@PsiModifier.ModifierConstant @NotNull @NonNls String modifier) { myModifierList.addImplicitModifierProperty(modifier); return this; } | withImplicitModifier |
12,812 | LombokLightClassBuilder (@PsiModifier.ModifierConstant @NotNull @NonNls String modifier) { myModifierList.addModifier(modifier); return this; } | withModifier |
12,813 | LombokLightClassBuilder (@NotNull PsiClass containingClass) { setContainingClass(containingClass); return this; } | withContainingClass |
12,814 | LombokLightClassBuilder (PsiElement navigationElement) { setNavigationElement(navigationElement); return this; } | withNavigationElement |
12,815 | LombokLightClassBuilder (PsiClassType baseClassType) { getExtendsList().addReference(baseClassType); return this; } | withExtends |
12,816 | LombokLightClassBuilder (@Nullable PsiTypeParameterList parameterList) { if (parameterList != null) { Stream.of(parameterList.getTypeParameters()).forEach(this::withParameterType); } return this; } | withParameterTypes |
12,817 | LombokLightClassBuilder (@NotNull PsiTypeParameter psiTypeParameter) { getTypeParameterList().addParameter(psiTypeParameter); return this; } | withParameterType |
12,818 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LombokLightClassBuilder that = (LombokLightClassBuilder)o; return myQualifiedName.equals(that.myQualifiedName); } | equals |
12,819 | int () { return myQualifiedName.hashCode(); } | hashCode |
12,820 | String () { return myText; } | getText |
12,821 | void (String text) { myText = text; } | setText |
12,822 | PsiElement () { return new LightIdentifier(getManager(), getText()); } | copy |
12,823 | TextRange () { TextRange r = super.getTextRange(); return r == null ? TextRange.EMPTY_RANGE : r; } | getTextRange |
12,824 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LombokLightIdentifier that = (LombokLightIdentifier) o; return Objects.equals(myText, that.myText); } | equals |
12,825 | int () { return Objects.hash(myText); } | hashCode |
12,826 | String () { return myNameIdentifier.getText(); } | getName |
12,827 | PsiElement (@NotNull String name) { myNameIdentifier.setText(name); return this; } | setName |
12,828 | PsiIdentifier () { return myNameIdentifier; } | getNameIdentifier |
12,829 | LombokLightModifierList () { return (LombokLightModifierList)super.getModifierList(); } | getModifierList |
12,830 | LombokLightParameter (@NotNull String annotation) { getModifierList().addAnnotation(annotation); return this; } | withAnnotation |
12,831 | TextRange () { TextRange r = super.getTextRange(); return r == null ? TextRange.EMPTY_RANGE : r; } | getTextRange |
12,832 | LombokLightParameter (@NotNull String @NotNull ... modifiers) { final LombokLightModifierList lombokLightModifierList = getModifierList(); lombokLightModifierList.clearModifiers(); Stream.of(modifiers).forEach(lombokLightModifierList::addModifier); return this; } | setModifiers |
12,833 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LombokLightParameter that = (LombokLightParameter)o; if (!Objects.equals(getName(), that.getName())) { return false; } return getType().equals(that.getType()); } | equals |
12,834 | int () { return Objects.hash(getName(), getType()); } | hashCode |
12,835 | TextRange () { TextRange r = super.getTextRange(); return r == null ? TextRange.EMPTY_RANGE : r; } | getTextRange |
12,836 | boolean (@NotNull String name) { return myImplicitModifiers.contains(name) || super.hasModifierProperty(name); } | hasModifierProperty |
12,837 | void (@PsiModifier.ModifierConstant @NotNull @NonNls String implicitModifier) { myImplicitModifiers.add(implicitModifier); } | addImplicitModifierProperty |
12,838 | void (@PsiModifier.ModifierConstant @NotNull @NonNls String name) { final Collection<String> myModifiers = collectAllModifiers(); myModifiers.remove(name); clearModifiers(); for (String modifier : myModifiers) { addModifier(modifier); } } | removeModifier |
12,839 | Collection<String> () { Collection<String> result = new HashSet<>(); for (@PsiModifier.ModifierConstant String modifier : PsiModifier.MODIFIERS) { if (hasExplicitModifier(modifier)) { result.add(modifier); } } return result; } | collectAllModifiers |
12,840 | LombokLightModifierList (@NotNull PsiAnnotation psiAnnotation) { myAnnotations.put(psiAnnotation.getQualifiedName(), psiAnnotation); return this; } | withAnnotation |
12,841 | PsiAnnotation (@NotNull @NonNls String qualifiedName) { final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(getProject()); final PsiAnnotation psiAnnotation = elementFactory.createAnnotationFromText('@' + qualifiedName, null); myAnnotations.put(qualifiedName, psiAnnotation); return psiAnnotation; } | addAnnotation |
12,842 | PsiAnnotation (@NotNull String qualifiedName) { return myAnnotations.get(qualifiedName); } | findAnnotation |
12,843 | TextRange () { TextRange r = super.getTextRange(); return r == null ? TextRange.EMPTY_RANGE : r; } | getTextRange |
12,844 | String () { return "LombokLightModifierList"; } | toString |
12,845 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LombokLightModifierList that = (LombokLightModifierList) o; return myAnnotations.equals(that.myAnnotations); } | equals |
12,846 | int () { return myAnnotations.hashCode(); } | hashCode |
12,847 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LombokLightParameterListBuilder that = (LombokLightParameterListBuilder)o; if (getParametersCount() != that.getParametersCount()) { return false; } return Arrays.equals(getParameters(), that.getParameters()); } | equals |
12,848 | int () { return Arrays.hashCode(getParameters()); } | hashCode |
12,849 | LombokLightMethodBuilder (PsiElement navigationElement) { setNavigationElement(navigationElement); return this; } | withNavigationElement |
12,850 | LombokLightMethodBuilder (@PsiModifier.ModifierConstant @NotNull @NonNls String modifier) { addModifier(modifier); return this; } | withModifier |
12,851 | LombokLightMethodBuilder (@PsiModifier.ModifierConstant @NonNls String @NotNull ... modifiers) { for (String modifier : modifiers) { addModifier(modifier); } return this; } | withModifier |
12,852 | LombokLightMethodBuilder (PsiType returnType) { setMethodReturnType(returnType); return this; } | withMethodReturnType |
12,853 | LightMethodBuilder (PsiType returnType) { myReturnTypeAsText = returnType.getPresentableText(); return super.setMethodReturnType(returnType); } | setMethodReturnType |
12,854 | LombokLightMethodBuilder (@NotNull String name, @NotNull PsiType type) { final LombokLightParameter lombokLightParameter = createParameter(name, type); lombokLightParameter.setModifiers(PsiModifier.FINAL); return withParameter(lombokLightParameter); } | withFinalParameter |
12,855 | LombokLightMethodBuilder (@NotNull String name, @NotNull PsiType type) { return withParameter(createParameter(name, type)); } | withParameter |
12,856 | LombokLightParameter (@NotNull String name, @NotNull PsiType type) { return new LombokLightParameter(name, type, this, JavaLanguage.INSTANCE); } | createParameter |
12,857 | LombokLightMethodBuilder (@NotNull LombokLightParameter psiParameter) { addParameter(psiParameter); return this; } | withParameter |
12,858 | LombokLightMethodBuilder (@NotNull PsiClassType type) { addException(type); return this; } | withException |
12,859 | LombokLightMethodBuilder (@NotNull PsiClass containingClass) { setContainingClass(containingClass); return this; } | withContainingClass |
12,860 | LombokLightMethodBuilder (@NotNull PsiTypeParameter typeParameter) { addTypeParameter(typeParameter); return this; } | withTypeParameter |
12,861 | LombokLightMethodBuilder (boolean isConstructor) { setConstructor(isConstructor); return this; } | withConstructor |
12,862 | LombokLightMethodBuilder (@NotNull String codeBlockText) { myBodyAsText = codeBlockText; myBodyCodeBlock = null; return this; } | withBodyText |
12,863 | LombokLightMethodBuilder (@NotNull Function<LombokLightMethodBuilder, String> builderStringFunction) { myBuilderBodyFunction = builderStringFunction; myBodyCodeBlock = null; return this; } | withBodyText |
12,864 | LombokLightMethodBuilder () { Project project = myManager.getProject(); PsiAnnotation annotation = CachedValuesManager.getManager(project).getCachedValue(project, () -> CachedValueProvider.Result.create(JavaPsiFacade.getElementFactory(project). createAnnotationFromText('@' + JavaMethodContractUtil.ORG_JETBRAINS_ANNOTATIONS_CONTRACT + "(pure=true)", null), ModificationTracker.NEVER_CHANGED)); putUserData(LombokInferredAnnotationProvider.CONTRACT_ANNOTATION, annotation); return this; } | withPureContract |
12,865 | LombokLightMethodBuilder () { Project project = myManager.getProject(); PsiAnnotation annotation = CachedValuesManager.getManager(project).getCachedValue(project, () -> CachedValueProvider.Result.create(JavaPsiFacade.getElementFactory(project). createAnnotationFromText('@' + JavaMethodContractUtil.ORG_JETBRAINS_ANNOTATIONS_CONTRACT + "(mutates=\"this\")", null), ModificationTracker.NEVER_CHANGED)); putUserData(LombokInferredAnnotationProvider.CONTRACT_ANNOTATION, annotation); return this; } | withMutatesThisContract |
12,866 | LombokLightMethodBuilder (@NotNull String annotation) { getModifierList().addAnnotation(annotation); return this; } | withAnnotation |
12,867 | LombokLightMethodBuilder (Iterable<String> annotations) { final PsiModifierList modifierList = getModifierList(); annotations.forEach(modifierList::addAnnotation); return this; } | withAnnotations |
12,868 | LightMethodBuilder (PsiTypeParameter parameter) { ((LightTypeParameterListBuilder)getTypeParameterList()).addParameter(parameter); return this; } | addTypeParameter |
12,869 | LombokLightModifierList () { return (LombokLightModifierList)super.getModifierList(); } | getModifierList |
12,870 | LombokLightParameterListBuilder () { return (LombokLightParameterListBuilder)super.getParameterList(); } | getParameterList |
12,871 | PsiCodeBlock () { String bodyAsText = myBodyAsText; Function<LombokLightMethodBuilder, String> builderBodyFunction = myBuilderBodyFunction; if (null == myBodyCodeBlock && (bodyAsText != null || builderBodyFunction != null)) { if (bodyAsText == null) { bodyAsText = builderBodyFunction.apply(this); } final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(getProject()); myBodyCodeBlock = elementFactory.createCodeBlockFromText("{" + bodyAsText + "}", this); myBodyAsText = null; myBuilderBodyFunction = null; } return myBodyCodeBlock; } | getBody |
12,872 | PsiIdentifier () { return new LombokLightIdentifier(myManager, getName()); } | getNameIdentifier |
12,873 | PsiElement () { PsiElement result = super.getParent(); result = null != result ? result : getContainingClass(); return result; } | getParent |
12,874 | PsiFile () { PsiClass containingClass = getContainingClass(); return containingClass != null ? containingClass.getContainingFile() : null; } | getContainingFile |
12,875 | String () { ASTNode node = getNode(); if (null != node) { return node.getText(); } return ""; } | getText |
12,876 | ASTNode () { if (null == myASTNode) { final PsiElement myPsiMethod = getOrCreateMyPsiMethod(); myASTNode = null == myPsiMethod ? null : myPsiMethod.getNode(); } return myASTNode; } | getNode |
12,877 | TextRange () { TextRange r = super.getTextRange(); return r == null ? TextRange.EMPTY_RANGE : r; } | getTextRange |
12,878 | String (LightModifierList modifierList) { final StringBuilder builder = new StringBuilder(); for (String modifier : modifierList.getModifiers()) { if (!PsiModifier.PACKAGE_LOCAL.equals(modifier)) { builder.append(modifier).append(' '); } } return builder.toString(); } | getAllModifierProperties |
12,879 | PsiMethod () { PsiMethod result; try { final StringBuilder methodTextDeclaration = new StringBuilder(); methodTextDeclaration.append(getAllModifierProperties(getModifierList())); PsiType returnType = getReturnType(); if (null != returnType && returnType.isValid()) { methodTextDeclaration.append(returnType.getCanonicalText()).append(' '); } methodTextDeclaration.append(getName()); methodTextDeclaration.append('('); if (getParameterList().getParametersCount() > 0) { for (PsiParameter parameter : getParameterList().getParameters()) { methodTextDeclaration.append(parameter.getType().getCanonicalText()).append(' ').append(parameter.getName()).append(','); } methodTextDeclaration.deleteCharAt(methodTextDeclaration.length() - 1); } methodTextDeclaration.append(')'); methodTextDeclaration.append('{').append(" ").append('}'); final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(getManager().getProject()); result = elementFactory.createMethodFromText(methodTextDeclaration.toString(), getContainingClass()); if (null != getBody()) { result.getBody().replace(getBody()); } } catch (Exception ex) { result = null; } return result; } | rebuildMethodFromString |
12,880 | PsiElement () { final PsiElement myPsiMethod = getOrCreateMyPsiMethod(); return null == myPsiMethod ? null : myPsiMethod.copy(); } | copy |
12,881 | PsiElement () { if (null == myMethod) { myMethod = rebuildMethodFromString(); } return myMethod; } | getOrCreateMyPsiMethod |
12,882 | String () { return "LombokLightMethodBuilder: " + getName(); } | toString |
12,883 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LombokLightMethodBuilder that = (LombokLightMethodBuilder)o; if (!getName().equals(that.getName())) { return false; } if (isConstructor() != that.isConstructor()) { return false; } final PsiClass containingClass = getContainingClass(); final PsiClass thatContainingClass = that.getContainingClass(); if (!Objects.equals(containingClass, thatContainingClass)) { return false; } if (!getModifierList().equals(that.getModifierList())) { return false; } if (!getParameterList().equals(that.getParameterList())) { return false; } return Objects.equals(myReturnTypeAsText, that.myReturnTypeAsText); } | equals |
12,884 | int () { // should be constant because of RenameJavaMethodProcessor#renameElement and fixNameCollisionsWithInnerClassMethod(...) return 1; } | hashCode |
12,885 | LombokLightModifierList () { return myModifierList; } | getModifierList |
12,886 | LombokLightFieldBuilder (@NotNull String @NotNull ... modifiers) { myModifierList.clearModifiers(); Stream.of(modifiers).forEach(myModifierList::addModifier); return this; } | setModifiers |
12,887 | LombokLightFieldBuilder (LightModifierList modifierList) { setModifiers(modifierList.getModifiers()); return this; } | setModifierList |
12,888 | boolean (@NonNls @NotNull String name) { return myModifierList.hasModifierProperty(name); } | hasModifierProperty |
12,889 | PsiFile () { PsiClass containingClass = getContainingClass(); return containingClass != null ? containingClass.getContainingFile() : null; } | getContainingFile |
12,890 | LombokLightFieldBuilder (PsiClass psiClass) { setContainingClass(psiClass); return this; } | withContainingClass |
12,891 | LombokLightFieldBuilder (@PsiModifier.ModifierConstant @NotNull @NonNls String modifier) { myModifierList.addImplicitModifierProperty(modifier); return this; } | withImplicitModifier |
12,892 | LombokLightFieldBuilder (@PsiModifier.ModifierConstant @NotNull @NonNls String modifier) { myModifierList.addModifier(modifier); return this; } | withModifier |
12,893 | LombokLightFieldBuilder (@NotNull String annotation) { myModifierList.addAnnotation(annotation); return this; } | withAnnotation |
12,894 | LombokLightFieldBuilder (PsiElement navigationElement) { setNavigationElement(navigationElement); return this; } | withNavigationElement |
12,895 | String () { return myName; } | getName |
12,896 | PsiElement (@NotNull String name) { myName = name; myNameIdentifier.setText(myName); return this; } | setName |
12,897 | PsiIdentifier () { return myNameIdentifier; } | getNameIdentifier |
12,898 | String () { return "LombokLightFieldBuilder: " + getName(); } | toString |
12,899 | TextRange () { TextRange r = super.getTextRange(); return r == null ? TextRange.EMPTY_RANGE : r; } | getTextRange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.