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, visitUnknownpublic 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.VisitorvisitConstantPool in class org.apache.bcel.classfile.EmptyVisitorconstantPool - the constant pool of the class being visited.public void visitConstantClass(org.apache.bcel.classfile.ConstantClass constantClass)
visitConstantClass in interface org.apache.bcel.classfile.VisitorvisitConstantClass in class org.apache.bcel.classfile.EmptyVisitorconstantClass - the constantClass entry for the class referencepublic void visitConstantNameAndType(org.apache.bcel.classfile.ConstantNameAndType obj)
visitConstantNameAndType in interface org.apache.bcel.classfile.VisitorvisitConstantNameAndType in class org.apache.bcel.classfile.EmptyVisitorobj - the name and type reference being visited.public void visitField(org.apache.bcel.classfile.Field field)
visitField in interface org.apache.bcel.classfile.VisitorvisitField in class org.apache.bcel.classfile.EmptyVisitorfield - the field being visitedpublic void visitJavaClass(org.apache.bcel.classfile.JavaClass javaClass)
visitJavaClass in interface org.apache.bcel.classfile.VisitorvisitJavaClass in class org.apache.bcel.classfile.EmptyVisitorjavaClass - the class being visited.public void visitMethod(org.apache.bcel.classfile.Method method)
visitMethod in interface org.apache.bcel.classfile.VisitorvisitMethod in class org.apache.bcel.classfile.EmptyVisitormethod - the method being visited.