Class DefaultClassVisitor
java.lang.Object
org.objectweb.asm.ClassVisitor
org.apache.maven.shared.dependency.analyzer.asm.DefaultClassVisitor
public class DefaultClassVisitor
extends org.objectweb.asm.ClassVisitor
Computes the set of classes referenced by visited code.
Inspired by
org.objectweb.asm.depend.DependencyVisitor
in the ASM dependencies example.- Author:
- Mark Hobson
-
Field Summary
Fields inherited from class org.objectweb.asm.ClassVisitor
api, cv
-
Constructor Summary
ConstructorDescriptionDefaultClassVisitor
(org.objectweb.asm.signature.SignatureVisitor signatureVisitor, org.objectweb.asm.AnnotationVisitor annotationVisitor, org.objectweb.asm.FieldVisitor fieldVisitor, org.objectweb.asm.MethodVisitor methodVisitor, ResultCollector resultCollector, String usedByClass) Constructor for DefaultClassVisitor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(int version, int access, String name, String signature, String superName, String[] interfaces) visit.org.objectweb.asm.AnnotationVisitor
visitAnnotation
(String desc, boolean visible) org.objectweb.asm.FieldVisitor
visitField
(int access, String name, String desc, String signature, Object value) org.objectweb.asm.MethodVisitor
visitMethod
(int access, String name, String desc, String signature, String[] exceptions) visitMethod.void
visitNestHost
(String nestHost) void
visitNestMember
(String nestMember) Methods inherited from class org.objectweb.asm.ClassVisitor
getDelegate, visitAttribute, visitEnd, visitInnerClass, visitModule, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
-
Constructor Details
-
Method Details
-
visit
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) visit.
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.ClassVisitor
-
visitField
public org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value) - Overrides:
visitField
in classorg.objectweb.asm.ClassVisitor
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) visitMethod.
-
visitNestHost
- Overrides:
visitNestHost
in classorg.objectweb.asm.ClassVisitor
-
visitNestMember
- Overrides:
visitNestMember
in classorg.objectweb.asm.ClassVisitor
-