All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.remal.gradle_plugins.lombok.config.LombokConfigurationKeys Maven / Gradle / Ivy

package name.remal.gradle_plugins.lombok.config;

import static lombok.AccessLevel.PRIVATE;

import com.google.common.collect.ImmutableList;
import java.util.List;
import javax.annotation.Nullable;
import lombok.NoArgsConstructor;
import lombok.val;

@NoArgsConstructor(access = PRIVATE)
abstract class LombokConfigurationKeys {
    
    private static final List KEYS = ImmutableList.builder()
        .add(LombokConfigurationKey.builder()
            .name("dangerousconfig.lombok.disable")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.addGeneratedAnnotation")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.addJavaxGeneratedAnnotation")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.addLombokGeneratedAnnotation")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.extern.findbugs.addSuppressFBWarnings")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.addSuppressWarnings")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.addNullAnnotations")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.anyConstructor.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.anyConstructor.suppressConstructorProperties")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.anyConstructor.addConstructorProperties")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.allArgsConstructor.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.noArgsConstructor.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.noArgsConstructor.extraPrivate")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.requiredArgsConstructor.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.data.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.value.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.getter.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.getter.lazy.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.getter.noIsPrefix")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.setter.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.equalsAndHashCode.doNotUseGetters")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.equalsAndHashCode.callSuper")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.equalsAndHashCode.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.toString.doNotUseGetters")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.toString.callSuper")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.toString.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.toString.includeFieldNames")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.toString.onlyExplicitlyIncluded")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.builder.className")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.builder.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.singular.useGuava")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.singular.auto")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.cleanup.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.delegate.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.nonNull.exceptionType")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.nonNull.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.sneakyThrows.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.synchronized.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.val.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.var.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.with.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.apacheCommons.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.javaUtilLogging.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.log4j.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.log4j2.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.slf4j.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.xslf4j.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.jbosslog.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.flogger.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.fieldName")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.fieldIsStatic")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.custom.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.log.custom.declaration")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.experimental.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.accessors.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.accessors.prefix")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.accessors.chain")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.accessors.fluent")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.accessors.makeFinal")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.accessors.capitalization")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.extensionMethod.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.fieldDefaults.defaultPrivate")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.fieldDefaults.defaultFinal")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.fieldDefaults.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.helper.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.onX.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.utilityClass.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.fieldNameConstants.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.fieldNameConstants.innerTypeName")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.fieldNameConstants.uppercase")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.superBuilder.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.withBy.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.jacksonized.flagUsage")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("config.stopBubbling")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.copyableAnnotations")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("checkerframework")
            .build()
        )
        .add(LombokConfigurationKey.builder()
            .name("lombok.standardException.flagUsage")
            .build()
        )
        .build();
    
    @Nullable
    public static LombokConfigurationKey findLombokConfigurationKeyFor(String value) {
        for (val key : KEYS) {
            if (key.getName().equalsIgnoreCase(value)) {
                return key;
            }
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy