Examples of AnnotationDefaultAttribute

If the following statement is executed after the code above, the default value of age is set to 80:

@see AnnotationsAttribute @see javassist.bytecode.annotation.MemberValue
  • oracle.toplink.libraries.asm.attrs.AnnotationDefaultAttribute
    .org/en/jsr/detail?id=175">JSR 175 : A Metadata Facility for the Java Programming Language @author Eugene Kuleshov
  • org.apache.harmony.pack200.bytecode.AnnotationDefaultAttribute
    AnnotationDefault attribute
  • org.apache.harmony.unpack200.bytecode.AnnotationDefaultAttribute
    AnnotationDefault class file attribute
  • org.eclipse.persistence.internal.libraries.asm.attrs.AnnotationDefaultAttribute
    .org/en/jsr/detail?id=175">JSR 175 : A Metadata Facility for the Java Programming Language @author Eugene Kuleshov
  • org.gjt.jclasslib.structures.attributes.AnnotationDefaultAttribute
    Describes an AnnotationDefault attribute structure. @author Vitor Carreira @version $Revision: 1.1 $ $Date: 2004-12-28 13:04:31 $
  • org.hotswap.agent.javassist.bytecode.AnnotationDefaultAttribute
    ult value of age

    If the following statement is executed after the code above, the default value of age is set to 80:

    @see AnnotationsAttribute @see org.hotswap.agent.javassist.bytecode.annotation.MemberValue
  • org.jboss.forge.furnace.proxy.javassist.bytecode.AnnotationDefaultAttribute
    ult value of age

    If the following statement is executed after the code above, the default value of age is set to 80:

    @see AnnotationsAttribute @see org.jboss.forge.furnace.proxy.javassist.bytecode.annotation.MemberValue
  • org.objectweb.asm.attrs.AnnotationDefaultAttribute
    .org/en/jsr/detail?id=175">JSR 175 : A Metadata Facility for the Java Programming Language @author Eugene Kuleshov

  • Examples of com.strobel.assembler.ir.attributes.AnnotationDefaultAttribute

            for (final CustomAnnotation annotation : method.getAnnotations()) {
                astMethod.getAnnotations().add(createAnnotation(annotation));
            }

            final AnnotationDefaultAttribute defaultAttribute = SourceAttribute.find(
                AttributeNames.AnnotationDefault,
                method.getSourceAttributes()
            );

            if (defaultAttribute != null) {
                final Expression defaultValue = createAnnotationElement(defaultAttribute.getDefaultValue());

                if (defaultValue != null && !defaultValue.isNull()) {
                    astMethod.setDefaultValue(defaultValue);
                }
            }
    View Full Code Here

    Examples of com.strobel.assembler.ir.attributes.AnnotationDefaultAttribute

            for (final CustomAnnotation annotation : method.getAnnotations()) {
                astMethod.getAnnotations().add(createAnnotation(annotation));
            }

            final AnnotationDefaultAttribute defaultAttribute = SourceAttribute.find(
                AttributeNames.AnnotationDefault,
                method.getSourceAttributes()
            );

            if (defaultAttribute != null) {
                final Expression defaultValue = createAnnotationElement(defaultAttribute.getDefaultValue());

                if (defaultValue != null && !defaultValue.isNull()) {
                    astMethod.setDefaultValue(defaultValue);
                }
            }
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

                {
                   throw new RuntimeException("Unable to find method " + methods[i].getName() + " for " + annotation.getName());
                }
                Object defaultValue = null;
                MethodInfo minfo = method.getMethodInfo2();
                AnnotationDefaultAttribute defAttr = (AnnotationDefaultAttribute)minfo.getAttribute(AnnotationDefaultAttribute.tag);
               
                if (defAttr != null)
                {
                   MemberValue value = defAttr.getDefaultValue();    // default value of age
                   MemberValueGetter getter = new MemberValueGetter(methods[i]);
                   value.accept(getter);
                   defaultValue = getter.getValue();
                }
               
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

                try {
                    CtClass cc = pool.get(classname);
                    ClassFile cf = cc.getClassFile2();
                    MethodInfo minfo = cf.getMethod(name);
                    if (minfo != null) {
                        AnnotationDefaultAttribute ainfo
                            = (AnnotationDefaultAttribute)
                              minfo.getAttribute(AnnotationDefaultAttribute.tag);
                        if (ainfo != null) {
                            MemberValue mv = ainfo.getDefaultValue();
                            return mv.getValue(classLoader, pool, method);
                        }
                    }
                }
                catch (NotFoundException e) {
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

                try {
                    CtClass cc = pool.get(classname);
                    ClassFile cf = cc.getClassFile2();
                    MethodInfo minfo = cf.getMethod(name);
                    if (minfo != null) {
                        AnnotationDefaultAttribute ainfo
                            = (AnnotationDefaultAttribute)
                              minfo.getAttribute(AnnotationDefaultAttribute.tag);
                        if (ainfo != null) {
                            MemberValue mv = ainfo.getDefaultValue();
                            return mv.getValue(classLoader, pool, method);
                        }
                    }
                }
                catch (NotFoundException e) {
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

                try {
                    CtClass cc = pool.get(classname);
                    ClassFile cf = cc.getClassFile2();
                    MethodInfo minfo = cf.getMethod(name);
                    if (minfo != null) {
                        AnnotationDefaultAttribute ainfo
                            = (AnnotationDefaultAttribute)
                              minfo.getAttribute(AnnotationDefaultAttribute.tag);
                        if (ainfo != null) {
                            MemberValue mv = ainfo.getDefaultValue();
                            return mv.getValue(classLoader, pool, method);
                        }
                    }
                }
                catch (NotFoundException e) {
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

                try {
                    CtClass cc = pool.get(classname);
                    ClassFile cf = cc.getClassFile2();
                    MethodInfo minfo = cf.getMethod(name);
                    if (minfo != null) {
                        AnnotationDefaultAttribute ainfo
                            = (AnnotationDefaultAttribute)
                              minfo.getAttribute(AnnotationDefaultAttribute.tag);
                        if (ainfo != null) {
                            MemberValue mv = ainfo.getDefaultValue();
                            return mv.getValue(classLoader, pool, method);
                        }
                    }
                }
                catch (NotFoundException e) {
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

                {
                   throw new RuntimeException("Unable to find method " + methods[i].getName() + " for " + annotation.getName());
                }
                Object defaultValue = null;
                MethodInfo minfo = method.getMethodInfo2();
                AnnotationDefaultAttribute defAttr = (AnnotationDefaultAttribute)minfo.getAttribute(AnnotationDefaultAttribute.tag);
               
                if (defAttr != null)
                {
                   MemberValue value = defAttr.getDefaultValue();    // default value of age
                   MemberValueGetter getter = new MemberValueGetter(methods[i]);
                   value.accept(getter);
                   defaultValue = getter.getValue();
                }
               
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

    /*     */       {
    /*  76 */         throw new RuntimeException("Unable to find method " + methods[i].getName() + " for " + annotation.getName());
    /*     */       }
    /*  78 */       Object defaultValue = null;
    /*  79 */       MethodInfo minfo = method.getMethodInfo2();
    /*  80 */       AnnotationDefaultAttribute defAttr = (AnnotationDefaultAttribute)minfo.getAttribute("AnnotationDefault");
    /*     */
    /*  82 */       if (defAttr != null)
    /*     */       {
    /*  84 */         MemberValue value = defAttr.getDefaultValue();
    /*  85 */         MemberValueGetter getter = new MemberValueGetter(methods[i]);
    /*  86 */         value.accept(getter);
    /*  87 */         defaultValue = getter.getValue();
    /*     */       }
    /*     */
    View Full Code Here

    Examples of javassist.bytecode.AnnotationDefaultAttribute

    /*     */       try {
    /* 157 */         CtClass cc = this.pool.get(classname);
    /* 158 */         ClassFile cf = cc.getClassFile2();
    /* 159 */         MethodInfo minfo = cf.getMethod(name);
    /* 160 */         if (minfo != null) {
    /* 161 */           AnnotationDefaultAttribute ainfo = (AnnotationDefaultAttribute)minfo.getAttribute("AnnotationDefault");
    /*     */
    /* 164 */           if (ainfo != null) {
    /* 165 */             MemberValue mv = ainfo.getDefaultValue();
    /* 166 */             return mv.getValue(this.classLoader, this.pool, method);
    /*     */           }
    /*     */         }
    /*     */       }
    /*     */       catch (NotFoundException e) {
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.