Package io.kaitai.struct.annotations
Annotation Type Generated
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface Generated
Annotation, that applied to Kaitai-generated classes. Visualizers can use that annotation to find classes, that contains generated stuff, that should be showed in visualization.- Since:
- 0.9
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description booleanautoReadDetermines, if instantiation of user classes (related to user-types, defined inksyfile) automatically read its content from the stream, or that must be performed manually by calling generated_read(),_readBE()or_readLE()method.StringdocDocumentation string attached to the type definition, specified indocKSY element.StringidOriginal identifier (idkey) fromksyfile.booleanposInfoClass compiled with support of position tracking.StringversionVersion of compiler, that generated this class.
-
-
-
Element Detail
-
id
String id
Original identifier (idkey) fromksyfile.- Returns:
- Identifier, that can differ from class name, if it clash with Java reserved words. Can not be empty
-
-
-
posInfo
boolean posInfo
Class compiled with support of position tracking. That means, that every class has following public fields (in that version of generator):Position tracking info. Type Field Description Map<String, Integer>_attrStartStart offset in the root stream, where an attributeoran instancewith specified name begins. Used only for attributes/instances, that is not repeatedMap<String, Integer>_attrEndStart offset in the root stream, where an attributeoran instancewith specified name ends (exclusive). Used only for attributes/instances, that is not repeatedMap<String, ? extends List<Integer>>_arrStartList with start offset in the root stream, where each array element of repeated attributeorinstancewith specified name begins. Used only for attributes/instances, that is repeatedMap<String, ? extends List<Integer>>_arrEndList with end offset (exclusive) in the root stream, where each array element of repeated attributeorinstancewith specified name ends. Used only for attributes/instances, that is repeated- Returns:
true, if position tracking is enabled andfalseotherwise
-
-
-
autoRead
boolean autoRead
Determines, if instantiation of user classes (related to user-types, defined inksyfile) automatically read its content from the stream, or that must be performed manually by calling generated_read(),_readBE()or_readLE()method.- Returns:
true, if generated_read()method invoked automatically by class constructors andfalse, if it must be called explicitly
-
-
-
doc
String doc
Documentation string attached to the type definition, specified indocKSY element.- Returns:
- Documentation string for a type. If documentation is missed, returns empty string
-
-