public class DependencyTracker extends ClassCodeVisitorSupport
Constructor and Description |
---|
DependencyTracker(SourceUnit source,
StringSetMap cache) |
DependencyTracker(SourceUnit source,
StringSetMap cache,
java.util.Map<java.lang.String,?> precompiledEntries) |
Modifier and Type | Method and Description |
---|---|
protected SourceUnit |
getSourceUnit() |
void |
visitAnnotations(AnnotatedNode node) |
void |
visitArrayExpression(ArrayExpression expression) |
void |
visitCastExpression(CastExpression expression) |
void |
visitCatchStatement(CatchStatement statement) |
void |
visitClass(ClassNode node)
Visit a ClassNode.
|
void |
visitClassExpression(ClassExpression expression) |
void |
visitConstructorCallExpression(ConstructorCallExpression call) |
void |
visitField(FieldNode node)
Visit a FieldNode.
|
void |
visitMethod(MethodNode node)
Visit a MethodNode.
|
void |
visitVariableExpression(VariableExpression expression) |
addError, visitAssertStatement, visitBlockStatement, visitBreakStatement, visitCaseStatement, visitClassCodeContainer, visitConstructor, visitConstructorOrMethod, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitExpressionStatement, visitForLoop, visitIfElse, visitImports, visitObjectInitializerStatements, visitPackage, visitProperty, visitReturnStatement, visitStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitTryCatchFinally, visitWhileLoop
visitArgumentlistExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression
public DependencyTracker(SourceUnit source, StringSetMap cache)
public DependencyTracker(SourceUnit source, StringSetMap cache, java.util.Map<java.lang.String,?> precompiledEntries)
public void visitClass(ClassNode node)
GroovyClassVisitor
visitClass
in interface GroovyClassVisitor
visitClass
in class ClassCodeVisitorSupport
protected SourceUnit getSourceUnit()
getSourceUnit
in class ClassCodeVisitorSupport
public void visitClassExpression(ClassExpression expression)
visitClassExpression
in interface GroovyCodeVisitor
visitClassExpression
in class CodeVisitorSupport
public void visitField(FieldNode node)
GroovyClassVisitor
visitField
in interface GroovyClassVisitor
visitField
in class ClassCodeVisitorSupport
public void visitMethod(MethodNode node)
GroovyClassVisitor
visitMethod
in interface GroovyClassVisitor
visitMethod
in class ClassCodeVisitorSupport
public void visitArrayExpression(ArrayExpression expression)
visitArrayExpression
in interface GroovyCodeVisitor
visitArrayExpression
in class CodeVisitorSupport
public void visitCastExpression(CastExpression expression)
visitCastExpression
in interface GroovyCodeVisitor
visitCastExpression
in class CodeVisitorSupport
public void visitVariableExpression(VariableExpression expression)
visitVariableExpression
in interface GroovyCodeVisitor
visitVariableExpression
in class CodeVisitorSupport
public void visitCatchStatement(CatchStatement statement)
visitCatchStatement
in interface GroovyCodeVisitor
visitCatchStatement
in class ClassCodeVisitorSupport
public void visitAnnotations(AnnotatedNode node)
visitAnnotations
in class ClassCodeVisitorSupport
public void visitConstructorCallExpression(ConstructorCallExpression call)
visitConstructorCallExpression
in interface GroovyCodeVisitor
visitConstructorCallExpression
in class CodeVisitorSupport