Groovy 2.2.0

org.codehaus.groovy.transform
[Java] Class LogASTTransformation

java.lang.Object
  org.codehaus.groovy.transform.LogASTTransformation
All Implemented Interfaces:
ASTTransformation

@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class LogASTTransformation
extends Object

This class provides an AST Transformation to add a log field to a class.

Authors:
Guillaume Laforge
Jochen Theodorou
Dinko Srkoc
Hamlet D'Arcy
Raffaele Cigni
Alberto Vilches Raton
Tomasz Bujok
Martin Ghados
Matthias Cullmann


Nested Class Summary
static class LogASTTransformation.AbstractLoggingStrategy

interface LogASTTransformation.LoggingStrategy

A LoggingStrategy defines how to wire a new logger instance into an existing class.

 
Field Summary
static String DEFAULT_CATEGORY_NAME

This is just a dummy value used because String annotations values can not be null.

 
Method Summary
void addError(String msg, ASTNode expr, SourceUnit source)

void visit(ASTNode[] nodes, SourceUnit source)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

DEFAULT_CATEGORY_NAME

public static final String DEFAULT_CATEGORY_NAME
This is just a dummy value used because String annotations values can not be null. It will be replaced by the fully qualified class name of the annotated class.


 
Method Detail

addError

public void addError(String msg, ASTNode expr, SourceUnit source)


visit

public void visit(ASTNode[] nodes, SourceUnit source)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.