Macros

@Derive

Description: Modifies declarations such as structs, classes, or enums as a core macro, and automatically extends interfaces for modified declarations. For details, see Automatically Extending Interfaces.

@DeriveExclude

Description: Excludes fields that do not need to be processed from declarations modified by @derive. For details, see Including Fields Not to Be Processed. By default, fields are processed by deriving.

@DeriveInclude

Description: Adds properties that need to be processed to declarations modified by @derive. For details, see Adding Properties to Be Processed. By default, properties are not processed by deriving.

@DeriveOrder

Description: Specifies the order of processing fields and properties for declarations modified by @derive. For details, see Specifying the Order of Processing Fields and Properties. Generally, this macro is meaningful for the Comparable interface.