Package net.bytebuddy.pool
Class TypePool.Default.TypeExtractor.FieldExtractor
java.lang.Object
org.objectweb.asm.FieldVisitor
net.bytebuddy.pool.TypePool.Default.TypeExtractor.FieldExtractor
- Enclosing class:
TypePool.Default.TypeExtractor
protected class TypePool.Default.TypeExtractor.FieldExtractor
extends org.objectweb.asm.FieldVisitor
A field extractor reads a field within a class file and collects data that is relevant
to creating a related field description.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<TypePool.Default.LazyTypeDescription.AnnotationToken> A list of annotation tokens found for this field.private final String
The descriptor of the field type.private final String
The generic signature of the field ornull
if it is not generic.private final String
The name of the field.private final int
The modifiers found on the field.private final Map
<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> A mapping of the field type's type annotations.Fields inherited from class org.objectweb.asm.FieldVisitor
api, fv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FieldExtractor
(int modifiers, String internalName, String descriptor, String genericSignature) Creates a new field extractor. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.AnnotationVisitor
visitAnnotation
(String descriptor, boolean visible) void
visitEnd()
org.objectweb.asm.AnnotationVisitor
visitTypeAnnotation
(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) Methods inherited from class org.objectweb.asm.FieldVisitor
getDelegate, visitAttribute
-
Field Details
-
modifiers
private final int modifiersThe modifiers found on the field. -
internalName
The name of the field. -
descriptor
The descriptor of the field type. -
genericSignature
The generic signature of the field ornull
if it is not generic. -
typeAnnotationTokens
private final Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokensA mapping of the field type's type annotations. -
annotationTokens
A list of annotation tokens found for this field.
-
-
Constructor Details
-
FieldExtractor
protected FieldExtractor(int modifiers, String internalName, String descriptor, @MaybeNull String genericSignature) Creates a new field extractor.- Parameters:
modifiers
- The modifiers found for this field.internalName
- The name of the field.descriptor
- The descriptor of the field type.genericSignature
- The generic signature of the field ornull
if it is not generic.
-
-
Method Details
-
visitTypeAnnotation
@MaybeNull public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int rawTypeReference, @MaybeNull org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.FieldVisitor
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.FieldVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classorg.objectweb.asm.FieldVisitor
-