Package de.plushnikov.intellij.plugin.processor.clazz.constructor

Examples of de.plushnikov.intellij.plugin.processor.clazz.constructor.RequiredArgsConstructorProcessor


      final Collection<PsiMethod> definedConstructors = PsiClassUtil.collectClassConstructorIntern(psiClass);
      filterToleratedElements(definedConstructors);

      // and only if there are no any other constructors!
      if (definedConstructors.isEmpty()) {
        final RequiredArgsConstructorProcessor requiredArgsConstructorProcessor = new RequiredArgsConstructorProcessor();

        final String staticName = PsiAnnotationUtil.getAnnotationValue(psiAnnotation, "staticConstructor", String.class);
        final Collection<PsiField> requiredFields = requiredArgsConstructorProcessor.getRequiredFields(psiClass);

        if (requiredArgsConstructorProcessor.validateIsConstructorDefined(psiClass, staticName, requiredFields, ProblemEmptyBuilder.getInstance())) {
          target.addAll(requiredArgsConstructorProcessor.createRequiredArgsConstructor(
              psiClass, PsiModifier.PUBLIC, psiAnnotation, staticName));
        }
      }
    }
  }
View Full Code Here


import de.plushnikov.intellij.plugin.processor.clazz.constructor.RequiredArgsConstructorProcessor;

public class DelombokConstructorAction extends BaseDelombokAction {

  public DelombokConstructorAction() {
    super(new BaseDelombokHandler(new AllArgsConstructorProcessor(), new NoArgsConstructorProcessor(), new RequiredArgsConstructorProcessor()));
  }
View Full Code Here

    super(createHandler());
  }

  private static BaseDelombokHandler createHandler() {
    return new BaseDelombokHandler(
        new RequiredArgsConstructorProcessor(), new AllArgsConstructorProcessor(), new NoArgsConstructorProcessor(),
        new DataProcessor(), new GetterProcessor(), new ValueProcessor(), new WitherProcessor(),
        new SetterProcessor(), new EqualsAndHashCodeProcessor(), new ToStringProcessor(),
        new CommonsLogProcessor(), new Log4jProcessor(), new Log4j2Processor(), new LogProcessor(), new Slf4jProcessor(), new XSlf4jProcessor(),
        new GetterFieldProcessor(), new SetterFieldProcessor(), new WitherFieldProcessor(), new DelegateFieldProcessor(),
        new DelegateMethodProcessor()
View Full Code Here

TOP

Related Classes of de.plushnikov.intellij.plugin.processor.clazz.constructor.RequiredArgsConstructorProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.