Package net.bytebuddy.pool
Class TypePool.Default.TypeExtractor
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- net.bytebuddy.pool.TypePool.Default.TypeExtractor
-
- Enclosing class:
- TypePool.Default
protected class TypePool.Default.TypeExtractor extends org.objectweb.asm.ClassVisitorA type extractor reads a class file and collects data that is relevant to create a type description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classTypePool.Default.TypeExtractor.AnnotationExtractorAn annotation extractor reads an annotation found in a class field an collects data that is relevant to creating a related annotation description.protected classTypePool.Default.TypeExtractor.FieldExtractorA field extractor reads a field within a class file and collects data that is relevant to creating a related field description.protected classTypePool.Default.TypeExtractor.MethodExtractorA method extractor reads a method within a class file and collects data that is relevant to creating a related method description.protected classTypePool.Default.TypeExtractor.RecordComponentExtractorA record component extractor reads a record component's information within a class file.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypeExtractor()Creates a new type extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypeDescriptiontoTypeDescription()Creates a type description from all data that is currently collected.voidvisit(int classFileVersion, int modifiers, String internalName, String genericSignature, String superClassName, String[] interfaceName)org.objectweb.asm.AnnotationVisitorvisitAnnotation(String descriptor, boolean visible)org.objectweb.asm.FieldVisitorvisitField(int modifiers, String internalName, String descriptor, String genericSignature, Object defaultValue)voidvisitInnerClass(String internalName, String outerName, String innerName, int modifiers)org.objectweb.asm.MethodVisitorvisitMethod(int modifiers, String internalName, String descriptor, String genericSignature, String[] exceptionName)voidvisitNestHost(String nestHost)voidvisitNestMember(String nestMember)voidvisitOuterClass(String typeName, String methodName, String methodDescriptor)org.objectweb.asm.RecordComponentVisitorvisitRecordComponent(String name, String descriptor, String signature)org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)
-
-
-
Method Detail
-
visit
public void visit(int classFileVersion, int modifiers, String internalName, String genericSignature, String superClassName, String[] interfaceName)- Overrides:
visitin classorg.objectweb.asm.ClassVisitor
-
visitOuterClass
public void visitOuterClass(String typeName, String methodName, String methodDescriptor)
- Overrides:
visitOuterClassin classorg.objectweb.asm.ClassVisitor
-
visitInnerClass
public void visitInnerClass(String internalName, String outerName, String innerName, int modifiers)
- Overrides:
visitInnerClassin classorg.objectweb.asm.ClassVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)- Overrides:
visitTypeAnnotationin classorg.objectweb.asm.ClassVisitor
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
- Overrides:
visitAnnotationin classorg.objectweb.asm.ClassVisitor
-
visitField
public org.objectweb.asm.FieldVisitor visitField(int modifiers, String internalName, String descriptor, String genericSignature, Object defaultValue)- Overrides:
visitFieldin classorg.objectweb.asm.ClassVisitor
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int modifiers, String internalName, String descriptor, String genericSignature, String[] exceptionName)- Overrides:
visitMethodin classorg.objectweb.asm.ClassVisitor
-
visitNestHost
public void visitNestHost(String nestHost)
- Overrides:
visitNestHostin classorg.objectweb.asm.ClassVisitor
-
visitNestMember
public void visitNestMember(String nestMember)
- Overrides:
visitNestMemberin classorg.objectweb.asm.ClassVisitor
-
visitRecordComponent
public org.objectweb.asm.RecordComponentVisitor visitRecordComponent(String name, String descriptor, String signature)
- Overrides:
visitRecordComponentin classorg.objectweb.asm.ClassVisitor
-
toTypeDescription
protected TypeDescription toTypeDescription()
Creates a type description from all data that is currently collected. This method should only be invoked after a class file was parsed fully.- Returns:
- A type description reflecting the data that was collected by this instance.
-
-