Package javassist.bytecode.annotation

Examples of javassist.bytecode.annotation.ByteMemberValue


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

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


        } 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) {
            return new FloatMemberValue((Float) val, cp);
        } else if (type == double.class) {
            return new DoubleMemberValue((Double) val, cp);
        } else if (type == char.class) {
View Full Code Here

        } 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) {
            return new FloatMemberValue(cp);
        } else if (type == double.class) {
            return new DoubleMemberValue(cp);
        } else if (type == char.class) {
View Full Code Here

      value = new BooleanMemberValue(cp);
   }

   public void visitByteMemberValue(ByteMemberValue byteMemberValue)
   {
      value = new ByteMemberValue(cp);
   }
View Full Code Here

/*  70 */     this.value = new BooleanMemberValue(this.cp);
/*     */   }
/*     */
/*     */   public void visitByteMemberValue(ByteMemberValue byteMemberValue)
/*     */   {
/*  75 */     this.value = new ByteMemberValue(this.cp);
/*     */   }
View Full Code Here

/*     */     {
/* 546 */       ConstPool cp = this.pool;
/*     */       MemberValue m;
/* 547 */       switch (tag) {
/*     */       case 66:
/* 549 */         m = new ByteMemberValue(index, cp);
/* 550 */         break;
/*     */       case 67:
/* 552 */         m = new CharMemberValue(index, cp);
/* 553 */         break;
/*     */       case 68:
View Full Code Here

    // Copy from javassist.bytecode.annotation.Annotation.createMemberValue(ConstPool, CtClass);
    private static MemberValue createMemberValue(ConstPool cp, CtClass type, Object value) throws NotFoundException {
        if (type == CtClass.booleanType)
            return new BooleanMemberValue((Boolean) value, cp);
        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)
View Full Code Here

    // Copy from javassist.bytecode.annotation.Annotation.createMemberValue(ConstPool, CtClass);
    private static MemberValue createMemberValue(ConstPool cp, CtClass type, Object value) throws NotFoundException {
        if (type == CtClass.booleanType)
            return new BooleanMemberValue((Boolean) value, cp);
        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)
View Full Code Here

TOP

Related Classes of javassist.bytecode.annotation.ByteMemberValue

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.