Griffon 1.2.0

org.codehaus.griffon.ast
[Java] Class MVCAwareASTTransformation

java.lang.Object
  org.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.

Authors:
Andres Almiray


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

ARGS

private static final String ARGS


BUILD_MVC_GROUP

private static final String BUILD_MVC_GROUP


CREATE_MVC_GROUP

private static final String CREATE_MVC_GROUP


DESTROY_MVC_GROUP

private static final String DESTROY_MVC_GROUP


HANDLER

private static final String HANDLER


LOG

private static final Logger LOG


MVCCLOSURE_TYPE

private static final ClassNode MVCCLOSURE_TYPE


MVCGROUP_TYPE

private static final ClassNode MVCGROUP_TYPE


MVC_HANDLER_TYPE

private static ClassNode MVC_HANDLER_TYPE


MVC_NAME

private static final String MVC_NAME


MVC_TYPE

private static final String MVC_TYPE


MY_TYPE

private static ClassNode MY_TYPE


WITH_MVC_GROUP

private static final String WITH_MVC_GROUP


 
Constructor Detail

MVCAwareASTTransformation

MVCAwareASTTransformation()


 
Method Detail

apply

public static void apply(ClassNode classNode)


hasMVCAwareAnnotation

public static boolean hasMVCAwareAnnotation(AnnotatedNode node)
Convenience method to see if an annotated node is @MVCAware.
Parameters:
node - the node to check
Returns:
true if the node is an event publisher


mvcGroupManagerInstance

public static Expression mvcGroupManagerInstance()


visit

public void visit(ASTNode[] nodes, SourceUnit source)
Handles the bulk of the processing, mostly delegating to other methods.
Parameters:
nodes - the ast nodes
source - the source unit for the nodes


 

Groovy Documentation