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

void
clearDependencies()
Clear the curretn set of collected dependencies.
Enumeration
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

Method Details

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.

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.