@GroovyASTTransformation(phase: CompilePhase.CANONICALIZATION) abstract class AbstractMemoizeASTTransformation extends java.lang.Object implements ASTTransformation, TransformWithPriority
| Modifiers | Name | Description |
|---|---|---|
protected static java.lang.String |
CLAZZ |
|
protected static java.lang.String |
EXPIRE |
|
protected static java.lang.String |
GET_REDIS_SERVICE |
|
protected static java.lang.String |
GSTRING |
|
protected static java.lang.String |
HASH_CODE |
|
protected static java.lang.String |
KEY |
|
protected static java.lang.String |
MEMBER |
|
protected static java.lang.String |
MEMOIZE_KEY |
|
protected static java.lang.String |
PRINTLN |
|
protected static java.lang.String |
REDIS_SERVICE |
|
protected static java.lang.String |
THIS |
| Type | Name and description |
|---|---|
static ClassNode |
AUTOWIRED_CLASS_NODE |
| Constructor and description |
|---|
AbstractMemoizeASTTransformation() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected static void |
addError(java.lang.String msg, ASTNode node, SourceUnit source) |
|
protected static void |
addRedisServiceMemoizeExpireExpression(java.util.Map memoizeProperties, ArgumentListExpression argumentListExpression) |
|
protected void |
addRedisServiceMemoizeInvocation(BlockStatement body, MethodNode methodNode, java.util.Map memoizeProperties) |
|
protected static void |
addRedisServiceMemoizeKeyExpression(java.util.Map memoizeProperties, ArgumentListExpression argumentListExpression) |
|
protected abstract void |
generateMemoizeProperties(ASTNode[] astNodes, SourceUnit sourceUnit, java.util.Map memoizeProperties)method to add the key and expires and options if they exist |
|
protected static void |
injectService(SourceUnit sourceUnit, java.lang.String serviceName, java.lang.Class serviceClass)Determine if the user missed injecting the redisService into the class with the
|
|
protected static ClosureExpression |
makeClosureExpression(MethodNode methodNode) |
|
protected static ConstantExpression |
makeConstantExpression(java.lang.Object constantExpression) |
|
protected abstract ArgumentListExpression |
makeRedisServiceArgumentListExpression(java.util.Map memoizeProperties) |
|
protected abstract ConstantExpression |
makeRedisServiceConstantExpression() |
|
protected java.util.List<Statement> |
memoizeMethod(MethodNode methodNode, java.util.Map memoizeProperties) |
|
void |
visit(ASTNode[] astNodes, SourceUnit sourceUnit) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
method to add the key and expires and options if they exist @return
astNodes - the ast nodessourceUnit - the source unitmemoizeProperties - map to put data inDetermine if the user missed injecting the redisService into the class with the
sourceUnit - SourceUnit to detect and/or inject service intoserviceName - name of the service to detect and/or injectserviceClass - Class of the service