@GroovyASTTransformation(phase: CompilePhase.SEMANTIC_ANALYSIS) @CompileStatic class CacheableTransformation extends AbstractCacheTransformation
ASTTransformation for Cacheable
| Modifiers | Name | Description |
|---|---|---|
static ClassNode |
ANNOTATION_TYPE |
|
static String |
CACHE_VALUE_WRAPPER_LOCAL_VARIABLE_NAME |
| Fields inherited from class | Fields |
|---|---|
class AbstractCacheTransformation |
CACHE_KEY_LOCAL_VARIABLE_NAME, CACHE_ORIGINAL_METHOD_RETURN_VALUE_LOCAL_VARIABLE_NAME, CACHE_VARIABLE_LOCAL_VARIABLE_NAME, GRAILS_CACHE_KEY_GENERATOR_PROPERTY_NAME, GRAILS_CACHE_MANAGER_PROPERTY_NAME, METHOD_PARAMETER_MAP_LOCAL_VARIABLE_NAME, METHOD_PREFIX, POSITION |
| Constructor and description |
|---|
CacheableTransformation() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Expression |
buildDelegatingMethodCall(SourceUnit sourceUnit, AnnotationNode annotationNode, ClassNode classNode, MethodNode methodNode, MethodCallExpression originalMethodCallExpr, BlockStatement newMethodBody) |
|
protected ClassNode |
getAnnotationType() |
| Methods inherited from class | Name |
|---|---|
class AbstractCacheTransformation |
declareAndInitializeParameterValueMap, declareCache, declareCacheKey, enhanceClassNode, getAppliedMarker, getOrder, getRenamedMethodPrefix, handleCacheCondition, makeClosureParameterAware |