@Target({PACKAGE,TYPE})
@Retention(SOURCE)
@Repeatable(uk.autores.repeat.RepeatableByteArrays.class)
public @interface ByteArrays
Directive to generate byte arrays from files.
// EXAMPLE ANNOTATION
@ByteArrays(value = "foo.bin", name = "FooData")
// EXAMPLE CODE
byte[] data = FooData.foo();
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionGenerated class name.Common processing instructions.Code generation strategy.String[]
Resource files.Generated code visibility.
-
Element Details
-
value
String[] valueResource files.- Returns:
- resources
- Default:
- {}
-
processing
Processing processingCommon processing instructions.- Returns:
- instruction annotation
- Default:
- @uk.autores.Processing(namer=uk.autores.naming.IdiomaticNamer.class)
-
name
String nameGenerated class name. The final segment of the package name is used when not set.- Returns:
- name
- Default:
- ""
-
visibility
Visibility visibilityGenerated code visibility.- Returns:
- visibility
- Default:
- PACKAGE
-
strategy
Strategy strategyCode generation strategy.- Returns:
- strategy
- Default:
- AUTO
-