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
Fields Modifier and Type Field Description private java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>
annotationTokens
A list of annotation tokens found for this field.private java.lang.String
descriptor
The descriptor of the field type.private java.lang.String
genericSignature
The generic signature of the field ornull
if it is not generic.private java.lang.String
internalName
The name of the field.private int
modifiers
The modifiers found on the field.private java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>
typeAnnotationTokens
A mapping of the field type's type annotations.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FieldExtractor(int modifiers, java.lang.String internalName, java.lang.String descriptor, java.lang.String genericSignature)
Creates a new field extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.AnnotationVisitor
visitAnnotation(java.lang.String descriptor, boolean visible)
void
visitEnd()
org.objectweb.asm.AnnotationVisitor
visitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)
-
-
-
Field Detail
-
modifiers
private final int modifiers
The modifiers found on the field.
-
internalName
private final java.lang.String internalName
The name of the field.
-
descriptor
private final java.lang.String descriptor
The descriptor of the field type.
-
genericSignature
private final java.lang.String genericSignature
The generic signature of the field ornull
if it is not generic.
-
typeAnnotationTokens
private final java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens
A mapping of the field type's type annotations.
-
annotationTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens
A list of annotation tokens found for this field.
-
-
Constructor Detail
-
FieldExtractor
protected FieldExtractor(int modifiers, java.lang.String internalName, java.lang.String descriptor, java.lang.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 Detail
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)
- Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.FieldVisitor
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String descriptor, boolean visible)
- Overrides:
visitAnnotation
in classorg.objectweb.asm.FieldVisitor
-
visitEnd
public void visitEnd()
- Overrides:
visitEnd
in classorg.objectweb.asm.FieldVisitor
-
-