Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
13,300 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (checkWrongType(psiClass)) { builder.addErrorMessage("inspection.message.standardexception.class.only.supported.on.class"); return false; } if (checkWrongInheritorOfThrowable(psiClass)) { builder.addErrorMessag... | validate |
13,301 | boolean (@NotNull PsiClass psiClass) { return psiClass.isInterface() || psiClass.isAnnotationType() || psiClass.isEnum() || psiClass.isRecord(); } | checkWrongType |
13,302 | boolean (@NotNull PsiClass psiClass) { return !InheritanceUtil.isInheritor(psiClass, CommonClassNames.JAVA_LANG_THROWABLE); } | checkWrongInheritorOfThrowable |
13,303 | boolean (@NotNull PsiAnnotation psiAnnotation) { return null == LombokProcessorUtil.getAccessVisibility(psiAnnotation); } | checkWrongAccessVisibility |
13,304 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { final PsiManager psiManager = psiClass.getManager(); final Collection<PsiMethod> existedConstructors = PsiClassUtil.collectClassConstructorIntern(psiClass); final String accessV... | generatePsiElements |
13,305 | String (@NotNull PsiAnnotation psiAnnotation) { String accessVisibility = LombokProcessorUtil.getAccessVisibility(psiAnnotation); if (null == accessVisibility) { accessVisibility = PsiModifier.PUBLIC; } return accessVisibility; } | getAccessVisibility |
13,306 | boolean (Collection<PsiMethod> existedConstructors, PsiClassType... classTypes) { return !ContainerUtil.exists(existedConstructors, method -> { final PsiParameterList parameterList = method.getParameterList(); if (parameterList.getParametersCount() != classTypes.length) { return false; } int paramIndex = 0; for (PsiCla... | noConstructorWithParamsOfTypesDefined |
13,307 | LombokLightMethodBuilder (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiManager psiManager, @PsiModifier.ModifierConstant String accessVisibility) { return new LombokLightMethodBuilder(psiManager, getConstructorName(psiClass)) .withConstructor(true) .withContainingClass(psiClass) .withNa... | createConstructor |
13,308 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return nameHint.equals(psiClass.getName()); } | possibleToGenerateElementNamed |
13,309 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return Collections.singleton(psiClass.getName()); } | getNamesOfPossibleGeneratedElements |
13,310 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { return validateOnRightType(psiClass, builder) && validateNoConstructorsDefined(psiClass, builder); } | validate |
13,311 | boolean (PsiClass psiClass, ProblemSink builder) { Collection<PsiMethod> psiMethods = PsiClassUtil.collectClassConstructorIntern(psiClass); if (!psiMethods.isEmpty()) { builder.addErrorMessage("inspection.message.utility.classes.cannot.have.declared.constructors"); return false; } return true; } | validateNoConstructorsDefined |
13,312 | boolean (PsiClass psiClass, ProblemSink builder) { if (checkWrongType(psiClass)) { builder.addErrorMessage("inspection.message.utility.class.only.supported.on.class"); return false; } PsiElement context = psiClass.getContext(); if (context == null) { return false; } if (!(context instanceof PsiFile)) { PsiElement conte... | validateOnRightType |
13,313 | boolean (PsiModifierList modifierList) { return modifierList != null && modifierList.hasModifierProperty(PsiModifier.STATIC); } | isStatic |
13,314 | boolean (PsiClass psiClass) { return psiClass != null && (psiClass.isInterface() || psiClass.isEnum() || psiClass.isAnnotationType()); } | checkWrongType |
13,315 | void (@NotNull final PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { LombokLightMethodBuilder constructorBuilder = new LombokLightMethodBuilder(psiClass.getManager(), psiClass.getName()) .withConstructor(true) .withContainingClass(psiClass)... | generatePsiElements |
13,316 | SetterFieldProcessor () { return LombokProcessorManager.getInstance().getSetterFieldProcessor(); } | getSetterFieldProcessor |
13,317 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { final AccessorsInfo.AccessorsValues classAccessorsValues = AccessorsInfo.getAccessorsValues(psiClass); for (PsiField psiField : PsiClassUtil.collectClassFieldsIntern(psiClass)) { final AccessorsInfo accessorsInfo = Ac... | possibleToGenerateElementNamed |
13,318 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { Collection<String> result = new ArrayList<>(); final AccessorsInfo.AccessorsValues classAccessorsValues = AccessorsInfo.getAccessorsValues(psiClass); for (PsiField psiField : PsiClassUtil.collectClassFieldsIntern(psiClass)) { final ... | getNamesOfPossibleGeneratedElements |
13,319 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { validateAnnotationOnRightType(psiAnnotation, psiClass, builder); validateVisibility(psiAnnotation, builder); return builder.success(); } | validate |
13,320 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isAnnotationType() || psiClass.isInterface() || psiClass.isEnum()) { builder.addErrorMessage("inspection.message.s.only.supported.on.class.or.field.type", psiAnnotation.getQualifiedName()); builder.markF... | validateAnnotationOnRightType |
13,321 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull ProblemSink builder) { if(null == LombokProcessorUtil.getMethodModifier(psiAnnotation)) { builder.markFailed(); } } | validateVisibility |
13,322 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); if (methodVisibility != null) { target.addAll(createFieldSetters(psiClass, methodVisibility... | generatePsiElements |
13,323 | Collection<PsiMethod> (@NotNull PsiClass psiClass, @NotNull String methodModifier, @Nullable String nameHint) { Collection<PsiMethod> result = new ArrayList<>(); final Collection<PsiField> setterFields = filterSetterFields(psiClass); for (PsiField setterField : setterFields) { ContainerUtil.addIfNotNull(result, SetterF... | createFieldSetters |
13,324 | Collection<PsiField> (@NotNull PsiClass psiClass) { final Collection<PsiMethod> classMethods = PsiClassUtil.collectClassMethodsIntern(psiClass); filterToleratedElements(classMethods); SetterFieldProcessor fieldProcessor = getSetterFieldProcessor(); final Collection<PsiField> setterFields = new ArrayList<>(); for (PsiFi... | filterSetterFields |
13,325 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { final PsiClass containingClass = psiField.getContainingClass(); if (null != containingClass) { if (PsiClassUtil.getNames(filterSetterFields(containingClass)).contains(psiField.getName())) { return LombokPsiElementUsage.WRITE; } }... | checkFieldUsage |
13,326 | GetterFieldProcessor () { return LombokProcessorManager.getInstance().getGetterFieldProcessor(); } | getGetterFieldProcessor |
13,327 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { final AccessorsInfo.AccessorsValues classAccessorsValues = AccessorsInfo.getAccessorsValues(psiClass); for (PsiField psiField : PsiClassUtil.collectClassFieldsIntern(psiClass)) { final AccessorsInfo accessorsInfo = Ac... | possibleToGenerateElementNamed |
13,328 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { Collection<String> result = new ArrayList<>(); final AccessorsInfo.AccessorsValues classAccessorsValues = AccessorsInfo.getAccessorsValues(psiClass); for (PsiField psiField : PsiClassUtil.collectClassFieldsIntern(psiClass)) { final ... | getNamesOfPossibleGeneratedElements |
13,329 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { validateAnnotationOnRightType(psiClass, builder); validateVisibility(psiAnnotation, builder); if (builder.deepValidation()) { if (PsiAnnotationUtil.getBooleanAnnotationValue(psiAnnotation, "lazy", false)) { builde... | validate |
13,330 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isAnnotationType() || psiClass.isInterface()) { builder.addErrorMessage("inspection.message.getter.only.supported.on.class.enum.or.field.type"); builder.markFailed(); } } | validateAnnotationOnRightType |
13,331 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull ProblemSink builder) { if (null == LombokProcessorUtil.getMethodModifier(psiAnnotation)) { builder.markFailed(); } } | validateVisibility |
13,332 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); if (methodVisibility != null) { target.addAll(createFieldGetters(psiClass, methodVisibility... | generatePsiElements |
13,333 | Collection<PsiMethod> (@NotNull PsiClass psiClass, @NotNull String methodModifier, @Nullable String nameHint) { Collection<PsiMethod> result = new ArrayList<>(); final Collection<PsiField> getterFields = filterGetterFields(psiClass); GetterFieldProcessor fieldProcessor = getGetterFieldProcessor(); for (PsiField getterF... | createFieldGetters |
13,334 | Collection<PsiField> (@NotNull PsiClass psiClass) { final Collection<PsiField> getterFields = new ArrayList<>(); final Collection<PsiMethod> classMethods = PsiClassUtil.collectClassMethodsIntern(psiClass); filterToleratedElements(classMethods); final AccessorsInfo.AccessorsValues classAccessorsValues = AccessorsInfo.ge... | filterGetterFields |
13,335 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { final PsiClass containingClass = psiField.getContainingClass(); if (null != containingClass) { if (PsiClassUtil.getNames(filterGetterFields(containingClass)).contains(psiField.getName())) { return LombokPsiElementUsage.READ; } } ... | checkFieldUsage |
13,336 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return ALL_NAMES; } | getNamesOfPossibleGeneratedElements |
13,337 | 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,338 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { validateCallSuperParam(psiAnnotation, psiClass, builder, () -> PsiQuickFixFactory.createChangeAnnotationParameterFix(psiAnnotation, "callSuper", "false"), () -> PsiQuickFixFactory.createChangeAnnotationParameterFix(p... | validateCallSuperParamIntern |
13,339 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder, Supplier<LocalQuickFix>... quickFixes) { final Boolean declaredBooleanAnnotationValue = PsiAnnotationUtil.getDeclaredBooleanAnnotationValue(psiAnnotation, "callSuper"); if (null == declaredBooleanAnnotationValue) { fin... | validateCallSuperParam |
13,340 | void (PsiAnnotation psiAnnotation, PsiClass psiClass, ProblemSink builder) { boolean callSuperProperty = PsiAnnotationUtil.getBooleanAnnotationValue(psiAnnotation, "callSuper", false); if (callSuperProperty && !PsiClassUtil.hasSuperClass(psiClass)) { builder.addErrorMessage("inspection.message.generating.equals.hashcod... | validateCallSuperParamForObject |
13,341 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { final boolean definedOnWrongType = psiClass.isAnnotationType() || psiClass.isInterface() || psiClass.isEnum(); if (definedOnWrongType) { builder.addErrorMessage("inspection.message.equals.and.hashcode.only.supported.on.class.type"); builder.markFailed();... | validateAnnotationOnRightType |
13,342 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (hasOneOfMethodsDefined(psiClass)) { builder.addWarningMessage("inspection.message.not.generating.equals.hashcode"); builder.markFailed(); } } | validateExistingMethods |
13,343 | boolean (@NotNull PsiClass psiClass) { final Collection<PsiMethod> classMethodsIntern = PsiClassUtil.collectClassMethodsIntern(psiClass); return PsiMethodUtil.hasMethodByName(classMethodsIntern, EQUALS_METHOD_NAME, 1) || PsiMethodUtil.hasMethodByName(classMethodsIntern, HASH_CODE_METHOD_NAME, 0); } | hasOneOfMethodsDefined |
13,344 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { target.addAll(createEqualAndHashCode(psiClass, psiAnnotation)); } | generatePsiElements |
13,345 | boolean (@NotNull PsiClass psiClass) { final boolean isNotDirectDescendantOfObject = PsiClassUtil.hasSuperClass(psiClass); if (isNotDirectDescendantOfObject) { return true; } final boolean isFinal = psiClass.hasModifierProperty(PsiModifier.FINAL) || (PsiAnnotationSearchUtil.isAnnotatedWith(psiClass, LombokClassNames.VA... | shouldGenerateCanEqual |
13,346 | PsiMethod (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, boolean hasCanEqualMethod) { final PsiManager psiManager = psiClass.getManager(); final LombokLightMethodBuilder methodBuilder = new LombokLightMethodBuilder(psiManager, EQUALS_METHOD_NAME) .withModifier(PsiModifier.PUBLIC) .withMethodReturnTy... | createEqualsMethod |
13,347 | PsiMethod (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { final PsiManager psiManager = psiClass.getManager(); return new LombokLightMethodBuilder(psiManager, HASH_CODE_METHOD_NAME) .withModifier(PsiModifier.PUBLIC) .withMethodReturnType(PsiTypes.intType()) .withContainingClass(psiClass) .withNavig... | createHashCodeMethod |
13,348 | PsiMethod (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { final PsiManager psiManager = psiClass.getManager(); final String blockText = String.format("return other instanceof %s;", PsiTypesUtil.getClassType(psiClass).getCanonicalText()); final LombokLightMethodBuilder methodBuilder = new LombokLigh... | createCanEqualMethod |
13,349 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull LombokLightParameter lightParameter) { PsiModifierList methodParameterModifierList = lightParameter.getModifierList(); LombokCopyableAnnotations.copyOnXAnnotations(psiAnnotation, methodParameterModifierList, "onParam"); } | copyOnXAnnotationsForFirstParam |
13,350 | String (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, boolean hasCanEqualMethod, Collection<MemberInfo> memberInfos) { final boolean callSuper = readCallSuperAnnotationOrConfigProperty(psiAnnotation, psiClass, ConfigKey.EQUALSANDHASHCODE_CALL_SUPER); final boolean doNotUseGetters = readAnnotationOrC... | createEqualsBlockString |
13,351 | String (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, Collection<MemberInfo> memberInfos) { final boolean callSuper = readCallSuperAnnotationOrConfigProperty(psiAnnotation, psiClass, ConfigKey.EQUALSANDHASHCODE_CALL_SUPER); final boolean doNotUseGetters = readAnnotationOrConfigProperty(psiAnnotation... | createHashcodeBlockString |
13,352 | Collection<PsiAnnotation> (@NotNull PsiClass psiClass) { final Collection<PsiAnnotation> result = super.collectProcessedAnnotations(psiClass); addFieldsAnnotation(result, psiClass, EQUALS_AND_HASHCODE_INCLUDE, EQUALS_AND_HASHCODE_EXCLUDE); return result; } | collectProcessedAnnotations |
13,353 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { final PsiClass containingClass = psiField.getContainingClass(); if (null != containingClass) { final String psiFieldName = psiField.getName(); if (EqualsAndHashCodeToStringHandler.filterMembers(containingClass, psiAnnotation, tru... | checkFieldUsage |
13,354 | WitherFieldProcessor () { return LombokProcessorManager.getInstance().getWitherFieldProcessor(); } | getWitherFieldProcessor |
13,355 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { if (!nameHint.startsWith("with")) return false; final Collection<? extends PsiVariable> possibleWithElements = getPossibleWithElements(psiClass); if (possibleWithElements.isEmpty()) return false; final AccessorsInfo a... | possibleToGenerateElementNamed |
13,356 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { Collection<String> result = new ArrayList<>(); final Collection<? extends PsiVariable> possibleWithElements = getPossibleWithElements(psiClass); if (!possibleWithElements.isEmpty()) { final AccessorsInfo accessorsInfo = AccessorsInf... | getNamesOfPossibleGeneratedElements |
13,357 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { validateAnnotationOnRightType(psiClass, builder); validateVisibility(psiAnnotation, builder); if (builder.success()) { WitherFieldProcessor.validConstructor(psiClass, builder); } return builder.success(); } | validate |
13,358 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isAnnotationType() || psiClass.isInterface() || psiClass.isEnum()) { builder.addErrorMessage("inspection.message.wither.only.supported.on.class.or.field"); builder.markFailed(); } } | validateAnnotationOnRightType |
13,359 | void (@NotNull PsiAnnotation psiAnnotation, @NotNull ProblemSink builder) { if (null == LombokProcessorUtil.getMethodModifier(psiAnnotation)) { builder.markFailed(); } } | validateVisibility |
13,360 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { final String methodVisibility = LombokProcessorUtil.getMethodModifier(psiAnnotation); if (methodVisibility != null) { final AccessorsInfo accessorsInfo = AccessorsInfo.buildFor(... | generatePsiElements |
13,361 | Collection<PsiMethod> (@NotNull PsiClass psiClass, @NotNull String methodModifier, @NotNull AccessorsInfo accessors) { Collection<PsiMethod> result = new ArrayList<>(); final Collection<PsiField> witherFields = getWitherFields(psiClass); for (PsiField witherField : witherFields) { PsiMethod method = getWitherFieldProce... | createFieldWithers |
13,362 | Collection<PsiField> (@NotNull PsiClass psiClass) { Collection<PsiField> witherFields = new ArrayList<>(); for (PsiField psiField : psiClass.getFields()) { boolean createWither = true; PsiModifierList modifierList = psiField.getModifierList(); if (null != modifierList) { // Skip static fields. createWither = !modifierL... | getWitherFields |
13,363 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { final PsiClass containingClass = psiField.getContainingClass(); if (null != containingClass) { final Collection<PsiField> witherFields = getWitherFields(containingClass); if (PsiClassUtil.getNames(witherFields).contains(psiField.... | checkFieldUsage |
13,364 | ToStringProcessor () { return LombokProcessorManager.getInstance().getToStringProcessor(); } | getToStringProcessor |
13,365 | AllArgsConstructorProcessor () { return LombokProcessorManager.getInstance().getAllArgsConstructorProcessor(); } | getAllArgsConstructorProcessor |
13,366 | NoArgsConstructorProcessor () { return LombokProcessorManager.getInstance().getNoArgsConstructorProcessor(); } | getNoArgsConstructorProcessor |
13,367 | GetterProcessor () { return LombokProcessorManager.getInstance().getGetterProcessor(); } | getGetterProcessor |
13,368 | EqualsAndHashCodeProcessor () { return LombokProcessorManager.getInstance().getEqualsAndHashCodeProcessor(); } | getEqualsAndHashCodeProcessor |
13,369 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return nameHint.equals(getStaticConstructorNameValue(psiAnnotation)) || getNoArgsConstructorProcessor().possibleToGenerateElementNamed(nameHint, psiClass, psiAnnotation) || getToStringProcessor().possibleToGenerateEle... | possibleToGenerateElementNamed |
13,370 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { Collection<String> result = new ArrayList<>(); final String staticConstructorName = getStaticConstructorNameValue(psiAnnotation); if(StringUtil.isNotEmpty(staticConstructorName)) { result.add(staticConstructorName); } result.addAll(... | getNamesOfPossibleGeneratedElements |
13,371 | String (@NotNull PsiAnnotation psiAnnotation) { return PsiAnnotationUtil.getStringAnnotationValue(psiAnnotation, "staticConstructor", ""); } | getStaticConstructorNameValue |
13,372 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { validateAnnotationOnRightType(psiClass, builder); if (builder.deepValidation()) { if (PsiAnnotationSearchUtil.isNotAnnotatedWith(psiClass, LombokClassNames.EQUALS_AND_HASHCODE)) { getEqualsAndHashCodeProcessor().v... | validate |
13,373 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isAnnotationType() || psiClass.isInterface() || psiClass.isEnum()) { builder.addErrorMessage("inspection.message.value.only.supported.on.class.type"); builder.markFailed(); } } | validateAnnotationOnRightType |
13,374 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { if (PsiAnnotationSearchUtil.isNotAnnotatedWith(psiClass, LombokClassNames.GETTER)) { target.addAll(getGetterProcessor().createFieldGetters(psiClass, PsiModifier.PUBLIC, nameHint... | generatePsiElements |
13,375 | Collection<PsiAnnotation> (@NotNull PsiClass psiClass) { final Collection<PsiAnnotation> result = super.collectProcessedAnnotations(psiClass); addClassAnnotation(result, psiClass, LombokClassNames.NON_FINAL, LombokClassNames.PACKAGE_PRIVATE); addFieldsAnnotation(result, psiClass, LombokClassNames.NON_FINAL, LombokClass... | collectProcessedAnnotations |
13,376 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { return LombokPsiElementUsage.READ_WRITE; } | checkFieldUsage |
13,377 | ToStringProcessor () { return LombokProcessorManager.getInstance().getToStringProcessor(); } | getToStringProcessor |
13,378 | NoArgsConstructorProcessor () { return LombokProcessorManager.getInstance().getNoArgsConstructorProcessor(); } | getNoArgsConstructorProcessor |
13,379 | GetterProcessor () { return LombokProcessorManager.getInstance().getGetterProcessor(); } | getGetterProcessor |
13,380 | SetterProcessor () { return LombokProcessorManager.getInstance().getSetterProcessor(); } | getSetterProcessor |
13,381 | EqualsAndHashCodeProcessor () { return LombokProcessorManager.getInstance().getEqualsAndHashCodeProcessor(); } | getEqualsAndHashCodeProcessor |
13,382 | RequiredArgsConstructorProcessor () { return LombokProcessorManager.getInstance().getRequiredArgsConstructorProcessor(); } | getRequiredArgsConstructorProcessor |
13,383 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return nameHint.equals(getStaticConstructorNameValue(psiAnnotation)) || getNoArgsConstructorProcessor().possibleToGenerateElementNamed(nameHint, psiClass, psiAnnotation) || getToStringProcessor().possibleToGenerateEle... | possibleToGenerateElementNamed |
13,384 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { Collection<String> result = new ArrayList<>(); final String staticConstructorName = getStaticConstructorNameValue(psiAnnotation); if(StringUtil.isNotEmpty(staticConstructorName)) { result.add(staticConstructorName); } result.addAll(... | getNamesOfPossibleGeneratedElements |
13,385 | String (@NotNull PsiAnnotation psiAnnotation) { return PsiAnnotationUtil.getStringAnnotationValue(psiAnnotation, "staticConstructor", ""); } | getStaticConstructorNameValue |
13,386 | boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { validateAnnotationOnRightType(psiClass, builder); if (builder.deepValidation()) { final boolean hasNoEqualsAndHashCodeAnnotation = PsiAnnotationSearchUtil.isNotAnnotatedWith(psiClass, LombokClassNames.EQUALS_AND_H... | validate |
13,387 | void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isAnnotationType() || psiClass.isInterface() || psiClass.isEnum()) { builder.addErrorMessage("inspection.message.data.only.supported.on.class.type"); builder.markFailed(); } } | validateAnnotationOnRightType |
13,388 | void (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @NotNull List<? super PsiElement> target, @Nullable String nameHint) { if (PsiAnnotationSearchUtil.isNotAnnotatedWith(psiClass, LombokClassNames.GETTER)) { target.addAll(getGetterProcessor().createFieldGetters(psiClass, PsiModifier.PUBLIC, nameHint... | generatePsiElements |
13,389 | boolean (@NotNull PsiClass psiClass, @Nullable String staticName) { boolean result = false; // create required constructor only if there are no other constructor annotations final boolean notAnnotatedWith = PsiAnnotationSearchUtil.isNotAnnotatedWith(psiClass, LombokClassNames.NO_ARGS_CONSTRUCTOR, LombokClassNames.REQUI... | shouldGenerateRequiredArgsConstructor |
13,390 | LombokPsiElementUsage (@NotNull PsiField psiField, @NotNull PsiAnnotation psiAnnotation) { return LombokPsiElementUsage.READ_WRITE; } | checkFieldUsage |
13,391 | boolean (@Nullable String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return nameHint == null || possibleToGenerateElementNamed(nameHint, psiClass, psiAnnotation); } | noHintOrPossibleToGenerateElementNamed |
13,392 | boolean (@NotNull String nameHint, @NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { final Collection<String> namesOfGeneratedElements = getNamesOfPossibleGeneratedElements(psiClass, psiAnnotation); return namesOfGeneratedElements.isEmpty() || namesOfGeneratedElements.contains(nameHint); } | possibleToGenerateElementNamed |
13,393 | Collection<String> (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { return Collections.emptyList(); } | getNamesOfPossibleGeneratedElements |
13,394 | Collection<PsiAnnotation> (@NotNull PsiClass psiClass) { Collection<PsiAnnotation> result = new ArrayList<>(); PsiAnnotation psiAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiClass, getSupportedAnnotationClasses()); if (null != psiAnnotation) { result.add(psiAnnotation); } return result; } | collectProcessedAnnotations |
13,395 | void (Collection<PsiAnnotation> result, @NotNull PsiClass psiClass, String... annotationFQNs) { PsiAnnotation psiAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiClass, annotationFQNs); if (null != psiAnnotation) { result.add(psiAnnotation); } } | addClassAnnotation |
13,396 | void (Collection<PsiAnnotation> result, @NotNull PsiClass psiClass, String... annotationFQNs) { for (PsiField psiField : PsiClassUtil.collectClassFieldsIntern(psiClass)) { PsiAnnotation psiAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiField, annotationFQNs); if (null != psiAnnotation) { result.add(psiAnnotatio... | addFieldsAnnotation |
13,397 | Collection<LombokProblem> (@NotNull PsiAnnotation psiAnnotation) { Collection<LombokProblem> result = Collections.emptyList(); // check first for fields, methods and filter it out, because PsiClass is parent of all annotations and will match other parents too PsiElement psiElement = PsiTreeUtil.getParentOfType(psiAnnot... | verifyAnnotation |
13,398 | Optional<PsiClass> (@NotNull PsiClass psiClass) { final PsiElement parentElement = psiClass.getParent(); if (parentElement instanceof PsiClass && !(parentElement instanceof LombokLightClassBuilder)) { return Optional.of((PsiClass) parentElement); } return Optional.empty(); } | getSupportedParentClass |
13,399 | PsiAnnotation (@NotNull PsiClass psiParentClass) { return PsiAnnotationSearchUtil.findAnnotation(psiParentClass, getSupportedAnnotationClasses()); } | getSupportedAnnotation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.