@CompileStatic abstract class AbstractCacheTransformation extends AbstractMethodDecoratingTransformation
Abstract implementation for implementers of cache annotations
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
CACHE_KEY_LOCAL_VARIABLE_NAME |
|
static java.lang.String |
CACHE_ORIGINAL_METHOD_RETURN_VALUE_LOCAL_VARIABLE_NAME |
|
static java.lang.String |
CACHE_VARIABLE_LOCAL_VARIABLE_NAME |
|
static java.lang.String |
GRAILS_CACHE_KEY_GENERATOR_PROPERTY_NAME |
|
static java.lang.String |
GRAILS_CACHE_MANAGER_PROPERTY_NAME |
|
static java.lang.String |
METHOD_PARAMETER_MAP_LOCAL_VARIABLE_NAME |
|
static java.lang.String |
METHOD_PREFIX |
| Fields inherited from class | Fields |
|---|---|
class AbstractMethodDecoratingTransformation |
DECORATED_METHODS |
| Properties inherited from class | Properties |
|---|---|
class AbstractGormASTTransformation |
compilationUnit |
| Constructor and description |
|---|
AbstractCacheTransformation() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected VariableExpression |
declareAndInitializeParameterValueMap(AnnotationNode annotationNode, MethodNode methodToCache, BlockStatement codeBlock) |
|
protected VariableExpression |
declareCache(AnnotationNode annotationNode, VariableExpression cacheManagerVariableExpression, BlockStatement cacheBlock) |
|
protected VariableExpression |
declareCacheKey(SourceUnit sourceUnit, AnnotationNode annotationNode, ClassNode classNode, MethodNode methodNode, BlockStatement cacheBlock) |
|
protected void |
enhanceClassNode(SourceUnit sourceUnit, AnnotationNode annotationNode, ClassNode classNode) |
|
protected java.lang.Object |
getAppliedMarker() |
|
protected java.lang.String |
getRenamedMethodPrefix() |
|
protected void |
handleCacheCondition(SourceUnit sourceUnit, AnnotationNode annotationNode, MethodNode methodNode, MethodCallExpression originalMethodCallExpr, BlockStatement newMethodBody) |
|
protected void |
makeClosureParameterAware(SourceUnit sourceUnit, MethodNode method, ClosureExpression closureExpression) |