Package javassist.bytecode.annotation

Examples of javassist.bytecode.annotation.BooleanMemberValue


      attribute.addAnnotation(annotation2);

      if (epInfo.isAddressing() && JBossDeployerUtil.getWSImpl().equals(JBossDeployerUtil.WSIMPL_CXF))
      {
        Annotation annotation3 = new Annotation("javax.xml.ws.soap.Addressing", constantPool);
        BooleanMemberValue boolEnabled = new BooleanMemberValue(constantPool);
        boolEnabled.setValue(true);
        BooleanMemberValue boolRequired = new BooleanMemberValue(constantPool);
        boolRequired.setValue(true);
        annotation3.addMemberValue("enabled", boolEnabled);
        annotation3.addMemberValue("required", boolEnabled);
        attribute.addAnnotation(annotation3);
      }
View Full Code Here


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

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

    MemberValue[] m = new MemberValue[]{new StringMemberValue(beanName, cp)};
    a.setValue(m);
    beanAnnotation.addMemberValue("name", a);
    javassist.bytecode.annotation.Annotation lazyAnnotation = new javassist.bytecode.annotation.Annotation(
        "org.springframework.context.annotation.Lazy", cp);
    lazyAnnotation.addMemberValue("value", new BooleanMemberValue(true, cp));
    javassist.bytecode.annotation.Annotation scopeAnnotation = new javassist.bytecode.annotation.Annotation(
        "org.springframework.context.annotation.Scope", cp);
    EnumMemberValue enumValue = new EnumMemberValue(cp);
    enumValue.setType("org.springframework.context.annotation.ScopedProxyMode");
    enumValue.setValue("TARGET_CLASS");
View Full Code Here

                                                        }
                                                        templates.add(templateTokens.get(val));
                                                    }
                                                }
                                            }
                                            BooleanMemberValue skipAnnot = (BooleanMemberValue) memberAnnot.getMemberValue("skipOverlaps");
                                            if (skipAnnot != null) {
                                                skips.add(skipAnnot.getValue());
                                            } else {
                                                skips.add(mySkipOverlaps);
                                            }
                                            BooleanMemberValue renameAnnot = (BooleanMemberValue) memberAnnot.getMemberValue("renameMethodOverlaps");
                                            if (renameAnnot != null) {
                                                renames.add(renameAnnot.getValue());
                                            } else {
                                                renames.add(myRenameMethodOverlaps);
                                            }
                                        }
                                        xformVals = templates.toArray(new String[templates.size()]);
View Full Code Here

        } else if (type == double.class) {
            return new DoubleMemberValue((Double) val, cp);
        } else if (type == char.class) {
            return new CharMemberValue((Character) val, cp);
        } else if (type == boolean.class) {
            return new BooleanMemberValue((Boolean) val, cp);
        } else if (type == String.class) {
            return new StringMemberValue((String) val, cp);
        } else if (type == Class.class) {
            return new ClassMemberValue(((Class<?>) val).getName(), cp);
        } else if (type.isEnum()) {
View Full Code Here

        } else if (type == double.class) {
            return new DoubleMemberValue(cp);
        } else if (type == char.class) {
            return new CharMemberValue(cp);
        } else if (type == boolean.class) {
            return new BooleanMemberValue(cp);
        } else if (type == String.class) {
            return new StringMemberValue(cp);
        } else if (type == Class.class) {
            return new ClassMemberValue(cp);
        } else if (type.isEnum()) {
View Full Code Here

      throw new RuntimeException("NOT IMPLEMENTED");
   }

   public void visitBooleanMemberValue(BooleanMemberValue booleanMemberValue)
   {
      value = new BooleanMemberValue(cp);
   }
View Full Code Here

/*  65 */     throw new RuntimeException("NOT IMPLEMENTED");
/*     */   }
/*     */
/*     */   public void visitBooleanMemberValue(BooleanMemberValue booleanMemberValue)
/*     */   {
/*  70 */     this.value = new BooleanMemberValue(this.cp);
/*     */   }
View Full Code Here

/* 565 */         break;
/*     */       case 83:
/* 567 */         m = new ShortMemberValue(index, cp);
/* 568 */         break;
/*     */       case 90:
/* 570 */         m = new BooleanMemberValue(index, cp);
/* 571 */         break;
/*     */       case 115:
/* 573 */         m = new StringMemberValue(index, cp);
/* 574 */         break;
/*     */       default:
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)
View Full Code Here

TOP

Related Classes of javassist.bytecode.annotation.BooleanMemberValue

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.