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