- 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, visitProperty, visitReturnStatement, visitExpressionStatement, visitAssertStatement, visitSwitch, visitCaseStatement, visitThrowStatement, visitSynchronizedStatement, visitForLoop, visitWhileLoop, visitDoWhileLoop, visitIfElse, visitAnnotations, transform, visitMethod, visitConstructor, visitTryCatchFinally, visitBreakStatement, visitContinueStatement, visitCatchStatement, visitBlockStatement, visitDeclarationExpression, visitClass, visitPackage, visitImports, visitClassExpression, visitPropertyExpression, visitListExpression, visitConstantExpression, visitVariableExpression, visitArgumentlistExpression, visitMethodCallExpression, visitTupleExpression, visitStaticMethodCallExpression, visitClosureExpression, visitConstructorCallExpression, visitTernaryExpression, visitShortTernaryExpression, visitBinaryExpression, visitPrefixExpression, visitPostfixExpression, visitBooleanExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitAttributeExpression, visitFieldExpression, visitMethodPointerExpression, visitGStringExpression, visitArrayExpression, visitSpreadExpression, visitSpreadMapExpression, visitNotExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class ClassCodeVisitorSupport |
visitMethod, visitField, visitProperty, visitConstructor, visitReturnStatement, visitExpressionStatement, visitAssertStatement, visitTryCatchFinally, visitSwitch, visitCaseStatement, visitBreakStatement, visitContinueStatement, visitThrowStatement, visitSynchronizedStatement, visitCatchStatement, visitBlockStatement, visitForLoop, visitWhileLoop, visitDoWhileLoop, visitIfElse, visitDeclarationExpression, visitClass, visitPackage, visitAnnotations, visitImports, visitClassExpression, visitPropertyExpression, visitListExpression, visitConstantExpression, visitVariableExpression, visitArgumentlistExpression, visitMethodCallExpression, visitTupleExpression, visitStaticMethodCallExpression, visitClosureExpression, visitConstructorCallExpression, visitTernaryExpression, visitShortTernaryExpression, visitBinaryExpression, visitPrefixExpression, visitPostfixExpression, visitBooleanExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitAttributeExpression, visitFieldExpression, visitMethodPointerExpression, visitGStringExpression, visitArrayExpression, visitSpreadExpression, visitSpreadMapExpression, visitNotExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, 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-2016 The Apache Software Foundation. All rights reserved.