Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
13,200 | void (@NotNull LombokLightMethodBuilder methodBuilder, @NotNull PsiType psiFieldType, @NotNull String singularName) { final PsiManager psiManager = methodBuilder.getManager(); final PsiType elementType = PsiTypeUtil.extractAllElementType(psiFieldType, psiManager); final PsiType collectionType = PsiTypeUtil.createCollec... | addAllMethodParameter |
13,201 | String (@NotNull BuilderInfo info) { final String codeBlockFormat = "this.{0} = null;\n" + "return {1};"; return MessageFormat.format(codeBlockFormat, info.getFieldName(), info.getBuilderChainResult()); } | getClearMethodBody |
13,202 | String (@NotNull String singularName, @NotNull BuilderInfo info) { final String codeBlockTemplate = """ if (this.{0} == null) this.{0} = {2}.{3};\s this.{0}.add({1}); return {4};"""; return MessageFormat.format(codeBlockTemplate, info.getFieldName(), singularName, typeCollectionQualifiedName, sortedCollection ? "natura... | getOneMethodBody |
13,203 | String (@NotNull String singularName, @NotNull BuilderInfo info) { final String codeBlockTemplate = """ if({0}==null)'{'throw new NullPointerException("{0} cannot be null");'}' if (this.{0} == null) this.{0} = {1}.{2};\s this.{0}.addAll({0}); return {3};"""; return MessageFormat.format(codeBlockTemplate, singularName, ... | getAllMethodBody |
13,204 | String (@NotNull PsiVariable psiVariable, @NotNull String fieldName, @NotNull String builderVariable) { final PsiManager psiManager = psiVariable.getManager(); final PsiType psiFieldType = psiVariable.getType(); final PsiType elementType = PsiTypeUtil.extractOneElementType(psiFieldType, psiManager); return MessageForma... | renderBuildCode |
13,205 | String (@NotNull BuilderInfo info) { return typeCollectionQualifiedName + '.' + "builder()"; } | getEmptyCollectionCall |
13,206 | Collection<PsiField> (@NotNull BuilderInfo info) { Collection<PsiField> result = new ArrayList<>(); result.add(new LombokLightFieldBuilder(info.getManager(), info.renderFieldName(), info.getFieldType()) .withContainingClass(info.getBuilderClass()) .withModifier(PsiModifier.PRIVATE) .withNavigationElement(info.getVariab... | renderBuilderFields |
13,207 | Collection<PsiMethod> (@NotNull BuilderInfo info) { final String blockText = getAllMethodBody(info); final String methodName = calcBuilderMethodName(info); final LombokLightMethodBuilder methodBuilder = new LombokLightMethodBuilder(info.getManager(), methodName) .withContainingClass(info.getBuilderClass()) .withMethodR... | renderBuilderMethod |
13,208 | List<String> (@NotNull String fieldName, @NotNull String prefix, @Nullable PsiAnnotation singularAnnotation, CapitalizationStrategy capitalizationStrategy) { return Collections.singletonList(LombokUtils.buildAccessorName(prefix, fieldName, capitalizationStrategy)); } | getBuilderMethodNames |
13,209 | String (PsiAnnotation singularAnnotation, String psiFieldName) { return psiFieldName; } | createSingularName |
13,210 | String (@NotNull BuilderInfo info) { StringBuilder codeBlockTemplate = new StringBuilder("this.{0} = {1};\n"); if (info.hasBuilderDefaultAnnotation()) { codeBlockTemplate.append("this.{2} = true;\n"); } codeBlockTemplate.append("return {3};"); return MessageFormat.format(codeBlockTemplate.toString(), info.renderFieldNa... | getAllMethodBody |
13,211 | String (@NotNull BuilderInfo info) { if (info.hasBuilderDefaultAnnotation()) { return MessageFormat.format( """ {0} {1} = this.{1}; if (!this.{2}) '{' {1} = {4}.{3}(); '}'""", info.getFieldType().getCanonicalText(false), info.renderFieldName(), info.renderFieldDefaultSetName(), info.renderFieldDefaultProviderName(), in... | renderBuildPrepare |
13,212 | String (@NotNull BuilderInfo info) { if (info.hasBuilderDefaultAnnotation()) { return info.renderFieldName(); } else { return "this." + info.renderFieldName(); } } | renderBuildCall |
13,213 | AccessorsInfo (boolean fluentValue, boolean chainValue, boolean makeFinal, boolean doNotUseIsPrefix, CapitalizationStrategy capitalizationStrategy, String... prefixes) { return new AccessorsInfo(fluentValue, chainValue, makeFinal, doNotUseIsPrefix, capitalizationStrategy, prefixes); } | build |
13,214 | AccessorsInfo (@Nullable PsiClass psiClass, @Nullable Boolean chainDeclaredValue, @Nullable Boolean fluentDeclaredValue, @Nullable Boolean makeFinalDeclaredValue, @NotNull Collection<String> prefixDeclared) { final boolean isFluent; final boolean isChained; final boolean makeFinal; final boolean doNotUseIsPrefix; final... | buildAccessorsInfo |
13,215 | record (Boolean chainDeclaredValue, Boolean fluentDeclaredValue, Boolean makeFinalDeclaredValue, Collection<String> prefixes) { private AccessorsValues() { this(null, null, null, Collections.emptyList()); } private AccessorsValues combine(AccessorsValues defaults) { Boolean combinedChain = chainDeclaredValue; Boolean c... | AccessorsValues |
13,216 | AccessorsValues (AccessorsValues defaults) { Boolean combinedChain = chainDeclaredValue; Boolean combinedFluent = fluentDeclaredValue; Boolean combinedMakeFinal = makeFinalDeclaredValue; Collection<String> combinedPrefixes = prefixes; if (combinedChain == null && null != defaults.chainDeclaredValue) { combinedChain = d... | combine |
13,217 | AccessorsValues (@NotNull PsiAnnotation accessorsAnnotation) { Boolean chainDeclaredValue = PsiAnnotationUtil.getDeclaredBooleanAnnotationValue(accessorsAnnotation, CHAIN_VALUE); Boolean fluentDeclaredValue = PsiAnnotationUtil.getDeclaredBooleanAnnotationValue(accessorsAnnotation, FLUENT_VALUE); Boolean makeFinalDeclar... | collectValues |
13,218 | AccessorsInfo (@Nullable PsiClass psiClass, AccessorsValues values) { return buildAccessorsInfo(psiClass, values.chainDeclaredValue, values.fluentDeclaredValue, values.makeFinalDeclaredValue, values.prefixes); } | buildFrom |
13,219 | AccessorsInfo (@NotNull PsiField psiField) { final AccessorsValues fieldAccessorsValues = getAccessorsValues(psiField); final AccessorsValues classAccessorsValues = getAccessorsValues(psiField.getContainingClass()); final AccessorsValues combinedAccessorValues = fieldAccessorsValues.combine(classAccessorsValues); final... | buildFor |
13,220 | AccessorsInfo (@NotNull PsiClass psiClass) { AccessorsValues resultAccessorsValues = getAccessorsValues(psiClass); return buildFrom(psiClass, resultAccessorsValues); } | buildFor |
13,221 | AccessorsValues (@NotNull PsiField psiField) { AccessorsValues accessorsValues = new AccessorsValues(); final PsiAnnotation accessorsFieldAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiField, LombokClassNames.ACCESSORS); if (null != accessorsFieldAnnotation) { accessorsValues = collectValues(accessorsFieldAnnot... | getAccessorsValues |
13,222 | AccessorsValues (@Nullable PsiClass psiClass) { AccessorsValues resultAccessorsValues = new AccessorsValues(); PsiClass containingClass = psiClass; while (null != containingClass) { final PsiAnnotation accessorsClassAnnotation = PsiAnnotationSearchUtil.findAnnotation(containingClass, LombokClassNames.ACCESSORS); if (nu... | getAccessorsValues |
13,223 | AccessorsInfo (@NotNull PsiField psiField, AccessorsValues classAccessorsValues) { final AccessorsValues fieldAccessorsValues = getAccessorsValues(psiField); final AccessorsValues combinedAccessorValues = fieldAccessorsValues.combine(classAccessorsValues); final PsiClass containingClass = psiField.getContainingClass();... | buildFor |
13,224 | boolean () { return fluent; } | isFluent |
13,225 | AccessorsInfo (boolean fluentValue) { if (fluent == fluentValue) { return this; } return build(fluentValue, chain, makeFinal, doNotUseIsPrefix, capitalizationStrategy, prefixes); } | withFluent |
13,226 | boolean () { return chain; } | isChain |
13,227 | boolean () { return makeFinal; } | isMakeFinal |
13,228 | boolean () { return doNotUseIsPrefix; } | isDoNotUseIsPrefix |
13,229 | CapitalizationStrategy () { return capitalizationStrategy; } | getCapitalizationStrategy |
13,230 | String[] () { return prefixes; } | getPrefixes |
13,231 | boolean (String fieldName) { if (prefixes.length == 0) { return false; } for (String prefix : prefixes) { if (canPrefixApply(fieldName, prefix)) { return false; } } return true; } | isPrefixUnDefinedOrNotStartsWith |
13,232 | String (String fieldName) { for (String prefix : prefixes) { if (canPrefixApply(fieldName, prefix)) { return prefix.isEmpty() ? fieldName : decapitalizeLikeLombok(fieldName.substring(prefix.length())); } } return fieldName; } | removePrefix |
13,233 | boolean (String fieldName, String prefix) { final int prefixLength = prefix.length(); // we can use digits and upper case letters after a prefix, but not lower case letters return prefixLength == 0 || fieldName.startsWith(prefix) && fieldName.length() > prefixLength && (!Character.isLetter(prefix.charAt(prefix.length()... | canPrefixApply |
13,234 | String (String name) { if (name == null || name.isEmpty()) { return name; } char[] chars = name.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } | decapitalizeLikeLombok |
13,235 | RequiredArgsConstructorProcessor () { return LombokProcessorManager.getInstance().getRequiredArgsConstructorProcessor(); } | getRequiredArgsConstructorProcessor |
13,236 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField) { final AccessorsInfo accessorsInfo = AccessorsInfo.buildFor(psiField); final String generatedElementName = LombokUtils.getWitherName(psiField, accessorsInfo); return Collections.singletonList(generatedElem... | getNamesOfPossibleGeneratedElements |
13,237 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink builder) { validateOnXAnnotations(psiAnnotation, psiField, builder, "onParam"); boolean valid = validateVisibility(psiAnnotation); valid &= validName(psiField, builder); valid &= validNonStatic(psiField, builder); valid &= v... | validate |
13,238 | boolean (@NotNull PsiAnnotation psiAnnotation) { final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); return null != methodVisibility; } | validateVisibility |
13,239 | void (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { String methodModifier = LombokProcessorUtil.getMethodModifier(psiAnnotation); if (methodModifier != null) { AccessorsInfo accessorsInfo = buildAccessorsInfo(psiField); PsiMethod... | generatePsiElements |
13,240 | boolean (@NotNull PsiField psiField, @NotNull ProblemSink builder) { if (psiField.getName().startsWith(LombokUtils.LOMBOK_INTERN_FIELD_MARKER)) { builder.addWarningMessage("inspection.message.not.generating.wither.for.this.field.withers"); return false; } return true; } | validName |
13,241 | boolean (@NotNull PsiField psiField, @NotNull final ProblemSink builder) { if (psiField.hasModifierProperty(PsiModifier.STATIC)) { builder.addWarningMessage("inspection.message.not.generating.wither") .withLocalQuickFixes(()->PsiQuickFixFactory.createModifierListFix(psiField, PsiModifier.STATIC, false, false)); return ... | validNonStatic |
13,242 | boolean (@NotNull PsiField psiField, @NotNull ProblemSink builder) { final PsiClass psiClass = psiField.getContainingClass(); if (null != psiClass && psiField.hasModifierProperty(PsiModifier.FINAL) && !PsiAnnotationSearchUtil.isAnnotatedWith(psiClass, LombokClassNames.VALUE) && psiField.hasInitializer() && !PsiAnnotati... | validNonFinalInitialized |
13,243 | boolean (@NotNull PsiField psiField, @NotNull final ProblemSink builder) { final PsiClass fieldContainingClass = psiField.getContainingClass(); if (fieldContainingClass != null) { final Collection<PsiMethod> classMethods = PsiClassUtil.collectClassMethodsIntern(fieldContainingClass); filterToleratedElements(classMethod... | validIsWitherUnique |
13,244 | boolean (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isRecord() || PsiAnnotationSearchUtil.isAnnotatedWith(psiClass, LombokClassNames.ALL_ARGS_CONSTRUCTOR, LombokClassNames.VALUE, LombokClassNames.BUILDER)) { return true; } final Collection<PsiField> constructorParameters = filterFields(psi... | validConstructor |
13,245 | Collection<PsiField> (@NotNull PsiClass psiClass) { final Collection<PsiField> psiFields = PsiClassUtil.collectClassFieldsIntern(psiClass); Collection<PsiField> result = new ArrayList<>(psiFields.size()); for (PsiField classField : psiFields) { final String classFieldName = classField.getName(); if (classFieldName.star... | filterFields |
13,246 | PsiMethod (@NotNull PsiField psiField, @NotNull String methodModifier, @NotNull AccessorsInfo accessorsInfo) { LombokLightMethodBuilder methodBuilder = null; final PsiClass psiFieldContainingClass = psiField.getContainingClass(); if (psiFieldContainingClass != null) { final PsiType returnType = PsiClassUtil.getTypeWith... | createWitherMethod |
13,247 | AccessorsInfo (@NotNull PsiField psiField) { return AccessorsInfo.buildFor(psiField).withFluent(false); } | buildAccessorsInfo |
13,248 | String (@NotNull PsiField psiField, @NotNull PsiClass psiClass) { final StringBuilder paramString = new StringBuilder(); final Collection<PsiField> psiFields = filterFields(psiClass); for (PsiField classField : psiFields) { final String classFieldName = classField.getName(); if (classField.equals(psiField)) { paramStri... | getConstructorCall |
13,249 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { return LombokPsiElementUsage.READ_WRITE; } | checkFieldUsage |
13,250 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField) { return Collections.emptyList(); } | getNamesOfPossibleGeneratedElements |
13,251 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink builder) { final PsiType psiFieldType = psiField.getType(); return DelegateHandler.validate(psiField, psiFieldType, psiAnnotation, builder); } | validate |
13,252 | void (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { DelegateHandler.generateElements(psiField, psiField.getType(), psiAnnotation, target); } | generatePsiElements |
13,253 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { return LombokPsiElementUsage.READ; } | checkFieldUsage |
13,254 | boolean (@Nullable String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField) { if (null == nameHint) { return true; } final Collection<String> namesOfGeneratedElements = getNamesOfPossibleGeneratedElements(psiClass, psiAnnotation, psiField); return namesOfGeneratedEl... | possibleToGenerateElementNamed |
13,255 | Collection<PsiAnnotation> (@NotNull PsiClass psiClass) { List<PsiAnnotation> result = new ArrayList<>(); for (PsiField psiField : PsiClassUtil.collectClassFieldsIntern(psiClass)) { PsiAnnotation psiAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiField, getSupportedAnnotationClasses()); if (null != psiAnnotation)... | collectProcessedAnnotations |
13,256 | Collection<LombokProblem> (@NotNull PsiAnnotation psiAnnotation) { Collection<LombokProblem> result = Collections.emptyList(); PsiField psiField = PsiTreeUtil.getParentOfType(psiAnnotation, PsiField.class); if (null != psiField) { ProblemValidationSink problemNewBuilder = new ProblemValidationSink(); validate(psiAnnota... | verifyAnnotation |
13,257 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink problemSink, @NotNull String parameterName) { if (problemSink.deepValidation()) { final @NotNull List<PsiAnnotation> copyableAnnotations = LombokCopyableAnnotations.BASE_COPYABLE.collectCopyableAnnotations(psiField); if (!copya... | validateOnXAnnotations |
13,258 | boolean (@NotNull PsiField psiField, @NotNull ProblemSink builder, boolean isGetter) { final PsiClass psiClass = psiField.getContainingClass(); if (null != psiClass) { //cache signatures to speed up editing of big files, where getName goes in psi tree List<MethodSignatureBackedByPsiMethod> ownSignatures = CachedValuesM... | validateExistingMethods |
13,259 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField) { final AccessorsInfo accessorsInfo = AccessorsInfo.buildFor(psiField); final String generatedElementName = LombokUtils.getSetterName(psiField, accessorsInfo); return Collections.singletonList(generatedElem... | getNamesOfPossibleGeneratedElements |
13,260 | void (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); final PsiClass psiClass = psiField.getContainingClass(); if (methodVisibility != null && ps... | generatePsiElements |
13,261 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink builder) { boolean result; validateOnXAnnotations(psiAnnotation, psiField, builder, "onParam"); result = validateFinalModifier(psiAnnotation, psiField, builder); if (result) { result = validateVisibility(psiAnnotation); if (... | validate |
13,262 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink builder) { boolean result = true; if (psiField.hasModifierProperty(PsiModifier.FINAL) && null != LombokProcessorUtil.getMethodModifier(psiAnnotation)) { builder.addWarningMessage("inspection.message.not.generating.setter.for... | validateFinalModifier |
13,263 | boolean (@NotNull PsiAnnotation psiAnnotation) { final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); return null != methodVisibility; } | validateVisibility |
13,264 | boolean (@NotNull PsiField psiField, @NotNull ProblemSink builder) { boolean result = true; if (AccessorsInfo.buildFor(psiField).isPrefixUnDefinedOrNotStartsWith(psiField.getName())) { builder.addWarningMessage("inspection.message.not.generating.setter.for.this.field.it"); result = false; } return result; } | validateAccessorPrefix |
13,265 | Collection<String> (@NotNull PsiField psiField, boolean isBoolean) { final AccessorsInfo accessorsInfo = AccessorsInfo.buildFor(psiField); return LombokUtils.toAllSetterNames(accessorsInfo, psiField.getName(), isBoolean); } | getAllSetterNames |
13,266 | PsiMethod (@NotNull PsiField psiField, @NotNull PsiClass psiClass, @NotNull String methodModifier, @Nullable String nameHint) { final String fieldName = psiField.getName(); final PsiType psiFieldType = psiField.getType(); final PsiAnnotation setterAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiField, LombokClas... | createSetterMethod |
13,267 | String (@NotNull PsiField psiField, @NotNull PsiClass psiClass, PsiType returnType, boolean isStatic, PsiParameter methodParameter) { final String blockText; final String thisOrClass = isStatic ? psiClass.getName() : "this"; blockText = String.format("%s.%s = %s; ", thisOrClass, psiField.getName(), methodParameter.getN... | createCodeBlockText |
13,268 | PsiType (@NotNull PsiField psiField, boolean isChained) { PsiType result = PsiTypes.voidType(); if (!psiField.hasModifierProperty(PsiModifier.STATIC) && isChained) { final PsiClass fieldClass = psiField.getContainingClass(); if (null != fieldClass) { result = PsiClassUtil.getTypeWithGenerics(fieldClass); } } return res... | getReturnType |
13,269 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { return LombokPsiElementUsage.WRITE; } | checkFieldUsage |
13,270 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField) { final AccessorsInfo accessorsInfo = AccessorsInfo.buildFor(psiField); final String generatedElementName = LombokUtils.getGetterName(psiField, accessorsInfo); return Collections.singletonList(generatedElem... | getNamesOfPossibleGeneratedElements |
13,271 | void (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); final PsiClass psiClass = psiField.getContainingClass(); if (null != methodVisibility && nu... | generatePsiElements |
13,272 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink builder) { boolean result; final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); result = null != methodVisibility; final boolean lazy = isLazyGetter(psiAnnotation); if (null == methodVisibili... | validate |
13,273 | boolean (@NotNull PsiAnnotation psiAnnotation) { return PsiAnnotationUtil.getBooleanAnnotationValue(psiAnnotation, "lazy", false); } | isLazyGetter |
13,274 | boolean (@NotNull PsiField psiField, @NotNull ProblemSink builder) { boolean result = true; if (AccessorsInfo.buildFor(psiField).isPrefixUnDefinedOrNotStartsWith(psiField.getName())) { builder.addWarningMessage("inspection.message.not.generating.getter.for.this.field"); result = false; } return result; } | validateAccessorPrefix |
13,275 | PsiMethod (@NotNull PsiField psiField, @NotNull PsiClass psiClass, @NotNull String methodModifier, @Nullable String nameHint) { final AccessorsInfo accessorsInfo = AccessorsInfo.buildFor(psiField); final String methodName = LombokUtils.getGetterName(psiField, accessorsInfo); if (nameHint != null && !nameHint.equals(met... | createGetterMethod |
13,276 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { return LombokPsiElementUsage.READ; } | checkFieldUsage |
13,277 | boolean (@NotNull PsiAnnotation psiAnnotation) { // old version of @FieldNameConstants has attributes "prefix" and "suffix", the new one not return null != psiAnnotation.findAttributeValue("prefix"); } | supportAnnotationVariant |
13,278 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField) { final String generatedElementName = calcFieldConstantName(psiField, psiAnnotation, psiClass); return List.of(generatedElementName); } | getNamesOfPossibleGeneratedElements |
13,279 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink builder) { return LombokProcessorUtil.isLevelVisible(psiAnnotation) && checkIfFieldNameIsValidAndWarn(psiAnnotation, psiField, builder); } | validate |
13,280 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField, @NotNull ProblemSink builder) { final boolean isValid = isValidFieldNameConstant(psiAnnotation, psiField); if (!isValid) { builder.addWarningMessage("inspection.message.not.generating.constant"); } return isValid; } | checkIfFieldNameIsValidAndWarn |
13,281 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiField psiField) { final PsiClass psiClass = psiField.getContainingClass(); if (null != psiClass) { final String fieldName = calcFieldConstantName(psiField, psiAnnotation, psiClass); return !fieldName.equals(psiField.getName()); } return false; } | isValidFieldNameConstant |
13,282 | void (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { final PsiClass psiClass = psiField.getContainingClass(); if (null != psiClass) { target.add(createFieldNameConstant(psiField, psiClass, psiAnnotation)); } } | generatePsiElements |
13,283 | PsiField (@NotNull PsiField psiField, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { final PsiManager manager = psiClass.getContainingFile().getManager(); final PsiType psiFieldType = PsiType.getJavaLangString(manager, GlobalSearchScope.allScope(psiClass.getProject())); final String fieldModifier =... | createFieldNameConstant |
13,284 | String (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass) { String prefix = PsiAnnotationUtil.getStringAnnotationValue(psiAnnotation, "prefix", CONFIG_DEFAULT); String suffix = PsiAnnotationUtil.getStringAnnotationValue(psiAnnotation, "suffix", CONFIG_DEFAULT); final ConfigDi... | calcFieldConstantName |
13,285 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { return LombokPsiElementUsage.USAGE; } | checkFieldUsage |
13,286 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return METHOD_LIST; } | getNamesOfPossibleGeneratedElements |
13,287 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink problemSink) { validateAnnotationOnRightType(psiClass, problemSink); if (problemSink.success()) { validateExistingMethods(psiClass, problemSink); } if (problemSink.deepValidation()) { final Collection<String> excludeProperty... | validate |
13,288 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isAnnotationType() || psiClass.isInterface()) { builder.addErrorMessage("inspection.message.to.string.only.supported.on.class.or.enum.type"); builder.markFailed(); } } | validateAnnotationOnRightType |
13,289 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { final boolean methodAlreadyExists = hasToStringMethodDefined(psiClass); if (methodAlreadyExists) { builder.addWarningMessage("inspection.message.not.generated.s.method.with.same.name.already.exists", TO_STRING_METHOD_NAME); builder.markFailed(); } } | validateExistingMethods |
13,290 | boolean (@NotNull PsiClass psiClass) { final Collection<PsiMethod> classMethods = PsiClassUtil.collectClassMethodsIntern(psiClass); return PsiMethodUtil.hasMethodByName(classMethods, TO_STRING_METHOD_NAME, 0); } | hasToStringMethodDefined |
13,291 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { target.addAll(createToStringMethod(psiClass, psiAnnotation)); } | generatePsiElements |
13,292 | PsiMethod (@NotNull PsiClass psiClass, @NotNull Collection<MemberInfo> memberInfos, @NotNull PsiAnnotation psiAnnotation, boolean forceCallSuper) { final PsiManager psiManager = psiClass.getManager(); final String paramString = createParamString(psiClass, memberInfos, psiAnnotation, forceCallSuper); final String blockT... | createToStringMethod |
13,293 | String (@NotNull PsiClass psiClass) { final StringBuilder psiClassName = new StringBuilder(); PsiClass containingClass = psiClass; do { if (!psiClassName.isEmpty()) { psiClassName.insert(0, '.'); } psiClassName.insert(0, containingClass.getName()); containingClass = containingClass.getContainingClass(); } while (null !... | getSimpleClassName |
13,294 | String (@NotNull PsiClass psiClass, @NotNull Collection<MemberInfo> memberInfos, @NotNull PsiAnnotation psiAnnotation, boolean forceCallSuper) { final boolean callSuper = forceCallSuper || readCallSuperAnnotationOrConfigProperty(psiAnnotation, psiClass, ConfigKey.TOSTRING_CALL_SUPER); final boolean doNotUseGetters = re... | createParamString |
13,295 | Collection<PsiAnnotation> (@NotNull PsiClass psiClass) { final Collection<PsiAnnotation> result = super.collectProcessedAnnotations(psiClass); addFieldsAnnotation(result, psiClass, TO_STRING_INCLUDE, TO_STRING_EXCLUDE); return result; } | collectProcessedAnnotations |
13,296 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { final PsiClass containingClass = psiField.getContainingClass(); if (null != containingClass) { final String psiFieldName = psiField.getName(); final Collection<MemberInfo> memberInfos = EqualsAndHashCodeToStringHandler.filterMemb... | checkFieldUsage |
13,297 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return nameHint.equals(psiClass.getName()); } | possibleToGenerateElementNamed |
13,298 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return Collections.singleton(getConstructorName(psiClass)); } | getNamesOfPossibleGeneratedElements |
13,299 | String (@NotNull PsiClass psiClass) { return Strings.notNullize(psiClass.getName()); } | getConstructorName |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.