public void visitMethodInsn()

in atomosfeaturelauncherweaver/src/main/java/org/apache/sling/feature/launcher/atomos/weaver/impl/AtomosWeaverVisitor.java [97:124]


        public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {
            if (opcode == INVOKEVIRTUAL && owner.replace('/', '.').equals("java.lang.Class")) {
                Method targetMethod;
                if (name.equals("getClassLoader")) {
                    targetMethod = targetMethodClassLoader;
                } else if (name.equals("getResource")) {
                    targetMethod = targetMethodResource;
                } else if (name.equals("getResourceAsStream")) {
                    targetMethod = targetMethodStream;
                } else {
                    targetMethod = null;
                }
                if (targetMethod != null) {
                    invokeStatic(target, targetMethod);
                    m_woven = true;
                    return;
                }
            }

            if (opcode == INVOKEINTERFACE && owner.replace('/', '.').equals("org.osgi.framework.Bundle")) {
                if (name.equals("getResource")) {
                    invokeInterface(Type.getType("L" + owner.replace('.', '/') + ";"), targetMethodBundleResource);
                    m_woven = true;
                    return;
                }
            }
            super.visitMethodInsn(opcode, owner, name, desc, itf);
        }