|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectgroovy.gbench.BenchmarkASTTransformation
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION) class BenchmarkASTTransformation
The AST transform to handle @Benchmark annotation
Nested Class Summary | |
---|---|
static class |
BenchmarkASTTransformation.ClosureBenchmarkHandler
|
Property Summary | |
---|---|
static ClassNode |
CLOSURE_HANDLER_TYPE
|
static ClassNode |
DEFAULT_HANDLER_TYPE
|
static ClassNode |
MY_TYPE
|
Method Summary | |
---|---|
Statement
|
handleBenchmark(AnnotationNode benchmark)
|
boolean
|
hasOwnBenchmark(AnnotatedNode node)
|
void
|
transform(ClassNode klass, AnnotationNode benchmark)
|
void
|
transform(MethodNode method, AnnotationNode benchmark)
|
void
|
visit(ASTNode[] nodes, SourceUnit source)
|
Methods inherited from class Object | |
---|---|
getClass, hashCode, equals, toString, notify, notifyAll, wait, wait, wait |
Property Detail |
---|
static final ClassNode CLOSURE_HANDLER_TYPE
static final ClassNode DEFAULT_HANDLER_TYPE
static final ClassNode MY_TYPE
Method Detail |
---|
Statement handleBenchmark(AnnotationNode benchmark)
boolean hasOwnBenchmark(AnnotatedNode node)
void transform(ClassNode klass, AnnotationNode benchmark)
void transform(MethodNode method, AnnotationNode benchmark)
void visit(ASTNode[] nodes, SourceUnit source)
Groovy Documentation