Package net.sf.cglib.asm

Examples of net.sf.cglib.asm.Label


/*     */   }
/*     */
/*     */   private static void nullcmp(CodeEmitter e, Label oneNull, Label bothNull)
/*     */   {
/* 529 */     e.dup2();
/* 530 */     Label nonNull = e.make_label();
/* 531 */     Label oneNullHelper = e.make_label();
/* 532 */     Label end = e.make_label();
/* 533 */     e.ifnonnull(nonNull);
/* 534 */     e.ifnonnull(oneNullHelper);
/* 535 */     e.pop2();
/* 536 */     e.goTo(bothNull);
/*     */
View Full Code Here


/* 575 */     append_string_helper(e, type, d, customizer, callback);
/*     */   }
/*     */
/*     */   private static void append_string_helper(CodeEmitter e, Type type, ArrayDelimiters delims, Customizer customizer, ProcessArrayCallback callback)
/*     */   {
/* 583 */     Label skip = e.make_label();
/* 584 */     Label end = e.make_label();
/* 585 */     if (TypeUtils.isPrimitive(type)) {
/* 586 */       switch (type.getSort()) {
/*     */       case 3:
/*     */       case 4:
/*     */       case 5:
View Full Code Here

/* 694 */             this.val$cache.put(member, types = member.getSignature().getArgumentTypes());
/*     */           }
/* 696 */           return types;
/*     */         }
/*     */       };
/* 699 */       Label def = e.make_label();
/* 700 */       Label end = e.make_label();
/* 701 */       if (useName) {
/* 702 */         e.swap();
/* 703 */         Map buckets = CollectionUtils.bucket(members, new Transformer() {
/*     */           public Object transform(Object value) {
/* 705 */             return ((MethodInfo)value).getSignature().getName();
View Full Code Here

/*      */       }
/*      */       public CodeEmitter beginMethod(ClassEmitter ce, MethodInfo method) {
/*  919 */         CodeEmitter e = EmitUtils.begin_method(ce, method);
/*  920 */         if ((!Enhancer.this.interceptDuringConstruction) && (!TypeUtils.isAbstract(method.getModifiers())))
/*      */         {
/*  922 */           Label constructed = e.make_label();
/*  923 */           e.load_this();
/*  924 */           e.getfield("CGLIB$CONSTRUCTED");
/*  925 */           e.if_jump(154, constructed);
/*  926 */           e.load_this();
/*  927 */           e.load_args();
View Full Code Here

/*      */
/*      */   private void emitCurrentCallback(CodeEmitter e, int index) {
/*  980 */     e.load_this();
/*  981 */     e.getfield(getCallbackField(index));
/*  982 */     e.dup();
/*  983 */     Label end = e.make_label();
/*  984 */     e.ifnonnull(end);
/*  985 */     e.pop();
/*  986 */     e.load_this();
/*  987 */     e.invoke_static_this(BIND_CALLBACKS);
/*  988 */     e.load_this();
View Full Code Here

/*  998 */     Local me = e.make_local();
/*  999 */     e.load_arg(0);
/* 1000 */     e.checkcast_this();
/* 1001 */     e.store_local(me);
/*      */
/* 1003 */     Label end = e.make_label();
/* 1004 */     e.load_local(me);
/* 1005 */     e.getfield("CGLIB$BOUND");
/* 1006 */     e.if_jump(154, end);
/* 1007 */     e.load_local(me);
/* 1008 */     e.push(1);
/* 1009 */     e.putfield("CGLIB$BOUND");
/*      */
/* 1011 */     e.getfield("CGLIB$THREAD_CALLBACKS");
/* 1012 */     e.invoke_virtual(THREAD_LOCAL, THREAD_LOCAL_GET);
/* 1013 */     e.dup();
/* 1014 */     Label found_callback = e.make_label();
/* 1015 */     e.ifnonnull(found_callback);
/* 1016 */     e.pop();
/*      */
/* 1018 */     e.getfield("CGLIB$STATIC_CALLBACKS");
/* 1019 */     e.dup();
View Full Code Here

  public int read(ClassReader paramClassReader, int paramInt1, char[] paramArrayOfChar, int paramInt2, Label[] paramArrayOfLabel)
  {
    int i = paramClassReader.readUnsignedShort(paramInt1);
    paramInt1 += 2;
    if (paramArrayOfLabel[i] == null)
      paramArrayOfLabel[i] = new Label();
    this.label = paramArrayOfLabel[i];
    paramInt1 = readTypeInfo(paramClassReader, paramInt1, this.locals, paramArrayOfLabel, paramArrayOfChar, paramClassReader.readUnsignedShort(paramInt2 + 2));
    paramInt1 = readTypeInfo(paramClassReader, paramInt1, this.stack, paramArrayOfLabel, paramArrayOfChar, paramClassReader.readUnsignedShort(paramInt2));
    return paramInt1;
  }
View Full Code Here

        break;
      case 8:
        int m = paramClassReader.readUnsignedShort(paramInt1);
        paramInt1 += 2;
        if (paramArrayOfLabel[m] == null)
          paramArrayOfLabel[m] = new Label();
        localStackMapType.setLabel(paramArrayOfLabel[m]);
      }
    }
    return paramInt1;
  }
View Full Code Here

    return localByteVector;
  }

  private Label getLabel(Label[] paramArrayOfLabel, int paramInt)
  {
    Label localLabel = paramArrayOfLabel[paramInt];
    if (localLabel == null)
    {
      localLabel = new Label();
      paramArrayOfLabel[paramInt] = localLabel;
    }
    return localLabel;
  }
View Full Code Here

/*     */       }
/* 214 */       e.return_value();
/* 215 */       e.end_method();
/*     */
/* 218 */       e = ce.begin_method(1, KeyFactory.EQUALS, null, null);
/* 219 */       Label fail = e.make_label();
/* 220 */       e.load_arg(0);
/* 221 */       e.instance_of_this();
/* 222 */       e.if_jump(153, fail);
/* 223 */       for (int i = 0; i < parameterTypes.length; i++) {
/* 224 */         e.load_this();
View Full Code Here

TOP

Related Classes of net.sf.cglib.asm.Label

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.