public class DependencyVisitor
extends org.apache.bcel.classfile.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(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
|
visitCode, visitCodeException, visitConstantDouble, visitConstantFieldref, visitConstantFloat, visitConstantInteger, visitConstantInterfaceMethodref, visitConstantLong, visitConstantMethodref, visitConstantString, visitConstantUtf8, visitConstantValue, visitDeprecated, visitExceptionTable, visitInnerClass, visitInnerClasses, visitLineNumber, visitLineNumberTable, visitLocalVariable, visitLocalVariableTable, visitSignature, visitSourceFile, visitStackMap, visitStackMapEntry, visitSynthetic, visitUnknown
public java.util.Enumeration<java.lang.String> 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.