Exemple #1
0
 @Override
 public void visitLdcInsn(Object cst) {
   if (cst instanceof Handle) {
     Handle handle = (Handle) cst;
     cst =
         new Handle(
             handle.getTag(),
             handle.getOwner(),
             handle.getName(),
             getMethodDescriptor(handle.getDesc()));
   }
   super.visitLdcInsn(cst);
 }
Exemple #2
0
 @Override
 protected void appendDescriptor(int type, String desc) {
   switch (type) {
     case INTERNAL_NAME:
       if (desc != null) {
         desc = getInternalName(desc);
       }
       break;
     case FIELD_DESCRIPTOR:
       desc = getDescriptor(desc);
       break;
     case METHOD_DESCRIPTOR:
       desc = getMethodDescriptor(desc);
       break;
   }
   super.appendDescriptor(type, desc);
 }