lombok.experimental.SuperBuilder Java Examples
The following examples show how to use
lombok.experimental.SuperBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DataProcessor.java From lombok-intellij-plugin with BSD 3-Clause "New" or "Revised" License | 6 votes |
private boolean shouldGenerateRequiredArgsConstructor(@NotNull PsiClass psiClass, @Nullable String staticName) { boolean result = false; // create required constructor only if there are no other constructor annotations @SuppressWarnings("unchecked") final boolean notAnnotatedWith = PsiAnnotationSearchUtil.isNotAnnotatedWith(psiClass, NoArgsConstructor.class, RequiredArgsConstructor.class, AllArgsConstructor.class, Builder.class, SuperBuilder.class); if (notAnnotatedWith) { final Collection<PsiMethod> definedConstructors = PsiClassUtil.collectClassConstructorIntern(psiClass); filterToleratedElements(definedConstructors); final Collection<PsiField> requiredFields = getRequiredArgsConstructorProcessor().getRequiredFields(psiClass); result = getRequiredArgsConstructorProcessor().validateIsConstructorNotDefined( psiClass, staticName, requiredFields, ProblemEmptyBuilder.getInstance()); } return result; }
Example #2
Source File: SuperBuilderPreDefinedInnerClassFieldProcessor.java From lombok-intellij-plugin with BSD 3-Clause "New" or "Revised" License | 4 votes |
public SuperBuilderPreDefinedInnerClassFieldProcessor() { super(PsiField.class, SuperBuilder.class); }
Example #3
Source File: SuperBuilderProcessor.java From lombok-intellij-plugin with BSD 3-Clause "New" or "Revised" License | 4 votes |
public SuperBuilderProcessor() { super(PsiMethod.class, SuperBuilder.class); }
Example #4
Source File: SuperBuilderClassProcessor.java From lombok-intellij-plugin with BSD 3-Clause "New" or "Revised" License | 4 votes |
public SuperBuilderClassProcessor() { super(PsiClass.class, SuperBuilder.class); }
Example #5
Source File: SuperBuilderPreDefinedInnerClassMethodProcessor.java From lombok-intellij-plugin with BSD 3-Clause "New" or "Revised" License | 4 votes |
public SuperBuilderPreDefinedInnerClassMethodProcessor() { super(PsiMethod.class, SuperBuilder.class); }