|
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.ThreadingAwareASTTransformation
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION) public class ThreadingAwareASTTransformation extends AbstractASTTransformation
Handles generation of code for the @ThreadingAware annotation.
Field Summary | |
---|---|
private static String |
CALLABLE
|
private static ClassNode |
CALLABLE_TYPE
|
private static String |
CLOSURE
|
private static ClassNode |
EXECUTOR_SERVICE_TYPE
|
private static ClassNode |
FUTURE_TYPE
|
private static Logger |
LOG
|
private static ClassNode |
MY_TYPE
|
private static String |
RUNNABLE
|
private static ClassNode |
RUNNABLE_TYPE
|
private static ClassNode |
THREADING_HANDLER_TYPE
|
private static ClassNode |
UITHREAD_MANAGER_TYPE
|
Fields inherited from class AbstractASTTransformation | |
---|---|
APPLICATION_HOLDER_TYPE, COLLECTIONS_CLASS |
Constructor Summary | |
ThreadingAwareASTTransformation()
|
Method Summary | |
---|---|
static void
|
apply(ClassNode classNode)
|
static boolean
|
hasThreadingAwareAnnotation(AnnotatedNode node)
Convenience method to see if an annotated node is @ThreadingAware. |
private static Expression
|
uiThreadManagerInstance()
|
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 CALLABLE
private static final ClassNode CALLABLE_TYPE
private static final String CLOSURE
private static final ClassNode EXECUTOR_SERVICE_TYPE
private static final ClassNode FUTURE_TYPE
private static final Logger LOG
private static ClassNode MY_TYPE
private static final String RUNNABLE
private static final ClassNode RUNNABLE_TYPE
private static ClassNode THREADING_HANDLER_TYPE
private static final ClassNode UITHREAD_MANAGER_TYPE
Constructor Detail |
---|
ThreadingAwareASTTransformation()
Method Detail |
---|
public static void apply(ClassNode classNode)
public static boolean hasThreadingAwareAnnotation(AnnotatedNode node)
node
- the node to check
private static Expression uiThreadManagerInstance()
public void visit(ASTNode[] nodes, SourceUnit source)
nodes
- the ast nodessource
- the source unit for the nodes
Groovy Documentation