Class TypePool.Default.TypeExtractor.MethodExtractor
java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.pool.TypePool.Default.TypeExtractor.MethodExtractor
- All Implemented Interfaces:
TypePool.Default.AnnotationRegistrant
- Enclosing class:
TypePool.Default.TypeExtractor
protected class TypePool.Default.TypeExtractor.MethodExtractor
extends org.objectweb.asm.MethodVisitor
implements TypePool.Default.AnnotationRegistrant
A method extractor reads a method within a class file and collects data that is relevant
to creating a related method description.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypePool.Default.AnnotationRegistrant
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement, TypePool.Default.AnnotationRegistrant.ForTypeVariable -
Field Summary
Fields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMethodExtractor(int modifiers, String internalName, String descriptor, String genericSignature, String[] exceptionName) Creates a method extractor. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled once all annotation values are visited.voidregister(String ignored, AnnotationValue<?, ?> annotationValue) Registers an annotation value.voidvisitAnnotableParameterCount(int count, boolean visible) org.objectweb.asm.AnnotationVisitorvisitAnnotation(String descriptor, boolean visible) org.objectweb.asm.AnnotationVisitorvoidvisitEnd()voidvisitLabel(org.objectweb.asm.Label label) voidvisitLocalVariable(String name, String descriptor, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int offset) voidvisitParameter(String name, int modifiers) org.objectweb.asm.AnnotationVisitorvisitParameterAnnotation(int index, String descriptor, boolean visible) org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLdcInsn, visitLineNumber, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsn, visitVarInsn
-
Constructor Details
-
MethodExtractor
protected MethodExtractor(int modifiers, String internalName, String descriptor, @MaybeNull String genericSignature, @MaybeNull String[] exceptionName) Creates a method extractor.- Parameters:
modifiers- The modifiers found for this method.internalName- The internal name found for this method.descriptor- The descriptor found for this method.genericSignature- The generic signature of the method ornullif it is not generic.exceptionName- An array of internal names of the exceptions of the found method ornullif there are no such exceptions.
-
-
Method Details
-
visitTypeAnnotation
@MaybeNull public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitAnnotation
- Overrides:
visitAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitAnnotableParameterCount
public void visitAnnotableParameterCount(int count, boolean visible) - Overrides:
visitAnnotableParameterCountin classorg.objectweb.asm.MethodVisitor
-
visitParameterAnnotation
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int index, String descriptor, boolean visible) - Overrides:
visitParameterAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitLabel
public void visitLabel(org.objectweb.asm.Label label) - Overrides:
visitLabelin classorg.objectweb.asm.MethodVisitor
-
visitLocalVariable
-
visitParameter
- Overrides:
visitParameterin classorg.objectweb.asm.MethodVisitor
-
visitAnnotationDefault
public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault()- Overrides:
visitAnnotationDefaultin classorg.objectweb.asm.MethodVisitor
-
register
Registers an annotation value.- Specified by:
registerin interfaceTypePool.Default.AnnotationRegistrant- Parameters:
ignored- The name of the annotation value.annotationValue- The value of the annotation.
-
onComplete
public void onComplete()Called once all annotation values are visited.- Specified by:
onCompletein interfaceTypePool.Default.AnnotationRegistrant
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classorg.objectweb.asm.MethodVisitor
-