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.FieldVisitorA 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>annotationTokensA list of annotation tokens found for this field.private java.lang.StringdescriptorThe descriptor of the field type.private java.lang.StringgenericSignatureThe generic signature of the field ornullif it is not generic.private java.lang.StringinternalNameThe name of the field.private intmodifiersThe modifiers found on the field.private java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>typeAnnotationTokensA mapping of the field type's type annotations.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFieldExtractor(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.AnnotationVisitorvisitAnnotation(java.lang.String descriptor, boolean visible)voidvisitEnd()org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(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 ornullif 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 ornullif 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:
visitTypeAnnotationin classorg.objectweb.asm.FieldVisitor
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String descriptor, boolean visible)- Overrides:
visitAnnotationin classorg.objectweb.asm.FieldVisitor
-
visitEnd
public void visitEnd()
- Overrides:
visitEndin classorg.objectweb.asm.FieldVisitor
-
-