Esempio n. 1
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);
 }
Esempio n. 2
0
 public override void Visit(string name, object value)
 {
     base.Visit(name, remapper.MapValue(value));
 }
Esempio n. 3
0
        public override FieldVisitor VisitField(AccessFlags access, string name, string descriptor
                                                , string signature, object value)
        {
            var fieldVisitor = base.VisitField(access, remapper.MapFieldName(className
                                                                             , name, descriptor), remapper.MapDesc(descriptor), remapper.MapSignature(signature
                                                                                                                                                      , true), value == null ? null : remapper.MapValue(value));

            return(fieldVisitor == null ? null : CreateFieldRemapper(fieldVisitor));
        }