Examples of CodeAdapter


Examples of net.sf.cglib.asm.CodeAdapter

/* 136 */       throw new IllegalStateException("classInfo is null! " + this);
/* 137 */     CodeVisitor v = this.cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions), attrs);
/*     */
/* 142 */     if ((sig.equals(Constants.SIG_STATIC)) && (!TypeUtils.isInterface(getAccess()))) {
/* 143 */       this.rawStaticInit = v;
/* 144 */       CodeVisitor wrapped = new CodeAdapter(v) {
/*     */         public void visitMaxs(int maxStack, int maxLocals) {
/*     */         }
/*     */
/*     */         public void visitInsn(int insn) {
/* 149 */           if (insn != 177)
View Full Code Here

Examples of org.objectweb.asm.CodeAdapter

             * Visit the method, and keep track of all labels so that when visittryCatch is reached
             * we can remember the index
             *
             * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
             */
            return new CodeAdapter(mv) {
                public void visitLabel(Label label) {
                    m_labelIndexes.put(label, new Integer(++m_labelIndex));
                    super.visitLabel(label);
                }

View Full Code Here

Examples of org.objectweb.asm.CodeAdapter



    public CodeVisitor visitMethod(int i, String s, String s1, String[] strings, Attribute attribute) {

        return new CodeAdapter(super.visitMethod(i, s, s1, strings, attribute)) {

            public void visitLineNumber(int i, Label label) {

                super.visitLineNumber(i, label);
View Full Code Here

Examples of org.objectweb.asm.CodeAdapter

             * Visit the method, and keep track of all labels so that when visittryCatch is reached
             * we can remember the index
             *
             * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
             */
            return new CodeAdapter(mv) {
                public void visitLabel(Label label) {
                    m_labelIndexes.put(label, new Integer(++m_labelIndex));
                    super.visitLabel(label);
                }

View Full Code Here

Examples of org.objectweb.asm.CodeAdapter

        super(cv);
        m_ctx = (ContextImpl)ctx;
    }

    public CodeVisitor visitMethod(int i, String s, String s1, String[] strings, Attribute attribute) {
        return new CodeAdapter(super.visitMethod(i, s, s1, strings, attribute)) {
            public void visitLineNumber(int i, Label label) {
                super.visitLineNumber(i, label);
                m_ctx.addLineNumberInfo(label, i);
            }
        };
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.