001    /*
002     * Sonar, open source software quality management tool.
003     * Copyright (C) 2009 SonarSource SA
004     * mailto:contact AT sonarsource DOT com
005     *
006     * Sonar is free software; you can redistribute it and/or
007     * modify it under the terms of the GNU Lesser General Public
008     * License as published by the Free Software Foundation; either
009     * version 3 of the License, or (at your option) any later version.
010     *
011     * Sonar is distributed in the hope that it will be useful,
012     * but WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014     * Lesser General Public License for more details.
015     *
016     * You should have received a copy of the GNU Lesser General Public
017     * License along with Sonar; if not, write to the Free Software
018     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
019     */
020    package org.sonar.squid.bytecode.asm;
021    
022    import org.objectweb.asm.AnnotationVisitor;
023    import org.objectweb.asm.Attribute;
024    import org.objectweb.asm.Label;
025    import org.objectweb.asm.MethodVisitor;
026    
027    public class AsmMethodVisitor implements MethodVisitor {
028    
029      private AsmMethod method;
030      
031      public AsmMethodVisitor(AsmMethod asmMethod) {
032        this.method = asmMethod;
033      }
034    
035      public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
036        return null;
037      }
038    
039      public AnnotationVisitor visitAnnotationDefault() {
040        return null;
041      }
042    
043      public void visitAttribute(Attribute attr) {
044      }
045    
046      public void visitCode() {
047      }
048    
049      public void visitEnd() {
050      }
051    
052      public void visitFieldInsn(int opcode, String owner, String name, String desc) {
053      }
054    
055      public void visitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack) {
056      }
057    
058      public void visitIincInsn(int var, int increment) {
059      }
060    
061      public void visitInsn(int opcode) {
062      }
063    
064      public void visitIntInsn(int opcode, int operand) {
065      }
066    
067      public void visitJumpInsn(int opcode, Label label) {
068      }
069    
070      public void visitLabel(Label label) {
071      }
072    
073      public void visitLdcInsn(Object cst) {
074      }
075    
076      public void visitLineNumber(int line, Label start) {
077      }
078    
079      public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) {
080      }
081    
082      public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) {
083      }
084    
085      public void visitMaxs(int maxStack, int maxLocals) {
086      }
087    
088      public void visitMethodInsn(int opcode, String owner, String name, String desc) {
089      }
090    
091      public void visitMultiANewArrayInsn(String desc, int dims) {
092      }
093    
094      public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) {
095        return null;
096      }
097    
098      public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) {
099      }
100    
101      public void visitTryCatchBlock(Label start, Label end, Label handler, String type) {
102      }
103    
104      public void visitTypeInsn(int opcode, String type) {
105      }
106    
107      public void visitVarInsn(int opcode, int var) {
108      }
109    }