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

name.remal.gradle_plugins.api.BuildTimeConstants Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package name.remal.gradle_plugins.api;

import org.jetbrains.annotations.NotNull;

import java.util.Map;

@SuppressWarnings({"unused", "squid:S1192"})
public final class BuildTimeConstants {

    /**
     * Invocation of this method will be replaced with actual class name. Class parameter must be a constant expression.
     */
    @NotNull
    public static String getClassName(@NotNull Class clazz) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual class simple name. Class parameter must be a constant expression.
     */
    @NotNull
    public static String getClassSimpleName(@NotNull Class clazz) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual class simple name. Class parameter must be a constant expression.
     */
    @NotNull
    public static String getClassPackageName(@NotNull Class clazz) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual class internal name. Class parameter must be a constant expression.
     */
    @NotNull
    public static String getClassInternalName(@NotNull Class clazz) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual class descriptor. Class parameter must be a constant expression.
     */
    @NotNull
    public static String getClassDescriptor(@NotNull Class clazz) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }


    /**
     * Invocation of this method will be replaced with actual property value. Property name parameter must be a constant expression.
     */
    @NotNull
    public static String getStringProperty(@NotNull String propertyName) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual property value parsed as int. Property name parameter must be a constant expression.
     */
    public static int getIntegerProperty(@NotNull String propertyName) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual property value parsed as long. Property name parameter must be a constant expression.
     */
    public static long getLongProperty(@NotNull String propertyName) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual property value parsed as boolean. Property name parameter must be a constant expression.
     */
    public static boolean getBooleanProperty(@NotNull String propertyName) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }


    /**
     * Invocation of this method will be replaced with actual properties values. Property name parameter must be a constant expression.
     */
    @NotNull
    public static Map getStringProperties(@NotNull String propertyPattern) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual properties values parsed as int. Property name parameter must be a constant expression.
     */
    @NotNull
    public static Map getIntegerProperties(@NotNull String propertyPattern) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual properties values parsed as long. Property name parameter must be a constant expression.
     */
    @NotNull
    public static Map getLongProperties(@NotNull String propertyPattern) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }

    /**
     * Invocation of this method will be replaced with actual properties values parsed as boolean. Property name parameter must be a constant expression.
     */
    @NotNull
    public static Map getBooleanProperties(@NotNull String propertyPattern) {
        throw new UnsupportedOperationException("This method can't be invoked directly. Use 'remal.name.classes-processing' Gradle plugin to process the method invocation.");
    }


    private BuildTimeConstants() {
    }

    static {
        throwIllegalClassUseException();
    }

    private static void throwIllegalClassUseException() {
        throw new UnsupportedOperationException("This class can't be used directly. Use 'remal.name.classes-processing' Gradle plugin to handle the class's methods.");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy