protected static class TypeReferenceAdjustment.TypeReferenceClassVisitor extends ClassVisitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
TypeReferenceAdjustment.TypeReferenceClassVisitor.TypeReferenceAnnotationVisitor
An annotation visitor that collects all type references.
|
protected class |
TypeReferenceAdjustment.TypeReferenceClassVisitor.TypeReferenceFieldVisitor
A field visitor that collects all type references.
|
protected class |
TypeReferenceAdjustment.TypeReferenceClassVisitor.TypeReferenceMethodVisitor
A method visitor that collects all type references.
|
api, cv| Modifier | Constructor and Description |
|---|---|
protected |
TypeReferenceClassVisitor(ClassVisitor classVisitor,
boolean strict,
ElementMatcher<? super TypeDescription> filter,
TypePool typePool)
Creates a type reference class visitor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
resolve(ConstantDynamic constant)
Resolves all type references that are referenced by a
ConstantDynamic value. |
protected void |
resolve(Handle handle)
Resolves all type references that are referenced by a
Handle value. |
protected void |
resolve(Object value)
Resolves all type references that are referenced by any ASM constant value.
|
protected void |
resolve(Type type)
Resolves all type references that are referenced by a
Type value. |
void |
visit(int version,
int modifiers,
String internalName,
String genericSignature,
String superClassInternalName,
String[] interfaceInternalName) |
AnnotationVisitor |
visitAnnotation(String descriptor,
boolean visible) |
void |
visitEnd() |
FieldVisitor |
visitField(int modifiers,
String name,
String descriptor,
String signature,
Object value) |
void |
visitInnerClass(String internalName,
String outerName,
String innerName,
int modifiers) |
MethodVisitor |
visitMethod(int modifiers,
String internalName,
String descriptor,
String signature,
String[] exceptionInternalName) |
void |
visitNestHost(String nestHost) |
void |
visitNestMember(String nestMember) |
void |
visitOuterClass(String ownerTypeInternalName,
String methodName,
String methodDescriptor) |
RecordComponentVisitor |
visitRecordComponent(String name,
String descriptor,
String signature) |
AnnotationVisitor |
visitTypeAnnotation(int typeReference,
TypePath typePath,
String descriptor,
boolean visible) |
getDelegate, visitAttribute, visitModule, visitPermittedSubclass, visitSourceprotected TypeReferenceClassVisitor(ClassVisitor classVisitor, boolean strict, ElementMatcher<? super TypeDescription> filter, TypePool typePool)
classVisitor - true if the visitor should throw an exception if a type reference cannot be located.strict - true if the visitor should throw an exception if a type reference cannot be located.filter - A filter for excluding types from type reference analysis.typePool - The type pool to use for locating types.public void visit(int version,
int modifiers,
String internalName,
@MaybeNull
String genericSignature,
@MaybeNull
String superClassInternalName,
@MaybeNull
String[] interfaceInternalName)
visit in class ClassVisitorpublic void visitNestHost(String nestHost)
visitNestHost in class ClassVisitorpublic void visitOuterClass(String ownerTypeInternalName, String methodName, String methodDescriptor)
visitOuterClass in class ClassVisitorpublic void visitNestMember(String nestMember)
visitNestMember in class ClassVisitorpublic void visitInnerClass(String internalName, String outerName, String innerName, int modifiers)
visitInnerClass in class ClassVisitor@MaybeNull public RecordComponentVisitor visitRecordComponent(String name, String descriptor, @MaybeNull String signature)
visitRecordComponent in class ClassVisitor@MaybeNull public AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
visitAnnotation in class ClassVisitor@MaybeNull public AnnotationVisitor visitTypeAnnotation(int typeReference, @MaybeNull TypePath typePath, String descriptor, boolean visible)
visitTypeAnnotation in class ClassVisitor@MaybeNull public FieldVisitor visitField(int modifiers, String name, String descriptor, @MaybeNull String signature, @MaybeNull Object value)
visitField in class ClassVisitor@MaybeNull public MethodVisitor visitMethod(int modifiers, String internalName, String descriptor, @MaybeNull String signature, @MaybeNull String[] exceptionInternalName)
visitMethod in class ClassVisitorpublic void visitEnd()
visitEnd in class ClassVisitorprotected void resolve(Type type)
Type value.type - The type to resolve.protected void resolve(Handle handle)
Handle value.handle - The handle to resolve.protected void resolve(ConstantDynamic constant)
ConstantDynamic value.constant - The dynamic constant to resolve.protected void resolve(Object value)
value - The unknown constant value to resolve.Copyright © 2014–2025. All rights reserved.