org.apache.tools.ant.util.depend.bcel

Class DependencyVisitor

public class DependencyVisitor extends EmptyVisitor

A BCEL visitor implementation to collect class dependency information
Method Summary
voidclearDependencies()
Clear the curretn set of collected dependencies.
EnumerationgetDependencies()
Get the dependencies collected by this visitor
voidvisitConstantClass(ConstantClass constantClass)
Visit a class reference
voidvisitConstantNameAndType(ConstantNameAndType obj)
Visit a name and type ref Look for class references in this
voidvisitConstantPool(ConstantPool constantPool)
Visit the constant pool of a class
voidvisitField(Field field)
Visit a field of the class.
voidvisitJavaClass(JavaClass javaClass)
Visit a Java class
voidvisitMethod(Method method)
Visit a method of the current class

Method Detail

clearDependencies

public void clearDependencies()
Clear the curretn set of collected dependencies.

getDependencies

public Enumeration getDependencies()
Get the dependencies collected by this visitor

Returns: a Enumeration of classnames, being the classes upon which the visited classes depend.

visitConstantClass

public void visitConstantClass(ConstantClass constantClass)
Visit a class reference

Parameters: 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

Parameters: obj the name and type reference being visited.

visitConstantPool

public void visitConstantPool(ConstantPool constantPool)
Visit the constant pool of a class

Parameters: constantPool the constant pool of the class being visited.

visitField

public void visitField(Field field)
Visit a field of the class.

Parameters: field the field being visited

visitJavaClass

public void visitJavaClass(JavaClass javaClass)
Visit a Java class

Parameters: javaClass the class being visited.

visitMethod

public void visitMethod(Method method)
Visit a method of the current class

Parameters: method the method being visited.