@CompileStatic abstract class AbstractGormASTTransformation extends AbstractASTTransformation implements CompilationUnitAware, ASTTransformation, Ordered
Abstract base class for GORM AST transformations
| Fields inherited from class | Fields |
|---|---|
class AbstractASTTransformation |
RETENTION_CLASSNODE |
| Type | Name and description |
|---|---|
CompilationUnit |
compilationUnit |
| Constructor and description |
|---|
AbstractGormASTTransformation() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected abstract ClassNode |
getAnnotationType() |
|
protected abstract java.lang.Object |
getAppliedMarker() |
|
int |
getOrder() |
|
protected boolean |
isAlreadyApplied(AnnotatedNode node)Whether the given node already carries this transformation's applied marker. |
|
protected boolean |
isValidAnnotation(AnnotationNode annotationNode, AnnotatedNode classNode) |
|
protected void |
markApplied(AnnotatedNode node)Marks the given node as having had this transformation applied, so a later isAlreadyApplied check short-circuits. |
|
abstract int |
priority() |
|
final void |
visit(ASTNode[] astNodes, SourceUnit source) |
|
abstract void |
visit(SourceUnit source, AnnotationNode annotationNode, AnnotatedNode annotatedNode) |
| 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 |
Whether the given node already carries this transformation's applied marker.
node - The nodeMarks the given node as having had this transformation applied, so a later isAlreadyApplied check short-circuits.
node - The node