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