- org.codehaus.groovy.control.ResolveVisitor
-
Visitor to resolve Types and convert VariableExpression to
ClassExpressions if needed. The ResolveVisitor will try to
find the Class for a ClassExpression and prints an error if
it fails to do so. Constructions like C[], foo as C, (C) foo
will force creation of a ClassExpression for C
Note: the method to start the resolving is startResolving(ClassNode, SourceUnit).
- Authors:
- Jochen Theodorou
- Roshan Dawrani
- Alex Tkachman
-
-
Methods Summary
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class ClassCodeExpressionTransformer |
visitField, visitReturnStatement, visitProperty, visitExpressionStatement, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitAssertStatement, visitIfElse, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, visitAnnotations, transform, visitMethod, visitConstructor, visitBlockStatement, visitClass, visitPackage, visitCatchStatement, visitDeclarationExpression, visitImports, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitConstantExpression, visitListExpression, visitClassExpression, visitPropertyExpression, visitVariableExpression, visitTupleExpression, visitArgumentlistExpression, visitMethodCallExpression, visitClosureExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class ClassCodeVisitorSupport |
visitMethod, visitField, visitReturnStatement, visitProperty, visitConstructor, visitExpressionStatement, visitBlockStatement, visitClass, visitPackage, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitCatchStatement, visitAssertStatement, visitIfElse, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, visitDeclarationExpression, visitImports, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitAnnotations, visitConstantExpression, visitListExpression, visitClassExpression, visitPropertyExpression, visitVariableExpression, visitTupleExpression, visitArgumentlistExpression, visitMethodCallExpression, visitClosureExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
-
-
Field Detail
-
public static final String[] DEFAULT_IMPORTS
-
Method Detail
-
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
Copyright © 2003-2014 The Codehaus. All rights reserved.