@Target({PACKAGE,TYPE})
@Retention(SOURCE)
@Repeatable(RepeatableTexts.class)
public @interface Texts
Annotation for
GenerateStringsFromText
.
// EXAMPLE ANNOTATION
@Texts("Roses.txt")
// EXAMPLE CODE
String roses = Roses.text();
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionResource text encoding.boolean
Generated code visibility.Common processing instructions.Code generation strategy.String[]
Resource files.
-
Element Details
-
value
String[] valueResource files.- Returns:
- text resources
- Default:
{}
-
processing
Processing processingCommon processing instructions.- Returns:
- instruction annotation
- Default:
@uk.autores.Processing(namer=uk.autores.naming.IdiomaticNamer.class)
-
isPublic
boolean isPublicGenerated code visibility.- Returns:
- visibility
- Default:
false
-
strategy
Strategy strategyCode generation strategy.- Returns:
- strategy
- Default:
AUTO
-
encoding
String encodingResource text encoding.- Returns:
- canonical encoding name
- Default:
"UTF-8"
-