Package javassist.bytecode.annotation

Examples of javassist.bytecode.annotation.ShortMemberValue


            array[index] = new StringMemberValue(node.getValue(), constPool);
        }

        @Override
        public void visitShortMemberValue(ShortMemberValue node) {
            array[index] = new ShortMemberValue(node.getValue(), constPool);
        }
View Full Code Here


    private static MemberValue createMemberValue(Class<?> type, Object val, ConstPool cp) {
        if (type == int.class) {
            return new IntegerMemberValue(cp, (Integer) val);
        } else if (type == short.class) {
            return new ShortMemberValue((Short) val, cp);
        } else if (type == long.class) {
            return new LongMemberValue((Long) val, cp);
        } else if (type == byte.class) {
            return new ByteMemberValue((Byte) val, cp);
        } else if (type == float.class) {
View Full Code Here

    private static MemberValue createEmptyMemberValue(Class<?> type, ConstPool cp) {
        if (type == int.class) {
            return new IntegerMemberValue(cp);
        } else if (type == short.class) {
            return new ShortMemberValue(cp);
        } else if (type == long.class) {
            return new LongMemberValue(cp);
        } else if (type == byte.class) {
            return new ByteMemberValue(cp);
        } else if (type == float.class) {
View Full Code Here

      value = new LongMemberValue(cp);
   }

   public void visitShortMemberValue(ShortMemberValue shortMemberValue)
   {
      value = new ShortMemberValue(cp);
   }
View Full Code Here

/* 105 */     this.value = new LongMemberValue(this.cp);
/*     */   }
/*     */
/*     */   public void visitShortMemberValue(ShortMemberValue shortMemberValue)
/*     */   {
/* 110 */     this.value = new ShortMemberValue(this.cp);
/*     */   }
View Full Code Here

/* 562 */         break;
/*     */       case 74:
/* 564 */         m = new LongMemberValue(index, cp);
/* 565 */         break;
/*     */       case 83:
/* 567 */         m = new ShortMemberValue(index, cp);
/* 568 */         break;
/*     */       case 90:
/* 570 */         m = new BooleanMemberValue(index, cp);
/* 571 */         break;
/*     */       case 115:
View Full Code Here

        else if (type == CtClass.byteType)
            return new ByteMemberValue((Byte) value, cp);
        else if (type == CtClass.charType)
            return new CharMemberValue((Character) value, cp);
        else if (type == CtClass.shortType)
            return new ShortMemberValue((Short) value, cp);
        else if (type == CtClass.intType)
            return new IntegerMemberValue((Integer) value, cp);
        else if (type == CtClass.longType)
            return new LongMemberValue((Long) value, cp);
        else if (type == CtClass.floatType)
View Full Code Here

        else if (type == CtClass.byteType)
            return new ByteMemberValue((Byte) value, cp);
        else if (type == CtClass.charType)
            return new CharMemberValue((Character) value, cp);
        else if (type == CtClass.shortType)
            return new ShortMemberValue((Short) value, cp);
        else if (type == CtClass.intType)
            return new IntegerMemberValue((Integer) value, cp);
        else if (type == CtClass.longType)
            return new LongMemberValue((Long) value, cp);
        else if (type == CtClass.floatType)
View Full Code Here

TOP

Related Classes of javassist.bytecode.annotation.ShortMemberValue

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.