org.codehaus.groovy.grails.web.transform
Class LineNumberTransform

java.lang.Object
  extended by org.codehaus.groovy.grails.web.transform.LineNumberTransform
All Implemented Interfaces:
org.codehaus.groovy.transform.ASTTransformation

public class LineNumberTransform
extends Object
implements org.codehaus.groovy.transform.ASTTransformation

Convert line number information to that based on the line number array passed into the line number array in the LineNumber annotation.

Author:
Andrew Eisenberg

Nested Class Summary
(package private)  class LineNumberTransform.LineNumberVisitor
           
 
Constructor Summary
LineNumberTransform()
           
 
Method Summary
(package private)  int[] extractLineNumberArray(org.codehaus.groovy.ast.AnnotationNode node)
           
(package private)  String extractSourceName(org.codehaus.groovy.ast.AnnotationNode node)
           
(package private)  org.codehaus.groovy.ast.AnnotationNode findAnnotation(org.codehaus.groovy.ast.ClassNode clazz)
           
 void visit(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineNumberTransform

public LineNumberTransform()
Method Detail

visit

public void visit(org.codehaus.groovy.ast.ASTNode[] nodes,
                  org.codehaus.groovy.control.SourceUnit source)
Specified by:
visit in interface org.codehaus.groovy.transform.ASTTransformation

extractSourceName

String extractSourceName(org.codehaus.groovy.ast.AnnotationNode node)

findAnnotation

org.codehaus.groovy.ast.AnnotationNode findAnnotation(org.codehaus.groovy.ast.ClassNode clazz)

extractLineNumberArray

int[] extractLineNumberArray(org.codehaus.groovy.ast.AnnotationNode node)


Copyright (c) 2005-2009 The Grails project