Beispiel #1
0
        public override MethodVisitor VisitMethod(AccessFlags access, string name, string descriptor
                                                  , string signature, string[] exceptions)
        {
            var remappedDescriptor = remapper.MapMethodDesc(descriptor);
            var methodVisitor      = base.VisitMethod(access, remapper.MapMethodName(className
                                                                                     , name, descriptor), remappedDescriptor, remapper.MapSignature(signature, false)
                                                      , exceptions == null ? null : remapper.MapTypes(exceptions));

            return(methodVisitor == null ? null : CreateMethodRemapper(methodVisitor));
        }
Beispiel #2
0
 public override void VisitInvokeDynamicInsn(string name, string descriptor, Handle
     bootstrapMethodHandle, params object[] bootstrapMethodArguments)
 {
     var remappedBootstrapMethodArguments = new object[bootstrapMethodArguments.Length
     ];
     for (var i = 0; i < bootstrapMethodArguments.Length; ++i)
         remappedBootstrapMethodArguments[i] = remapper.MapValue(bootstrapMethodArguments[
             i]);
     base.VisitInvokeDynamicInsn(remapper.MapInvokeDynamicMethodName(name, descriptor)
         , remapper.MapMethodDesc(descriptor), (Handle) remapper.MapValue(bootstrapMethodHandle
         ), remappedBootstrapMethodArguments);
 }