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.ClassVisitor
A 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 class
TypePool.Default.TypeExtractor.AnnotationExtractor
An annotation extractor reads an annotation found in a class field an collects data that is relevant to creating a related annotation description.protected class
TypePool.Default.TypeExtractor.FieldExtractor
A field extractor reads a field within a class file and collects data that is relevant to creating a related field description.protected class
TypePool.Default.TypeExtractor.MethodExtractor
A method extractor reads a method within a class file and collects data that is relevant to creating a related method description.protected class
TypePool.Default.TypeExtractor.RecordComponentExtractor
A record component extractor reads a record component's information within a class file.
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypeExtractor()
Creates a new type extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypeDescription
toTypeDescription()
Creates a type description from all data that is currently collected.void
visit(int classFileVersion, int modifiers, String internalName, String genericSignature, String superClassName, String[] interfaceName)
org.objectweb.asm.AnnotationVisitor
visitAnnotation(String descriptor, boolean visible)
org.objectweb.asm.FieldVisitor
visitField(int modifiers, String internalName, String descriptor, String genericSignature, Object defaultValue)
void
visitInnerClass(String internalName, String outerName, String innerName, int modifiers)
org.objectweb.asm.MethodVisitor
visitMethod(int modifiers, String internalName, String descriptor, String genericSignature, String[] exceptionName)
void
visitNestHost(String nestHost)
void
visitNestMember(String nestMember)
void
visitOuterClass(String typeName, String methodName, String methodDescriptor)
org.objectweb.asm.RecordComponentVisitor
visitRecordComponent(String name, String descriptor, String signature)
org.objectweb.asm.AnnotationVisitor
visitTypeAnnotation(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:
visit
in classorg.objectweb.asm.ClassVisitor
-
visitOuterClass
public void visitOuterClass(String typeName, String methodName, String methodDescriptor)
- Overrides:
visitOuterClass
in classorg.objectweb.asm.ClassVisitor
-
visitInnerClass
public void visitInnerClass(String internalName, String outerName, String innerName, int modifiers)
- Overrides:
visitInnerClass
in classorg.objectweb.asm.ClassVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)
- Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.ClassVisitor
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
- Overrides:
visitAnnotation
in classorg.objectweb.asm.ClassVisitor
-
visitField
public org.objectweb.asm.FieldVisitor visitField(int modifiers, String internalName, String descriptor, String genericSignature, Object defaultValue)
- Overrides:
visitField
in classorg.objectweb.asm.ClassVisitor
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int modifiers, String internalName, String descriptor, String genericSignature, String[] exceptionName)
- Overrides:
visitMethod
in classorg.objectweb.asm.ClassVisitor
-
visitNestHost
public void visitNestHost(String nestHost)
- Overrides:
visitNestHost
in classorg.objectweb.asm.ClassVisitor
-
visitNestMember
public void visitNestMember(String nestMember)
- Overrides:
visitNestMember
in classorg.objectweb.asm.ClassVisitor
-
visitRecordComponent
public org.objectweb.asm.RecordComponentVisitor visitRecordComponent(String name, String descriptor, String signature)
- Overrides:
visitRecordComponent
in 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.
-
-