public class DependencyVisitor
extends EmptyVisitor
Constructor and Description |
---|
DependencyVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
clearDependencies()
Clear the current set of collected dependencies.
|
java.util.Enumeration<java.lang.String> |
getDependencies()
Get the dependencies collected by this visitor
|
void |
visitConstantClass(ConstantClass constantClass)
Visit a class reference
|
void |
visitConstantNameAndType(ConstantNameAndType obj)
Visit a name and type ref
Look for class references in this
|
void |
visitConstantPool(ConstantPool constantPool)
Visit the constant pool of a class
|
void |
visitField(Field field)
Visit a field of the class.
|
void |
visitJavaClass(JavaClass javaClass)
Visit a Java class
|
void |
visitMethod(Method method)
Visit a method of the current class
|
public java.util.Enumeration<java.lang.String> getDependencies()
public void clearDependencies()
public void visitConstantPool(ConstantPool constantPool)
constantPool
- the constant pool of the class being visited.public void visitConstantClass(ConstantClass constantClass)
constantClass
- the constantClass entry for the class referencepublic void visitConstantNameAndType(ConstantNameAndType obj)
obj
- the name and type reference being visited.public void visitField(Field field)
field
- the field being visitedpublic void visitJavaClass(JavaClass javaClass)
javaClass
- the class being visited.public void visitMethod(Method method)
method
- the method being visited.