Groovy Documentation

groovy.gbench
[Groovy] Class BenchmarkASTTransformation

java.lang.Object
  groovy.gbench.BenchmarkASTTransformation
All Implemented Interfaces:
ASTTransformation

@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
class BenchmarkASTTransformation

The AST transform to handle @Benchmark annotation

Authors:
Nagai Masato


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

CLOSURE_HANDLER_TYPE

static final ClassNode CLOSURE_HANDLER_TYPE


DEFAULT_HANDLER_TYPE

static final ClassNode DEFAULT_HANDLER_TYPE


MY_TYPE

static final ClassNode MY_TYPE


 
Method Detail

handleBenchmark

Statement handleBenchmark(AnnotationNode benchmark)


hasOwnBenchmark

boolean hasOwnBenchmark(AnnotatedNode node)


transform

void transform(ClassNode klass, AnnotationNode benchmark)


transform

void transform(MethodNode method, AnnotationNode benchmark)


visit

void visit(ASTNode[] nodes, SourceUnit source)


 

Groovy Documentation