Package org.freeyourgadget.kaitai
Class KaitaiExtension
java.lang.Object
org.freeyourgadget.kaitai.KaitaiExtension
Configuration for the Kaitai Struct compiler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.ConfigurableFileCollectionExtra search directories for .ksy imports.abstract org.gradle.api.provider.Property<String> Java package for the generated classes.abstract org.gradle.api.provider.Property<Boolean> Set opaque (external) types on or off.abstract org.gradle.api.file.DirectoryPropertyDirectory for the generated sources.abstract org.gradle.api.provider.Property<Boolean> Generate read-write (serialization) support in the classes.abstract org.gradle.api.file.DirectoryPropertyDirectory that contains the .ksy source files.abstract org.gradle.api.provider.Property<String> Target language.
-
Constructor Details
-
KaitaiExtension
public KaitaiExtension()
-
-
Method Details
-
getSourceDir
public abstract org.gradle.api.file.DirectoryProperty getSourceDir()Directory that contains the .ksy source files. Default: src/main/ksy -
getOutputDir
public abstract org.gradle.api.file.DirectoryProperty getOutputDir()Directory for the generated sources. Default: build/generated/kaitai -
getTarget
Target language. Default: "java" -
getJavaPackage
Java package for the generated classes. Default: "" (default package) -
getImportPaths
public abstract org.gradle.api.file.ConfigurableFileCollection getImportPaths()Extra search directories for .ksy imports. The source directory is always included. -
getOpaqueTypes
Set opaque (external) types on or off. Default: false -
getReadWrite
Generate read-write (serialization) support in the classes.
-