|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.bcel.classfile.EmptyVisitor org.apache.tools.ant.util.depend.bcel.DependencyVisitor
public class DependencyVisitor
A BCEL visitor implementation to collect class dependency information
Constructor Summary | |
---|---|
DependencyVisitor()
|
Method Summary | |
---|---|
void |
clearDependencies()
Clear the curretn set of collected dependencies. |
java.util.Enumeration |
getDependencies()
Get the dependencies collected by this visitor |
void |
visitConstantClass(org.apache.bcel.classfile.ConstantClass constantClass)
Visit a class reference |
void |
visitConstantNameAndType(org.apache.bcel.classfile.ConstantNameAndType obj)
Visit a name and type ref Look for class references in this |
void |
visitConstantPool(org.apache.bcel.classfile.ConstantPool constantPool)
Visit the constant pool of a class |
void |
visitField(org.apache.bcel.classfile.Field field)
Visit a field of the class. |
void |
visitJavaClass(org.apache.bcel.classfile.JavaClass javaClass)
Visit a Java class |
void |
visitMethod(org.apache.bcel.classfile.Method method)
Visit a method of the current class |
Methods inherited from class org.apache.bcel.classfile.EmptyVisitor |
---|
visitCode, visitCodeException, visitConstantDouble, visitConstantFieldref, visitConstantFloat, visitConstantInteger, visitConstantInterfaceMethodref, visitConstantLong, visitConstantMethodref, visitConstantString, visitConstantUtf8, visitConstantValue, visitDeprecated, visitExceptionTable, visitInnerClass, visitInnerClasses, visitLineNumber, visitLineNumberTable, visitLocalVariable, visitLocalVariableTable, visitSourceFile, visitStackMap, visitStackMapEntry, visitSynthetic, visitUnknown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependencyVisitor()
Method Detail |
---|
public java.util.Enumeration getDependencies()
public void clearDependencies()
public void visitConstantPool(org.apache.bcel.classfile.ConstantPool constantPool)
visitConstantPool
in interface org.apache.bcel.classfile.Visitor
visitConstantPool
in class org.apache.bcel.classfile.EmptyVisitor
constantPool
- the constant pool of the class being visited.public void visitConstantClass(org.apache.bcel.classfile.ConstantClass constantClass)
visitConstantClass
in interface org.apache.bcel.classfile.Visitor
visitConstantClass
in class org.apache.bcel.classfile.EmptyVisitor
constantClass
- the constantClass entry for the class referencepublic void visitConstantNameAndType(org.apache.bcel.classfile.ConstantNameAndType obj)
visitConstantNameAndType
in interface org.apache.bcel.classfile.Visitor
visitConstantNameAndType
in class org.apache.bcel.classfile.EmptyVisitor
obj
- the name and type reference being visited.public void visitField(org.apache.bcel.classfile.Field field)
visitField
in interface org.apache.bcel.classfile.Visitor
visitField
in class org.apache.bcel.classfile.EmptyVisitor
field
- the field being visitedpublic void visitJavaClass(org.apache.bcel.classfile.JavaClass javaClass)
visitJavaClass
in interface org.apache.bcel.classfile.Visitor
visitJavaClass
in class org.apache.bcel.classfile.EmptyVisitor
javaClass
- the class being visited.public void visitMethod(org.apache.bcel.classfile.Method method)
visitMethod
in interface org.apache.bcel.classfile.Visitor
visitMethod
in class org.apache.bcel.classfile.EmptyVisitor
method
- the method being visited.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |