Package org.pf4j.asm
Class ExtensionVisitor
java.lang.Object
org.objectweb.asm.ClassVisitor
org.pf4j.asm.ExtensionVisitor
class ExtensionVisitor
extends org.objectweb.asm.ClassVisitor
This visitor extracts an
ExtensionInfo
from any class,
that holds an Extension
annotation.
The annotation parameters are extracted from byte code by using the
ASM library. This makes it possible to
access the Extension
parameters without loading the class into
the class loader. This avoids possible NoClassDefFoundError
's
for extensions, that can't be loaded due to missing dependencies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final ExtensionInfo
private static final org.slf4j.Logger
Fields inherited from class org.objectweb.asm.ClassVisitor
api, cv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.AnnotationVisitor
visitAnnotation
(String descriptor, boolean visible) Methods inherited from class org.objectweb.asm.ClassVisitor
getDelegate, visit, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
-
Field Details
-
log
private static final org.slf4j.Logger log -
ASM_VERSION
private static final int ASM_VERSION- See Also:
-
extensionInfo
-
-
Constructor Details
-
ExtensionVisitor
ExtensionVisitor(ExtensionInfo extensionInfo)
-
-
Method Details
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.ClassVisitor
-