Package net.bytebuddy.asm
Class TypeConstantAdjustment.TypeConstantDissolvingClassVisitor
java.lang.Object
org.objectweb.asm.ClassVisitor
net.bytebuddy.asm.TypeConstantAdjustment.TypeConstantDissolvingClassVisitor
- Enclosing class:
TypeConstantAdjustment
protected static class TypeConstantAdjustment.TypeConstantDissolvingClassVisitor
extends org.objectweb.asm.ClassVisitor
A class visitor that checks a class file version for its support of storing class constants in the constant pool and remaps such constants
on discovery if that is not the case.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A method visitor that remaps class constants to invocations ofClass.forName(String)
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
true
if the class file version supports class constants in a constant pool.Fields inherited from class org.objectweb.asm.ClassVisitor
api, cv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TypeConstantDissolvingClassVisitor
(org.objectweb.asm.ClassVisitor classVisitor) Creates a new type constant dissolving class visitor. -
Method Summary
Methods inherited from class org.objectweb.asm.ClassVisitor
getDelegate, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
-
Field Details
-
supportsTypeConstants
private boolean supportsTypeConstantstrue
if the class file version supports class constants in a constant pool.
-
-
Constructor Details
-
TypeConstantDissolvingClassVisitor
protected TypeConstantDissolvingClassVisitor(org.objectweb.asm.ClassVisitor classVisitor) Creates a new type constant dissolving class visitor.- Parameters:
classVisitor
- The underlying class visitor.
-
-
Method Details
-
visit
public void visit(int version, int modifiers, String name, @MaybeNull String signature, @MaybeNull String superClassName, @MaybeNull String[] interfaceName) - Overrides:
visit
in classorg.objectweb.asm.ClassVisitor
-
visitMethod
@MaybeNull public org.objectweb.asm.MethodVisitor visitMethod(int modifiers, String name, String descriptor, @MaybeNull String signature, @MaybeNull String[] exception) - Overrides:
visitMethod
in classorg.objectweb.asm.ClassVisitor
-