Package net.bytebuddy.asm
Class MemberAttributeExtension.ForMethod.AttributeAppendingMethodVisitor
- java.lang.Object
-
- org.objectweb.asm.MethodVisitor
-
- net.bytebuddy.asm.MemberAttributeExtension.ForMethod.AttributeAppendingMethodVisitor
-
- Enclosing class:
- MemberAttributeExtension.ForMethod
private static class MemberAttributeExtension.ForMethod.AttributeAppendingMethodVisitor extends org.objectweb.asm.MethodVisitorA method visitor to apply a method attribute appender.
-
-
Field Summary
Fields Modifier and Type Field Description private AnnotationValueFilterannotationValueFilterThe annotation value filter to apply.private booleanapplicabletrueif the attribute appender was not yet applied.private MethodAttributeAppendermethodAttributeAppenderThe field to add annotations to.private MethodDescriptionmethodDescriptionThe instrumented method.
-
Constructor Summary
Constructors Modifier Constructor Description privateAttributeAppendingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, MethodAttributeAppender methodAttributeAppender, AnnotationValueFilter annotationValueFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisitCode()voidvisitEnd()-
Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
-
-
-
Field Detail
-
methodDescription
private final MethodDescription methodDescription
The instrumented method.
-
methodAttributeAppender
private final MethodAttributeAppender methodAttributeAppender
The field to add annotations to.
-
annotationValueFilter
private final AnnotationValueFilter annotationValueFilter
The annotation value filter to apply.
-
applicable
private boolean applicable
trueif the attribute appender was not yet applied.
-
-
Constructor Detail
-
AttributeAppendingMethodVisitor
private AttributeAppendingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, MethodAttributeAppender methodAttributeAppender, AnnotationValueFilter annotationValueFilter)- Parameters:
methodVisitor- The method visitor to apply changes to.methodDescription- The method to add annotations to.methodAttributeAppender- The annotation value filter to apply.annotationValueFilter- The annotation value filter to apply.
-
-