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

uk.autores.Strategy Maven / Gradle / Ivy

There is a newer version: 11.0.35-beta
Show newest version
package uk.autores;

import uk.autores.handling.CfgStrategy;

/**
 * Code generation choices enum.
 * Usage is {@link uk.autores.handling.Handler} specific.
 */
public enum Strategy {
    /** Processor is expected to use compile-time heuristics to choose strategy. */
    AUTO(CfgStrategy.AUTO),
    /** Generated code embeds data in class. */
    INLINE(CfgStrategy.INLINE),
    /** Generated code embeds data in class constant pool. */
    CONST(CfgStrategy.CONST),
    /** Generated code loads data at runtime. */
    LAZY(CfgStrategy.LAZY);
    private final String value;

    Strategy(String value) {
        this.value = value;
    }

    /**
     * Underlying string value.
     *
     * @return configuration string
     */
    public String value() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy