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

java.lang.Object
  extended by org.codehaus.groovy.ast.CodeVisitorSupport
      extended by org.codehaus.groovy.ast.ClassCodeVisitorSupport
          extended by org.codehaus.groovy.grails.web.transform.LineNumberTransform.LineNumberVisitor
All Implemented Interfaces:
org.codehaus.groovy.ast.GroovyClassVisitor, org.codehaus.groovy.ast.GroovyCodeVisitor
Enclosing class:
LineNumberTransform

 class LineNumberTransform.LineNumberVisitor
extends org.codehaus.groovy.ast.ClassCodeVisitorSupport


Field Summary
(package private)  int[] lineNumbers
           
 
Constructor Summary
LineNumberTransform.LineNumberVisitor(int[] lineNumbers)
           
 
Method Summary
protected  org.codehaus.groovy.control.SourceUnit getSourceUnit()
           
 void visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression expression)
           
 void visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression expression)
           
 void visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression expression)
           
 void visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression expression)
           
 void visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression expression)
           
 void visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression expression)
           
 void visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression expression)
           
 void visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression expression)
           
 void visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression expression)
           
 void visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression expression)
           
 void visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression expression)
           
 void visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression expression)
           
 void visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression expression)
           
 void visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression expression)
           
 void visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression expression)
           
 void visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression expression)
           
 void visitListExpression(org.codehaus.groovy.ast.expr.ListExpression expression)
           
 void visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression expression)
           
 void visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression expression)
           
 void visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression expression)
           
 void visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression expression)
           
 void visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression expression)
           
 void visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression expression)
           
 void visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression expression)
           
 void visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression expression)
           
 void visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression expression)
           
 void visitRegexExpression(org.codehaus.groovy.ast.expr.RegexExpression expression)
           
 void visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression expression)
           
 void visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression expression)
           
 void visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression expression)
           
protected  void visitStatement(org.codehaus.groovy.ast.stmt.Statement statement)
           
 void visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression expression)
           
 void visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression expression)
           
 void visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression expression)
           
 void visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression expression)
           
 void visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression expression)
           
 
Methods inherited from class org.codehaus.groovy.ast.ClassCodeVisitorSupport
addError, visitAnnotations, visitAssertStatement, visitBlockStatement, visitBreakStatement, visitCaseStatement, visitCatchStatement, visitClass, visitClassCodeContainer, visitConstructor, visitConstructorOrMethod, visitContinueStatement, visitDoWhileLoop, visitExpressionStatement, visitField, visitForLoop, visitIfElse, visitMethod, visitProperty, visitReturnStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitTryCatchFinally, visitWhileLoop
 
Methods inherited from class org.codehaus.groovy.ast.CodeVisitorSupport
visitListOfExpressions, visitVariableExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineNumbers

int[] lineNumbers
Constructor Detail

LineNumberTransform.LineNumberVisitor

LineNumberTransform.LineNumberVisitor(int[] lineNumbers)
Method Detail

visitStatement

protected void visitStatement(org.codehaus.groovy.ast.stmt.Statement statement)
Overrides:
visitStatement in class org.codehaus.groovy.ast.ClassCodeVisitorSupport

visitMethodCallExpression

public void visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression expression)
Specified by:
visitMethodCallExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitMethodCallExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitStaticMethodCallExpression

public void visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression expression)
Specified by:
visitStaticMethodCallExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitStaticMethodCallExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitConstructorCallExpression

public void visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression expression)
Specified by:
visitConstructorCallExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitConstructorCallExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitBinaryExpression

public void visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression expression)
Specified by:
visitBinaryExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitBinaryExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitTernaryExpression

public void visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression expression)
Specified by:
visitTernaryExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitTernaryExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitShortTernaryExpression

public void visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression expression)
Specified by:
visitShortTernaryExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitShortTernaryExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitPostfixExpression

public void visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression expression)
Specified by:
visitPostfixExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitPostfixExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitPrefixExpression

public void visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression expression)
Specified by:
visitPrefixExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitPrefixExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitBooleanExpression

public void visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression expression)
Specified by:
visitBooleanExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitBooleanExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitNotExpression

public void visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression expression)
Specified by:
visitNotExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitNotExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitClosureExpression

public void visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression expression)
Specified by:
visitClosureExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitClosureExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitTupleExpression

public void visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression expression)
Specified by:
visitTupleExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitTupleExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitListExpression

public void visitListExpression(org.codehaus.groovy.ast.expr.ListExpression expression)
Specified by:
visitListExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitListExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitArrayExpression

public void visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression expression)
Specified by:
visitArrayExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitArrayExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitMapExpression

public void visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression expression)
Specified by:
visitMapExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitMapExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitMapEntryExpression

public void visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression expression)
Specified by:
visitMapEntryExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitMapEntryExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitRangeExpression

public void visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression expression)
Specified by:
visitRangeExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitRangeExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitSpreadExpression

public void visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression expression)
Specified by:
visitSpreadExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitSpreadExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitSpreadMapExpression

public void visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression expression)
Specified by:
visitSpreadMapExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitSpreadMapExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitMethodPointerExpression

public void visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression expression)
Specified by:
visitMethodPointerExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitMethodPointerExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitUnaryMinusExpression

public void visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression expression)
Specified by:
visitUnaryMinusExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitUnaryMinusExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitUnaryPlusExpression

public void visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression expression)
Specified by:
visitUnaryPlusExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitUnaryPlusExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitBitwiseNegationExpression

public void visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression expression)
Specified by:
visitBitwiseNegationExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitBitwiseNegationExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitCastExpression

public void visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression expression)
Specified by:
visitCastExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitCastExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitConstantExpression

public void visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression expression)
Specified by:
visitConstantExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitConstantExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitClassExpression

public void visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression expression)
Specified by:
visitClassExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitClassExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitDeclarationExpression

public void visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression expression)
Specified by:
visitDeclarationExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitDeclarationExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitPropertyExpression

public void visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression expression)
Specified by:
visitPropertyExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitPropertyExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitAttributeExpression

public void visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression expression)
Specified by:
visitAttributeExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitAttributeExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitFieldExpression

public void visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression expression)
Specified by:
visitFieldExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitFieldExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitRegexExpression

public void visitRegexExpression(org.codehaus.groovy.ast.expr.RegexExpression expression)
Specified by:
visitRegexExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitRegexExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitGStringExpression

public void visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression expression)
Specified by:
visitGStringExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitGStringExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitArgumentlistExpression

public void visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression expression)
Specified by:
visitArgumentlistExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitArgumentlistExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitClosureListExpression

public void visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression expression)
Specified by:
visitClosureListExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitClosureListExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

visitBytecodeExpression

public void visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression expression)
Specified by:
visitBytecodeExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
Overrides:
visitBytecodeExpression in class org.codehaus.groovy.ast.CodeVisitorSupport

getSourceUnit

protected org.codehaus.groovy.control.SourceUnit getSourceUnit()
Specified by:
getSourceUnit in class org.codehaus.groovy.ast.ClassCodeVisitorSupport


Copyright (c) 2005-2009 The Grails project