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

uk.autores.Texts Maven / Gradle / Ivy

There is a newer version: 11.0.35-beta
Show newest version
// Copyright 2024 https://github.com/autores-uk/autores/blob/main/LICENSE.txt
// SPDX-License-Identifier: Apache-2.0
package uk.autores;

import uk.autores.handling.GenerateStringsFromText;
import uk.autores.naming.IdiomaticNamer;
import uk.autores.repeat.RepeatableTexts;

import java.lang.annotation.*;

/**
 * Annotation for {@link GenerateStringsFromText}.
 *
 * 

 *     // EXAMPLE ANNOTATION
 *     @Texts("Roses.txt")
 * 
*

 *     // EXAMPLE CODE
 *     String roses = Roses.text();
 * 
*/ @Target({ElementType.PACKAGE, ElementType.TYPE}) @Retention(RetentionPolicy.SOURCE) @Repeatable(RepeatableTexts.class) public @interface Texts { /** * Resource files. * @return text resources */ String[] value() default {}; /** * Common processing instructions. * @return instruction annotation */ Processing processing() default @Processing(namer = IdiomaticNamer.class); /** * Generated code visibility. * @return visibility */ boolean isPublic() default false; /** * Code generation strategy. * @return strategy */ Strategy strategy() default Strategy.AUTO; /** * Resource text encoding. * @return canonical encoding name */ String encoding() default "UTF-8"; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy