org.codehaus.groovy.transform
Class LogASTTransformation

java.lang.Object
  extended by 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

Constructor Summary
LogASTTransformation()
           
 
Method Summary
 void addError(String msg, ASTNode expr, SourceUnit source)
           
 void visit(ASTNode[] nodes, SourceUnit source)
          The call made when the compiler encounters an AST Transformation Annotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogASTTransformation

public LogASTTransformation()
Method Detail

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 triggered
source - The source unit being compiled

addError

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

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