Groovy 2.2.0

org.codehaus.groovy.control
[Java] Class StaticImportVisitor

java.lang.Object
  org.codehaus.groovy.ast.CodeVisitorSupport
      org.codehaus.groovy.ast.ClassCodeVisitorSupport
          org.codehaus.groovy.ast.ClassCodeExpressionTransformer
              org.codehaus.groovy.control.StaticImportVisitor

public class StaticImportVisitor
extends ClassCodeExpressionTransformer

Visitor to resolve constants and method calls from static Imports

Authors:
Jochen Theodorou
Paul King


Method Summary
protected SourceUnit getSourceUnit()

Expression transform(Expression exp)

protected Expression transformBinaryExpression(BinaryExpression be)

protected Expression transformClosureExpression(ClosureExpression ce)

protected Expression transformConstructorCallExpression(ConstructorCallExpression cce)

protected Expression transformMethodCallExpression(MethodCallExpression mce)

protected Expression transformPropertyExpression(PropertyExpression pe)

protected Expression transformVariableExpression(VariableExpression ve)

void visitAnnotations(AnnotatedNode node)

void visitClass(ClassNode node, SourceUnit source)

protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)

 
Methods inherited from class ClassCodeExpressionTransformer
visitField, visitReturnStatement, visitProperty, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitExpressionStatement, visitAnnotations, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, transform, visitMethod, visitConstructor, visitBlockStatement, visitPackage, visitClass, visitCatchStatement, visitImports, visitDeclarationExpression, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitClassExpression, visitConstantExpression, visitListExpression, visitPropertyExpression, visitMethodCallExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitClosureExpression, visitTupleExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitVariableExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitArgumentlistExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class ClassCodeVisitorSupport
visitMethod, visitField, visitReturnStatement, visitProperty, visitConstructor, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitExpressionStatement, visitBlockStatement, visitPackage, visitClass, visitAnnotations, visitCatchStatement, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, visitImports, visitDeclarationExpression, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitClassExpression, visitConstantExpression, visitListExpression, visitPropertyExpression, visitMethodCallExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitClosureExpression, visitTupleExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitVariableExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitArgumentlistExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

getSourceUnit

protected SourceUnit getSourceUnit()


transform

public Expression transform(Expression exp)


transformBinaryExpression

protected Expression transformBinaryExpression(BinaryExpression be)


transformClosureExpression

protected Expression transformClosureExpression(ClosureExpression ce)


transformConstructorCallExpression

protected Expression transformConstructorCallExpression(ConstructorCallExpression cce)


transformMethodCallExpression

protected Expression transformMethodCallExpression(MethodCallExpression mce)


transformPropertyExpression

protected Expression transformPropertyExpression(PropertyExpression pe)


transformVariableExpression

protected Expression transformVariableExpression(VariableExpression ve)


visitAnnotations

@Override
public void visitAnnotations(AnnotatedNode node)


visitClass

public void visitClass(ClassNode node, SourceUnit source)


visitConstructorOrMethod

@Override
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)


 

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