Package net.bytebuddy.pool
Class TypePool.Default.TypeExtractor.RecordComponentExtractor
java.lang.Object
org.objectweb.asm.RecordComponentVisitor
net.bytebuddy.pool.TypePool.Default.TypeExtractor.RecordComponentExtractor
- Enclosing class:
- TypePool.Default.TypeExtractor
protected class TypePool.Default.TypeExtractor.RecordComponentExtractor
extends org.objectweb.asm.RecordComponentVisitor
A record component extractor reads a record component's information within a class file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TypePool.Default.LazyTypeDescription.AnnotationToken>
A list of the record component's annotations.private final String
The record component's descriptor.private final String
The record component's generic signature.private final String
The record component's name.private final Map<String,
List<TypePool.Default.LazyTypeDescription.AnnotationToken>> A mapping of the record component's type annotations.Fields inherited from class org.objectweb.asm.RecordComponentVisitor
api
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RecordComponentExtractor
(String name, String descriptor, String genericSignature) Creates a new record component 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.RecordComponentVisitor
getDelegate, visitAttribute
-
Field Details
-
name
The record component's name. -
descriptor
The record component's descriptor. -
genericSignature
The record component's generic signature. -
typeAnnotationTokens
private final Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokensA mapping of the record component's type annotations. -
annotationTokens
A list of the record component's annotations.
-
-
Constructor Details
-
RecordComponentExtractor
protected RecordComponentExtractor(String name, String descriptor, @MaybeNull String genericSignature) Creates a new record component extractor.- Parameters:
name
- The record component's name.descriptor
- The record component's descriptor.genericSignature
- The record component's generic signature.
-
-
Method Details
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.RecordComponentVisitor
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.RecordComponentVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classorg.objectweb.asm.RecordComponentVisitor
-