@CompileStatic @GroovyASTTransformation(phase: CompilePhase.CANONICALIZATION) class OrderedGormTransformation extends AbstractASTTransformation implements CompilationUnitAware, TransformWithPriority
Central AST transformation that ensures that GORM AST Transformations are executed in the correct order. Each GORM transform can implement the Ordered interface to achieve property placement. The transforms used by this cannot use TransformWithPriority because they iteratively get executed on each visited node, instead of executing only one transform across all nodes
| Fields inherited from class | Fields |
|---|---|
class AbstractASTTransformation |
RETENTION_CLASSNODE |
| Type | Name and description |
|---|---|
CompilationUnit |
compilationUnit |
| Constructor and description |
|---|
OrderedGormTransformation() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Iterable<TransformationInvocation> |
collectAndOrderGormTransformations(AnnotatedNode annotatedNode) |
|
protected java.lang.String |
findTransformName(AnnotationNode ann) |
|
int |
priority() |
|
void |
visit(ASTNode[] astNodes, SourceUnit source) |
| Methods inherited from class | Name |
|---|---|
class AbstractASTTransformation |
addError, checkPropertyList, checkPropertyList, checkPropertyList, deemedInternalName, equals, getAnnotationName, getClass, getMemberClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberStringList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, hashCode, memberHasValue, notify, notifyAll, shouldSkip, shouldSkip, shouldSkipOnDescriptorUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, toString, tokenize, visit, wait, wait, wait |