Package net.bytebuddy.dynamic.scaffold
Class TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.CodePreservingMethodVisitor
java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.CodePreservingMethodVisitor
protected class TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.CodePreservingMethodVisitor
extends org.objectweb.asm.MethodVisitor
A method visitor that preserves the code of a method in the class file by copying it into a rebased
method while copying all attributes and annotations to the actual method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.objectweb.asm.MethodVisitorThe method visitor of the actual method.private final TypeWriter.MethodPool.RecordThe method pool entry to apply.private final MethodRebaseResolver.ResolutionThe resolution of a potential rebased method.Fields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCodePreservingMethodVisitor(org.objectweb.asm.MethodVisitor actualMethodVisitor, TypeWriter.MethodPool.Record record, MethodRebaseResolver.Resolution resolution) Creates a new code preserving method visitor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitAnnotableParameterCount(int count, boolean visible) org.objectweb.asm.AnnotationVisitorvisitAnnotation(String descriptor, boolean visible) org.objectweb.asm.AnnotationVisitorvoidvoidvisitMaxs(int stackSize, int localVariableLength) org.objectweb.asm.AnnotationVisitorvisitParameterAnnotation(int index, String descriptor, boolean visible) org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(int typeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAttribute, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsn, visitVarInsn
-
Field Details
-
actualMethodVisitor
private final org.objectweb.asm.MethodVisitor actualMethodVisitorThe method visitor of the actual method. -
record
The method pool entry to apply. -
resolution
The resolution of a potential rebased method.
-
-
Constructor Details
-
CodePreservingMethodVisitor
protected CodePreservingMethodVisitor(org.objectweb.asm.MethodVisitor actualMethodVisitor, TypeWriter.MethodPool.Record record, MethodRebaseResolver.Resolution resolution) Creates a new code preserving method visitor.- Parameters:
actualMethodVisitor- The method visitor of the actual method.record- The method pool entry to apply.resolution- The resolution of the method rebase resolver in use.
-
-
Method Details
-
visitAnnotationDefault
- Overrides:
visitAnnotationDefaultin classorg.objectweb.asm.MethodVisitor
-
visitTypeAnnotation
@MaybeNull public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeReference, @MaybeNull org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitAnnotation
@MaybeNull public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible) - Overrides:
visitAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitAnnotableParameterCount
public void visitAnnotableParameterCount(int count, boolean visible) - Overrides:
visitAnnotableParameterCountin classorg.objectweb.asm.MethodVisitor
-
visitParameterAnnotation
@MaybeNull public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int index, String descriptor, boolean visible) - Overrides:
visitParameterAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitCode
public void visitCode()- Overrides:
visitCodein classorg.objectweb.asm.MethodVisitor
-
visitMaxs
public void visitMaxs(int stackSize, int localVariableLength) - Overrides:
visitMaxsin classorg.objectweb.asm.MethodVisitor
-