Package org.apache.groovy.ginq.transform
Class GinqASTTransformation
java.lang.Object
org.codehaus.groovy.transform.AbstractASTTransformation
org.apache.groovy.ginq.transform.GinqASTTransformation
- All Implemented Interfaces:
ASTTransformation,ErrorCollecting
Handles generation of code for the
@GQ annotation.- Since:
- 4.0.0
-
Field Summary
Fields inherited from class org.codehaus.groovy.transform.AbstractASTTransformation
RETENTION_CLASSNODE, sourceUnit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvisit(ASTNode[] nodes, SourceUnit sourceUnit) Rewrites annotated methods by replacing their bodies with transformed GINQ queries.Methods inherited from class org.codehaus.groovy.transform.AbstractASTTransformation
addError, checkIncludeExcludeUndefinedAware, checkIncludeExcludeUndefinedAware, checkNotInterface, checkPropertyList, checkPropertyList, checkPropertyList, copyAnnotatedNodeAnnotations, copyAnnotatedNodeAnnotations, deemedInternal, deemedInternalName, getAnnotationName, getMemberClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberStringList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, init, markAsInternal, memberHasValue, shouldSkip, shouldSkip, shouldSkip, shouldSkipOnDescriptorUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, tokenize
-
Constructor Details
-
GinqASTTransformation
public GinqASTTransformation()
-
-
Method Details
-
visit
Rewrites annotated methods by replacing their bodies with transformed GINQ queries.- Parameters:
nodes- the transformation nodessourceUnit- the source unit being transformed
-