Package org.hotswap.agent.javassist.bytecode

Examples of org.hotswap.agent.javassist.bytecode.AnnotationDefaultAttribute

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

            try {
                org.hotswap.agent.javassist.CtClass cc = pool.get(classname);
                ClassFile cf = cc.getClassFile2();
                org.hotswap.agent.javassist.bytecode.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 (org.hotswap.agent.javassist.NotFoundException e) {
                throw new RuntimeException("cannot find a class file: "
View Full Code Here

TOP

Related Classes of org.hotswap.agent.javassist.bytecode.AnnotationDefaultAttribute

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.