public class ClassDependencyVisitor
extends org.objectweb.asm.ClassVisitor
Constructor and Description |
---|
ClassDependencyVisitor() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Integer> |
getClassesAccess()
Return the accessors for each class.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getDependencies()
Return all the dependencies for all classes visited by the ClassReader.
|
void |
visit(int version,
int access,
java.lang.String name,
java.lang.String signature,
java.lang.String superName,
java.lang.String[] interfaces) |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(java.lang.String desc,
boolean visible) |
org.objectweb.asm.FieldVisitor |
visitField(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.Object value) |
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.String[] exceptions) |
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getDependencies()
org.mypackage.MyPanel
:
import javax.swing.JPanel public class MyPanel extends JPanel() { public MyPanel() { super(); } }In this case there is only one class
org.mypackage.MyPanel
, and this class has only one
dependency:
javax.swing.JPanel
. The method will return a Map with only one element.public java.util.Map<java.lang.String,java.lang.Integer> getClassesAccess()
public void visit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
visit
in class org.objectweb.asm.ClassVisitor
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
visitAnnotation
in class org.objectweb.asm.ClassVisitor
public org.objectweb.asm.FieldVisitor visitField(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.Object value)
visitField
in class org.objectweb.asm.ClassVisitor
public org.objectweb.asm.MethodVisitor visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
visitMethod
in class org.objectweb.asm.ClassVisitor
Copyright © 2016-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence