@org.codehaus.groovy.transform.GroovyASTTransformation(phase: CompilePhase.CANONICALIZATION) abstract class AbstractMemoizeASTTransformation extends java.lang.Object implements org.codehaus.groovy.transform.ASTTransformation
| Modifiers | Name | Description |
|---|---|---|
static org.codehaus.groovy.ast.ClassNode |
AUTOWIRED_CLASS_NODE |
|
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 |
| Constructor and description |
|---|
AbstractMemoizeASTTransformation
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected static void |
addError(java.lang.String msg, org.codehaus.groovy.ast.ASTNode node, org.codehaus.groovy.control.SourceUnit source) |
|
protected static void |
addRedisServiceMemoizeExpireExpression(java.util.Map memoizeProperties, org.codehaus.groovy.ast.expr.ArgumentListExpression argumentListExpression) |
|
protected void |
addRedisServiceMemoizeInvocation(org.codehaus.groovy.ast.stmt.BlockStatement body, org.codehaus.groovy.ast.MethodNode methodNode, java.util.Map memoizeProperties) |
|
protected static void |
addRedisServiceMemoizeKeyExpression(java.util.Map memoizeProperties, org.codehaus.groovy.ast.expr.ArgumentListExpression argumentListExpression) |
|
protected abstract void |
generateMemoizeProperties(org.codehaus.groovy.ast.ASTNode[] astNodes, org.codehaus.groovy.control.SourceUnit sourceUnit, java.util.Map memoizeProperties)method to add the key and expires and options if they exist |
|
protected static void |
injectService(org.codehaus.groovy.control.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 org.codehaus.groovy.ast.expr.ClosureExpression |
makeClosureExpression(org.codehaus.groovy.ast.MethodNode methodNode) |
|
protected static org.codehaus.groovy.ast.expr.ConstantExpression |
makeConstantExpression(java.lang.Object constantExpression) |
|
protected abstract org.codehaus.groovy.ast.expr.ArgumentListExpression |
makeRedisServiceArgumentListExpression(java.util.Map memoizeProperties) |
|
protected abstract org.codehaus.groovy.ast.expr.ConstantExpression |
makeRedisServiceConstantExpression() |
|
protected java.util.List<org.codehaus.groovy.ast.stmt.Statement> |
memoizeMethod(org.codehaus.groovy.ast.MethodNode methodNode, java.util.Map memoizeProperties) |
|
void |
visit(org.codehaus.groovy.ast.ASTNode[] astNodes, org.codehaus.groovy.control.SourceUnit sourceUnit) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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