Package org.objectweb.asm

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




    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

             * 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

        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

Related Classes of org.objectweb.asm.CodeAdapter

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.