org.codehaus.groovy.classgen
[Java] Class VariableScopeVisitor
java.lang.Object
org.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeVisitorSupport
org.codehaus.groovy.classgen.VariableScopeVisitor
public class VariableScopeVisitor
extends ClassCodeVisitorSupport
goes through an AST and initializes the scopes
- Authors:
- Jochen Theodorou
Methods inherited from class ClassCodeVisitorSupport
|
visitMethod, visitField, visitProperty, visitConstructor, visitReturnStatement, visitBlockStatement, visitClass, visitPackage, visitForLoop, visitSwitch, visitWhileLoop, visitExpressionStatement, visitDoWhileLoop, visitAnnotations, visitCatchStatement, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, visitDeclarationExpression, visitImports, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitClassExpression, visitPropertyExpression, visitListExpression, visitConstantExpression, 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, visitConstructorCallExpression, visitTernaryExpression, visitMethodCallExpression, visitStaticMethodCallExpression, visitBinaryExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class CodeVisitorSupport
|
visitReturnStatement, visitClassExpression, visitPropertyExpression, visitListExpression, visitConstantExpression, visitBlockStatement, visitForLoop, visitSwitch, visitWhileLoop, visitExpressionStatement, visitDoWhileLoop, 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, visitCatchStatement, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, visitDeclarationExpression, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitConstructorCallExpression, visitTernaryExpression, visitMethodCallExpression, visitStaticMethodCallExpression, visitBinaryExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
VariableScopeVisitor
public java.lang.Object VariableScopeVisitor(SourceUnit source)
-
getSourceUnit
protected SourceUnit getSourceUnit()
-
prepareVisit
public void prepareVisit(ClassNode node)
-
visitAnnotations
public void visitAnnotations(AnnotatedNode node)
-
visitBinaryExpression
break;
public void visitBinaryExpression(BinaryExpression be)
-
visitBlockStatement
public void visitBlockStatement(BlockStatement block)
-
visitCatchStatement
public void visitCatchStatement(CatchStatement statement)
-
visitClass
public void visitClass(ClassNode node)
- Setup the current class node context.
- Parameters:
- node
visitClosureExpression
public void visitClosureExpression(ClosureExpression expression)
-
visitConstructorCallExpression
public void visitConstructorCallExpression(ConstructorCallExpression call)
-
visitConstructorOrMethod
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
-
visitDeclarationExpression
public void visitDeclarationExpression(DeclarationExpression expression)
-
visitField
public void visitField(FieldNode node)
-
visitFieldExpression
public void visitFieldExpression(FieldExpression expression)
-
visitForLoop
public void visitForLoop(ForStatement forLoop)
-
visitIfElse
public void visitIfElse(IfStatement ifElse)
-
visitMethodCallExpression
public void visitMethodCallExpression(MethodCallExpression call)
-
visitProperty
public void visitProperty(PropertyNode node)
-
visitPropertyExpression
public void visitPropertyExpression(PropertyExpression expression)
-
visitVariableExpression
public void visitVariableExpression(VariableExpression expression)
-
Groovy Documentation