@groovy.transform.CompileStatic interface GroovyTransformOrder
Helper class to store the transformation order for groovy based AST transformations
Modifiers | Name | Description |
---|---|---|
static int |
API_DELEGATE_ORDER |
Similar to Groovy's
|
static int |
ARTIFACT_TYPE_ORDER |
Used to apply transformers to classes not located in Grails directory structure, i.e. |
static int |
BINDING_FORMAT_ORDER |
Allows specifying the format for a field when binding |
static int |
CACHEABLE_ORDER |
Implements Cacheable |
static int |
CACHE_EVICT_ORDER |
Implements CacheEvict |
static int |
CACHE_PUT_ORDER |
Implements CachePut |
static int |
DATA_SERVICE_ORDER |
Implements a Data Service |
static int |
DECREMENT_PRIORITY |
|
static int |
DELEGATE_ASYNC_ORDER |
Changes methods in a file to return a promise instead of a value |
static int |
DIRTY_CHECK_ORDER |
Enables dirty tracking to occur at the domain class level instead of at the ORM level |
static int |
ENHANCES_ORDER |
Transform that finds any `@Enhance` annotation on traits to automatically add this trait to that artefact type |
static int |
ENTITY_ORDER |
Adds basic fields like id, version, toString, and associations Adds the DomainClassArtefactType |
static int |
FINDER_ORDER |
Transforms groovy finders into DetachedCriteria |
static int |
GLOBAL_GRAILS_TRANSFORM_ORDER |
Grails allows applying transforms by artefact type, this transformation is what implements that |
static int |
GLOBAL_IMPORT_ORDER |
Adds global imports |
static int |
GLOBAL_JPA_ORDER |
Transforms a JPA entity into a GORM entity |
static int |
GORM_ASYNC_ORDER |
Changes methods in a file to return a promise instead of a value |
static int |
GORM_ENTITY_ORDER |
Transforms a given class to a GORM Entity |
static int |
GORM_TRANSFORMS_ORDER |
Several of the gorm related transforms iterate not at the priority level but on the node level, this class performs those iterations |
static int |
GSP_LINE_ORDER |
Adds line numbers to GSPs |
static int |
HIBERNATE5_ORDER |
getter/setter transforms for hibernate entities |
static int |
HIGHEST_PRIORITY |
|
static int |
HIGHEST_STARTING_PRIORITY |
|
static int |
INTEGRATION_ORDER |
|
static int |
JPA_GORM_ENTITY_ORDER |
Makes all GormEntities be a JPA entity |
static int |
LINK_ORDER |
Allows adding link() support to any class |
static int |
LOWEST_PRIORITY |
|
static int |
MIXIN_ORDER |
Adds methods from one class onto another |
static int |
PUBLISHER_ORDER |
Implements Publisher |
static int |
RESOURCE_ORDER |
Exposes a domain class as a restful resource |
static int |
ROLLBACK_ORDER |
Implements Rollback |
static int |
RX_SCHEDULER_ORDER |
Transforms a method to non-block IO |
static int |
SUBSCRIBER_ORDER |
Implements AnnotatedSubscriber |
static int |
TENANT_ORDER |
Implements WithoutTenant, WithTenant, and CurrentTenant transforms |
static int |
TRANSACTIONAL_ORDER |
Implements the Transaction, and Readonly transforms |
static int |
VIEWS_GSON_ORDER |
Enhances gson view scripts with Trait behavior |
static int |
VIEWS_MARKUP_ORDER |
Enhances view scripts with Trait behavior |
static int |
VIEWS_ORDER |
Enhances view scripts with Trait behavior |
static int |
WHERE_ORDER |
Transforms where queries into DetachedCriteria |
Similar to Groovy's
Used to apply transformers to classes not located in Grails directory structure, i.e. @Artefact('Controller')
Allows specifying the format for a field when binding
Implements Cacheable
Implements CacheEvict
Implements CachePut
Implements a Data Service
Changes methods in a file to return a promise instead of a value
Enables dirty tracking to occur at the domain class level instead of at the ORM level
Transform that finds any `@Enhance` annotation on traits to automatically add this trait to that artefact type
Adds basic fields like id, version, toString, and associations Adds the DomainClassArtefactType
Transforms groovy finders into DetachedCriteria
Grails allows applying transforms by artefact type, this transformation is what implements that
Adds global imports
Transforms a JPA entity into a GORM entity
Changes methods in a file to return a promise instead of a value
Transforms a given class to a GORM Entity
Several of the gorm related transforms iterate not at the priority level but on the node level, this class performs those iterations
Adds line numbers to GSPs
getter/setter transforms for hibernate entities
Makes all GormEntities be a JPA entity
Allows adding link() support to any class
Adds methods from one class onto another
Implements Publisher
Exposes a domain class as a restful resource
Implements Rollback
Transforms a method to non-block IO
Implements AnnotatedSubscriber
Implements WithoutTenant, WithTenant, and CurrentTenant transforms
Implements the Transaction, and Readonly transforms
Enhances gson view scripts with Trait behavior
Enhances view scripts with Trait behavior
Enhances view scripts with Trait behavior
Transforms where queries into DetachedCriteria