org.apache.tools.ant.util.depend.bcel
Class DependencyVisitor
EmptyVisitor
org.apache.tools.ant.util.depend.bcel.DependencyVisitor
public class DependencyVisitor
extends EmptyVisitor
A BCEL visitor implementation to collect class dependency information
clearDependencies
public void clearDependencies()
Clear the curretn set of collected dependencies.
getDependencies
public Enumeration getDependencies()
Get the dependencies collected by this visitor
- a Enumeration of classnames, being the classes upon which the
visited classes depend.
visitConstantClass
public void visitConstantClass(ConstantClass constantClass)
Visit a class reference
constantClass
- the constantClass entry for the class reference
visitConstantNameAndType
public void visitConstantNameAndType(ConstantNameAndType obj)
Visit a name and type ref
Look for class references in this
obj
- the name and type reference being visited.
visitConstantPool
public void visitConstantPool(ConstantPool constantPool)
Visit the constant pool of a class
constantPool
- the constant pool of the class being visited.
visitField
public void visitField(Field field)
Visit a field of the class.
field
- the field being visited
visitJavaClass
public void visitJavaClass(JavaClass javaClass)
Visit a Java class
javaClass
- the class being visited.
visitMethod
public void visitMethod(Method method)
Visit a method of the current class
method
- the method being visited.
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.