|
Griffon 1.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.griffon.ast.AbstractASTTransformation
org.codehaus.griffon.ast.MVCAwareASTTransformation
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION) public class MVCAwareASTTransformation extends AbstractASTTransformation
Handles generation of code for the @MVCAware annotation.
Field Summary | |
---|---|
private static String |
ARGS
|
private static String |
BUILD_MVC_GROUP
|
private static String |
CREATE_MVC_GROUP
|
private static String |
DESTROY_MVC_GROUP
|
private static String |
HANDLER
|
private static Logger |
LOG
|
private static ClassNode |
MVCCLOSURE_TYPE
|
private static ClassNode |
MVCGROUP_TYPE
|
private static ClassNode |
MVC_HANDLER_TYPE
|
private static String |
MVC_NAME
|
private static String |
MVC_TYPE
|
private static ClassNode |
MY_TYPE
|
private static String |
WITH_MVC_GROUP
|
Fields inherited from class AbstractASTTransformation | |
---|---|
APPLICATION_HOLDER_TYPE, COLLECTIONS_CLASS |
Constructor Summary | |
MVCAwareASTTransformation()
|
Method Summary | |
---|---|
static void
|
apply(ClassNode classNode)
|
static boolean
|
hasMVCAwareAnnotation(AnnotatedNode node)
Convenience method to see if an annotated node is @MVCAware. |
static Expression
|
mvcGroupManagerInstance()
|
void
|
visit(ASTNode[] nodes, SourceUnit source)
Handles the bulk of the processing, mostly delegating to other methods. |
Methods inherited from class AbstractASTTransformation | |
---|---|
addError, applicationInstance, checkNodesForAnnotationAndType, emptyMap, makeClassSafe, makeClassSafe, makeClassSafe, newClass |
Field Detail |
---|
private static final String ARGS
private static final String BUILD_MVC_GROUP
private static final String CREATE_MVC_GROUP
private static final String DESTROY_MVC_GROUP
private static final String HANDLER
private static final Logger LOG
private static final ClassNode MVCCLOSURE_TYPE
private static final ClassNode MVCGROUP_TYPE
private static ClassNode MVC_HANDLER_TYPE
private static final String MVC_NAME
private static final String MVC_TYPE
private static ClassNode MY_TYPE
private static final String WITH_MVC_GROUP
Constructor Detail |
---|
MVCAwareASTTransformation()
Method Detail |
---|
public static void apply(ClassNode classNode)
public static boolean hasMVCAwareAnnotation(AnnotatedNode node)
node
- the node to check
public static Expression mvcGroupManagerInstance()
public void visit(ASTNode[] nodes, SourceUnit source)
nodes
- the ast nodessource
- the source unit for the nodes
Groovy Documentation