org.codehaus.groovy.transform
Class LogASTTransformation
java.lang.Object
org.codehaus.groovy.transform.LogASTTransformation
- All Implemented Interfaces:
- ASTTransformation
public class LogASTTransformation
- extends Object
- implements ASTTransformation
This class provides an AST Transformation to add a log field to a class.
- Author:
- Guillaume Laforge, Jochen Theodorou, Dinko Srkoc, Hamlet D'Arcy, Raffaele Cigni, Alberto Vilches Raton, Tomasz Bujok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogASTTransformation
public LogASTTransformation()
visit
public void visit(ASTNode[] nodes,
SourceUnit source)
- Description copied from interface:
ASTTransformation
- The call made when the compiler encounters an AST Transformation Annotation
- Specified by:
visit in interface ASTTransformation
- Parameters:
nodes - The ASTnodes when the call was triggeredsource - The source unit being compiled
addError
public void addError(String msg,
ASTNode expr,
SourceUnit source)