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. |
protected void |
resolveInternalName(String internalName)
Resolves an internal name to its element type.
|
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 defaultValue) |
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) |
visitAttribute, visitModule, visitPermittedSubclass, visitSource
protected 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, String genericSignature, String superClassInternalName, String[] interfaceInternalName)
visit
in class ClassVisitor
public void visitNestHost(String nestHost)
visitNestHost
in class ClassVisitor
public void visitOuterClass(String ownerTypeInternalName, String methodName, String methodDescriptor)
visitOuterClass
in class ClassVisitor
public void visitNestMember(String nestMember)
visitNestMember
in class ClassVisitor
public void visitInnerClass(String internalName, String outerName, String innerName, int modifiers)
visitInnerClass
in class ClassVisitor
public RecordComponentVisitor visitRecordComponent(String name, String descriptor, String signature)
visitRecordComponent
in class ClassVisitor
public AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
visitAnnotation
in class ClassVisitor
public AnnotationVisitor visitTypeAnnotation(int typeReference, TypePath typePath, String descriptor, boolean visible)
visitTypeAnnotation
in class ClassVisitor
public FieldVisitor visitField(int modifiers, String name, String descriptor, String signature, Object defaultValue)
visitField
in class ClassVisitor
public MethodVisitor visitMethod(int modifiers, String internalName, String descriptor, String signature, String[] exceptionInternalName)
visitMethod
in class ClassVisitor
public void visitEnd()
visitEnd
in class ClassVisitor
protected 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 resolveInternalName(String internalName)
internalName
- The internal name to resolve.protected void resolve(Object value)
value
- The unknown constant value to resolve.Copyright © 2014–2020. All rights reserved.